diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f34850dd7462..48697a856b51 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -278,7 +278,7 @@ com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.5;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-compute;2.55.1;2.56.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.6;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.54.1;2.55.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-containerservice;2.56.1;2.57.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-containerservice;2.56.1;2.57.0 com.azure.resourcemanager:azure-resourcemanager-cosmos;2.54.0;2.55.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-dns;2.53.5;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.53.5;2.54.0-beta.1 @@ -551,6 +551,7 @@ unreleased_com.azure:azure-core-test;1.27.0-beta.14 unreleased_com.azure.v2:azure-identity;2.0.0-beta.1 unreleased_com.azure.v2:azure-data-appconfiguration;2.0.0-beta.1 unreleased_io.clientcore:http-netty4;1.0.0-beta.1 +unreleased_com.azure.resourcemanager:azure-resourcemanager-containerservice;2.57.0 # Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current # version and set the version to the released beta. Released beta dependencies are only valid diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md index f6b1e4646e4f..fc89e616f312 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 2.57.0-beta.2 (Unreleased) +## 2.57.0 (2025-12-15) -### Features Added - -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2025-10-01`. ## 2.57.0-beta.1 (2025-12-01) diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/README.md b/sdk/containerservice/azure-resourcemanager-containerservice/README.md index cfe8c52c162f..0c44651d3ca8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/README.md +++ b/sdk/containerservice/azure-resourcemanager-containerservice/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-containerservice - 2.56.0 + 2.57.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/assets.json b/sdk/containerservice/azure-resourcemanager-containerservice/assets.json index 8457e7fc0469..9cdfac192547 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/assets.json +++ b/sdk/containerservice/azure-resourcemanager-containerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/containerservice/azure-resourcemanager-containerservice", - "Tag": "java/containerservice/azure-resourcemanager-containerservice_c3a165c41a" + "Tag": "java/containerservice/azure-resourcemanager-containerservice_a6036916c8" } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml index 9bc81c06b4ab..d9f5bad88bb3 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml +++ b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml @@ -10,7 +10,7 @@ com.azure.resourcemanager azure-resourcemanager-containerservice - 2.57.0-beta.2 + 2.57.0 jar Microsoft Azure SDK for Container Service Management diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java index d228cd8c62b4..f1ec76e42adb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java @@ -30,7 +30,7 @@ public interface AgentPoolsClient { * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -49,7 +49,7 @@ Mono>> abortLatestOperationWithResponseAsync(String re * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -68,7 +68,7 @@ PollerFlux, Void> beginAbortLatestOperationAsync(String resourc * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -87,7 +87,7 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -107,7 +107,7 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -125,7 +125,7 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -142,7 +142,7 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -620,122 +620,6 @@ Response getUpgradeProfileWithResponse(String reso @ServiceMethod(returns = ReturnType.SINGLE) AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, String resourceName, String agentPoolName); - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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>> completeUpgradeWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, - String agentPoolName); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName, - String agentPoolName); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName, - String agentPoolName, Context context); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName); - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName, Context context); - /** * Deletes specific machines in an agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java index 3fd176dbe278..167e25fcae77 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java @@ -68,13 +68,6 @@ public interface ContainerServiceManagementClient { */ ManagedClustersClient getManagedClusters(); - /** - * Gets the ContainerServiceOperationsClient object to access its operations. - * - * @return the ContainerServiceOperationsClient object. - */ - ContainerServiceOperationsClient getContainerServiceOperations(); - /** * Gets the MaintenanceConfigurationsClient object to access its operations. * @@ -96,13 +89,6 @@ public interface ContainerServiceManagementClient { */ AgentPoolsClient getAgentPools(); - /** - * Gets the MachinesClient object to access its operations. - * - * @return the MachinesClient object. - */ - MachinesClient getMachines(); - /** * Gets the PrivateEndpointConnectionsClient object to access its operations. * @@ -124,13 +110,6 @@ public interface ContainerServiceManagementClient { */ ResolvePrivateLinkServiceIdsClient getResolvePrivateLinkServiceIds(); - /** - * Gets the OperationStatusResultsClient object to access its operations. - * - * @return the OperationStatusResultsClient object. - */ - OperationStatusResultsClient getOperationStatusResults(); - /** * Gets the SnapshotsClient object to access its operations. * @@ -138,20 +117,6 @@ public interface ContainerServiceManagementClient { */ SnapshotsClient getSnapshots(); - /** - * Gets the ManagedClusterSnapshotsClient object to access its operations. - * - * @return the ManagedClusterSnapshotsClient object. - */ - ManagedClusterSnapshotsClient getManagedClusterSnapshots(); - - /** - * Gets the TrustedAccessRolesClient object to access its operations. - * - * @return the TrustedAccessRolesClient object. - */ - TrustedAccessRolesClient getTrustedAccessRoles(); - /** * Gets the TrustedAccessRoleBindingsClient object to access its operations. * @@ -160,30 +125,16 @@ public interface ContainerServiceManagementClient { TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings(); /** - * Gets the LoadBalancersClient object to access its operations. - * - * @return the LoadBalancersClient object. - */ - LoadBalancersClient getLoadBalancers(); - - /** - * Gets the IdentityBindingsClient object to access its operations. - * - * @return the IdentityBindingsClient object. - */ - IdentityBindingsClient getIdentityBindings(); - - /** - * Gets the JwtAuthenticatorsClient object to access its operations. + * Gets the TrustedAccessRolesClient object to access its operations. * - * @return the JwtAuthenticatorsClient object. + * @return the TrustedAccessRolesClient object. */ - JwtAuthenticatorsClient getJwtAuthenticators(); + TrustedAccessRolesClient getTrustedAccessRoles(); /** - * Gets the MeshMembershipsClient object to access its operations. + * Gets the MachinesClient object to access its operations. * - * @return the MeshMembershipsClient object. + * @return the MachinesClient object. */ - MeshMembershipsClient getMeshMemberships(); + MachinesClient getMachines(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceOperationsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceOperationsClient.java deleted file mode 100644 index 07ef553d11c3..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceOperationsClient.java +++ /dev/null @@ -1,66 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; - -/** - * An instance of this class provides access to all the operations defined in ContainerServiceOperationsClient. - */ -public interface ContainerServiceOperationsClient { - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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 holds an array NodeImageVersions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listNodeImageVersionsAsync(String location); - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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 holds an array NodeImageVersions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listNodeImageVersions(String location); - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array NodeImageVersions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listNodeImageVersions(String location, Context context); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/IdentityBindingsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/IdentityBindingsClient.java deleted file mode 100644 index 4fb01bb3c58a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/IdentityBindingsClient.java +++ /dev/null @@ -1,343 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.models.IdentityBindingInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in IdentityBindingsClient. - */ -public interface IdentityBindingsClient { - /** - * Gets a list of identity bindings 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. - * @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 list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); - - /** - * Gets a list of identity bindings 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. - * @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 list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); - - /** - * Gets a list of identity bindings 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 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. - * @return a list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context); - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String identityBindingName); - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String resourceName, String identityBindingName); - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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. - * @return the specified Identity Binding along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String resourceName, - String identityBindingName, Context context); - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IdentityBindingInner get(String resourceGroupName, String resourceName, String identityBindingName); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, IdentityBindingInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String identityBindingName, IdentityBindingInner parameters); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 SyncPoller} for polling of the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IdentityBindingInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String identityBindingName, IdentityBindingInner parameters); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the {@link SyncPoller} for polling of the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IdentityBindingInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String identityBindingName, IdentityBindingInner parameters, Context context); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IdentityBindingInner createOrUpdate(String resourceGroupName, String resourceName, String identityBindingName, - IdentityBindingInner parameters); - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IdentityBindingInner createOrUpdate(String resourceGroupName, String resourceName, String identityBindingName, - IdentityBindingInner parameters, Context context); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, - String identityBindingName); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 identityBindingName); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String identityBindingName); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String identityBindingName, Context context); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 identityBindingName); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, String identityBindingName); - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, String identityBindingName, Context context); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JwtAuthenticatorsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JwtAuthenticatorsClient.java deleted file mode 100644 index 96e9f9eaad93..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JwtAuthenticatorsClient.java +++ /dev/null @@ -1,352 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.models.JwtAuthenticatorInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in JwtAuthenticatorsClient. - */ -public interface JwtAuthenticatorsClient { - /** - * Gets a list of JWT authenticators 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. - * @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 list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); - - /** - * Gets a list of JWT authenticators 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. - * @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 list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); - - /** - * Gets a list of JWT authenticators 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 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. - * @return a list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context); - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName); - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName); - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the specified JWT authenticator of a managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context); - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - JwtAuthenticatorInner get(String resourceGroupName, String resourceName, String jwtAuthenticatorName); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, JwtAuthenticatorInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JwtAuthenticatorInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return the {@link SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, JwtAuthenticatorInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters, Context context); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - JwtAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, String jwtAuthenticatorName, - JwtAuthenticatorInner parameters); - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - JwtAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, String jwtAuthenticatorName, - JwtAuthenticatorInner parameters, Context context); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, - String jwtAuthenticatorName); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 jwtAuthenticatorName); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String jwtAuthenticatorName); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 jwtAuthenticatorName); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, String jwtAuthenticatorName); - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, String jwtAuthenticatorName, Context context); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java deleted file mode 100644 index 305de7605086..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java +++ /dev/null @@ -1,294 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in LoadBalancersClient. - */ -public interface LoadBalancersClient { - /** - * Gets a list of load balancers 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. - * @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 list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); - - /** - * Gets a list of load balancers 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. - * @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 list of load balancers in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); - - /** - * Gets a list of load balancers 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 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. - * @return a list of load balancers in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context); - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String loadBalancerName); - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String resourceName, String loadBalancerName); - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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. - * @return the specified load balancer along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String resourceName, String loadBalancerName, - Context context); - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LoadBalancerInner get(String resourceGroupName, String resourceName, String loadBalancerName); - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String loadBalancerName, LoadBalancerInner parameters); - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String loadBalancerName, - LoadBalancerInner parameters); - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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. - * @return the configurations regarding multiple standard load balancers along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, - String loadBalancerName, LoadBalancerInner parameters, Context context); - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LoadBalancerInner createOrUpdate(String resourceGroupName, String resourceName, String loadBalancerName, - LoadBalancerInner parameters); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, - String loadBalancerName); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 loadBalancerName); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String loadBalancerName); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String loadBalancerName, Context context); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 loadBalancerName); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, String loadBalancerName); - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, String loadBalancerName, Context context); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java index 8f41b71734a9..57a92d2b1623 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java @@ -9,13 +9,8 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.models.MachineInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -72,7 +67,7 @@ PagedIterable list(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 agentPoolName The name of the agent pool. - * @param machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -89,7 +84,7 @@ Mono> getWithResponseAsync(String resourceGroupName, Stri * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -105,7 +100,7 @@ Mono getAsync(String resourceGroupName, String resourceName, Strin * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -122,7 +117,7 @@ Response getWithResponse(String resourceGroupName, String resource * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -130,178 +125,4 @@ Response getWithResponse(String resourceGroupName, String resource */ @ServiceMethod(returns = ReturnType.SINGLE) MachineInner get(String resourceGroupName, String resourceName, String agentPoolName, String machineName); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and status along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, - String ifNoneMatch); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 SyncPoller} for polling of a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, - String ifNoneMatch, Context context); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and status on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 machine provides detailed information about its configuration and status on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 machine provides detailed information about its configuration and status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, String machineName, - MachineInner parameters); - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a machine provides detailed information about its configuration and status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, String machineName, - MachineInner parameters, String ifMatch, String ifNoneMatch, Context context); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java index 1327574fbe2b..a044c35f527c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java @@ -66,7 +66,8 @@ PagedIterable listByManagedCluster(String resourc * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -82,7 +83,8 @@ Mono> getWithResponseAsync(String resour * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -96,7 +98,8 @@ Mono> getWithResponseAsync(String resour * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -112,7 +115,8 @@ Response getWithResponse(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 configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -126,7 +130,8 @@ Response getWithResponse(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 configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -143,7 +148,8 @@ Mono> createOrUpdateWithResponseAsync(St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -160,7 +166,8 @@ Mono createOrUpdateAsync(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 configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,7 +185,8 @@ Response createOrUpdateWithResponse(String resour * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -194,7 +202,8 @@ MaintenanceConfigurationInner createOrUpdate(String resourceGroupName, String re * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -208,7 +217,8 @@ MaintenanceConfigurationInner createOrUpdate(String resourceGroupName, String re * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -222,7 +232,8 @@ MaintenanceConfigurationInner createOrUpdate(String resourceGroupName, String re * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -238,7 +249,8 @@ Response deleteWithResponse(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 configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java deleted file mode 100644 index f2f1123351ba..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java +++ /dev/null @@ -1,327 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; -import com.azure.resourcemanager.containerservice.models.TagsObject; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ManagedClusterSnapshotsClient. - */ -public interface ManagedClusterSnapshotsClient extends InnerSupportsGet, - InnerSupportsListing, InnerSupportsDelete { - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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 list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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 list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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. - * @return a list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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. - * @return the response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String resourceName); - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String resourceName); - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a managed cluster snapshot along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, - Context context); - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedClusterSnapshotInner getByResourceGroup(String resourceGroupName, String resourceName); - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterSnapshotInner parameters); - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - ManagedClusterSnapshotInner parameters); - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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. - * @return a managed cluster snapshot resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, - ManagedClusterSnapshotInner parameters, Context context); - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedClusterSnapshotInner createOrUpdate(String resourceGroupName, String resourceName, - ManagedClusterSnapshotInner parameters); - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateTagsWithResponseAsync(String resourceGroupName, - String resourceName, TagsObject parameters); - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String resourceName, - TagsObject parameters); - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags operation. - * @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. - * @return a managed cluster snapshot resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse(String resourceGroupName, String resourceName, - TagsObject parameters, Context context); - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ManagedClusterSnapshotInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters); - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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); - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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); - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String resourceName, Context context); - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java index e97cea4abd7d..1e03332b8dff 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java @@ -14,7 +14,6 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner; -import com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner; @@ -23,12 +22,10 @@ import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; -import com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; import com.azure.resourcemanager.containerservice.models.Format; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; import com.azure.resourcemanager.containerservice.models.ManagedClustersGetCommandResultResponse; -import com.azure.resourcemanager.containerservice.models.RebalanceLoadBalancersRequestBody; import com.azure.resourcemanager.containerservice.models.RunCommandRequest; import com.azure.resourcemanager.containerservice.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -841,8 +838,6 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -850,7 +845,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch, Boolean ignorePodDisruptionBudget); + String ifMatch); /** * Deletes a managed cluster. @@ -858,16 +853,13 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * @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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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, - Boolean ignorePodDisruptionBudget); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -901,8 +893,6 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St * @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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -911,7 +901,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, - Boolean ignorePodDisruptionBudget, Context context); + Context context); /** * Deletes a managed cluster. @@ -919,16 +909,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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, - Boolean ignorePodDisruptionBudget); + Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -961,16 +948,13 @@ Mono deleteAsync(String resourceGroupName, String resourceName, String ifM * @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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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, String ifMatch, Boolean ignorePodDisruptionBudget, - Context context); + void delete(String resourceGroupName, String resourceName, String ifMatch, Context context); /** * Reset the Service Principal Profile of a managed cluster. @@ -1216,11 +1200,10 @@ void resetAadProfile(String resourceGroupName, String resourceName, ManagedClust Context context); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1230,15 +1213,14 @@ void resetAadProfile(String resourceGroupName, String resourceName, ManagedClust * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, + Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, String resourceName); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1248,14 +1230,14 @@ Mono>> abortLatestOperationWithResponseAsync(String re * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, String resourceName); + PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, + String resourceName); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1265,14 +1247,13 @@ Mono>> abortLatestOperationWithResponseAsync(String re * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName); + SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, String resourceName); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1283,15 +1264,14 @@ Mono>> abortLatestOperationWithResponseAsync(String re * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName, + SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, String resourceName, Context context); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1301,14 +1281,13 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono abortLatestOperationAsync(String resourceGroupName, String resourceName); + Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1317,14 +1296,13 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void abortLatestOperation(String resourceGroupName, String resourceName); + void rotateClusterCertificates(String resourceGroupName, String resourceName); /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1334,13 +1312,14 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void abortLatestOperation(String resourceGroupName, String resourceName, Context context); + void rotateClusterCertificates(String resourceGroupName, String resourceName, Context context); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1350,14 +1329,15 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, + Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, String resourceName); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1367,14 +1347,14 @@ Mono>> rotateClusterCertificatesWithResponseAsync(Stri * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, - String resourceName); + PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, String resourceName); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1384,13 +1364,14 @@ PollerFlux, Void> beginRotateClusterCertificatesAsync(String re * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, String resourceName); + SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1401,14 +1382,15 @@ PollerFlux, Void> beginRotateClusterCertificatesAsync(String re * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, String resourceName, + SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName, Context context); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1418,13 +1400,14 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName); + Mono abortLatestOperationAsync(String resourceGroupName, String resourceName); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1433,13 +1416,14 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void rotateClusterCertificates(String resourceGroupName, String resourceName); + void abortLatestOperation(String resourceGroupName, String resourceName); /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -1449,7 +1433,7 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void rotateClusterCertificates(String resourceGroupName, String resourceName, Context context); + void abortLatestOperation(String resourceGroupName, String resourceName, Context context); /** * Rotates the service account signing keys of a managed cluster. @@ -2030,224 +2014,6 @@ PagedIterable listOutboundNetworkDependenciesE PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String resourceName, Context context); - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getGuardrailsVersionsWithResponseAsync(String location, - String version); - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getGuardrailsVersionsAsync(String location, String version); - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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. - * @return available Guardrails Version along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getGuardrailsVersionsWithResponse(String location, String version, - Context context); - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - GuardrailsAvailableVersionInner getGuardrailsVersions(String location, String version); - - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. - * - * Contains list of Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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 hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listGuardrailsVersionsAsync(String location); - - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. - * - * Contains list of Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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 hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listGuardrailsVersions(String location); - - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. - * - * Contains list of Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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. - * @return hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listGuardrailsVersions(String location, Context context); - - /** - * Gets supported Safeguards version in the specified subscription and location. - * - * Contains Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Safeguards Version along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getSafeguardsVersionsWithResponseAsync(String location, - String version); - - /** - * Gets supported Safeguards version in the specified subscription and location. - * - * Contains Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Safeguards Version on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getSafeguardsVersionsAsync(String location, String version); - - /** - * Gets supported Safeguards version in the specified subscription and location. - * - * Contains Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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. - * @return available Safeguards Version along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getSafeguardsVersionsWithResponse(String location, String version, - Context context); - - /** - * Gets supported Safeguards version in the specified subscription and location. - * - * Contains Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Safeguards Version. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SafeguardsAvailableVersionInner getSafeguardsVersions(String location, String version); - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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 hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listSafeguardsVersionsAsync(String location); - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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 hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSafeguardsVersions(String location); - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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. - * @return hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSafeguardsVersions(String location, Context context); - /** * Lists mesh revision profiles for all meshes in the specified location. * @@ -2461,116 +2227,4 @@ Response getMeshUpgradeProfileWithResponse(String resou */ @ServiceMethod(returns = ReturnType.SINGLE) MeshUpgradeProfileInner getMeshUpgradeProfile(String resourceGroupName, String resourceName, String mode); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, - String resourceName, RebalanceLoadBalancersRequestBody parameters); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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> beginRebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters, Context context); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 rebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters); - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 rebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters, Context context); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java deleted file mode 100644 index bf8ff69cb6ae..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java +++ /dev/null @@ -1,345 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in MeshMembershipsClient. - */ -public interface MeshMembershipsClient { - /** - * Lists mesh memberships in 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. - * @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 result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); - - /** - * Lists mesh memberships in 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. - * @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 result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); - - /** - * Lists mesh memberships in 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 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. - * @return the result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context); - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String meshMembershipName); - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String resourceName, String meshMembershipName); - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the mesh membership of a managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String resourceName, - String meshMembershipName, Context context); - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MeshMembershipInner get(String resourceGroupName, String resourceName, String meshMembershipName); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String meshMembershipName, MeshMembershipInner parameters); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String meshMembershipName, MeshMembershipInner parameters); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 SyncPoller} for polling of mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MeshMembershipInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String meshMembershipName, MeshMembershipInner parameters); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return the {@link SyncPoller} for polling of mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, MeshMembershipInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String meshMembershipName, MeshMembershipInner parameters, Context context); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String meshMembershipName, MeshMembershipInner parameters); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, - MeshMembershipInner parameters); - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, - MeshMembershipInner parameters, Context context); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, - String meshMembershipName); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 meshMembershipName); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String meshMembershipName); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String meshMembershipName, Context context); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 meshMembershipName); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, String meshMembershipName); - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, String meshMembershipName, Context context); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java deleted file mode 100644 index b937300f2a7a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java +++ /dev/null @@ -1,186 +0,0 @@ -// 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.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in OperationStatusResultsClient. - */ -public interface OperationStatusResultsClient { - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String resourceName); - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String resourceName); - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String resourceName, Context context); - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String operationId); - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String resourceName, String operationId); - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String resourceName, - String operationId, Context context); - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - OperationStatusResultInner get(String resourceGroupName, String resourceName, String operationId); - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, String operationId); - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByAgentPoolAsync(String resourceGroupName, String resourceName, - String agentPoolName, String operationId); - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified agent pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByAgentPoolWithResponse(String resourceGroupName, String resourceName, - String agentPoolName, String operationId, Context context); - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - OperationStatusResultInner getByAgentPool(String resourceGroupName, String resourceName, String agentPoolName, - String operationId); -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index 72c8f983ce8f..5f3f79c9daf8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -9,8 +9,6 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.AgentPoolArtifactStreamingProfile; -import com.azure.resourcemanager.containerservice.models.AgentPoolBlueGreenUpgradeSettings; import com.azure.resourcemanager.containerservice.models.AgentPoolGatewayProfile; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile; @@ -26,7 +24,6 @@ import com.azure.resourcemanager.containerservice.models.KubeletDiskType; import com.azure.resourcemanager.containerservice.models.LinuxOSConfig; import com.azure.resourcemanager.containerservice.models.LocalDnsProfile; -import com.azure.resourcemanager.containerservice.models.NodeCustomizationProfile; import com.azure.resourcemanager.containerservice.models.OSDiskType; import com.azure.resourcemanager.containerservice.models.OSSku; import com.azure.resourcemanager.containerservice.models.OSType; @@ -35,7 +32,6 @@ import com.azure.resourcemanager.containerservice.models.ScaleDownMode; import com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy; import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; -import com.azure.resourcemanager.containerservice.models.UpgradeStrategy; import com.azure.resourcemanager.containerservice.models.VirtualMachineNodes; import com.azure.resourcemanager.containerservice.models.VirtualMachinesProfile; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; @@ -430,9 +426,9 @@ public AgentPoolInner withOsType(OSType osType) { } /** - * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @return the osSku value. */ @@ -441,9 +437,9 @@ public OSSku osSku() { } /** - * Set the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Set the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @param osSku the osSku value to set. * @return the AgentPoolInner object itself. @@ -602,13 +598,13 @@ public AgentPoolInner withMode(AgentPoolMode mode) { /** * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> - * once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best - * practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool - * version must have the same major version as the control plane. The node pool minor version must be within two - * minor versions of the control plane version. The node pool version cannot be greater than the control plane - * version. For more information see [upgrading a node + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @return the orchestratorVersion value. @@ -619,13 +615,13 @@ public String orchestratorVersion() { /** * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> - * once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best - * practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool - * version must have the same major version as the control plane. The node pool minor version must be within two - * minor versions of the control plane version. The node pool version cannot be greater than the control plane - * version. For more information see [upgrading a node + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @param orchestratorVersion the orchestratorVersion value to set. @@ -640,9 +636,9 @@ public AgentPoolInner withOrchestratorVersion(String orchestratorVersion) { } /** - * Get the currentOrchestratorVersion property: The version of Kubernetes running on the Agent Pool. If - * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to - * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> + * Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> * version being used. * * @return the currentOrchestratorVersion value. @@ -661,45 +657,7 @@ public String nodeImageVersion() { } /** - * Set the nodeImageVersion property: The version of node image. - * - * @param nodeImageVersion the nodeImageVersion value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withNodeImageVersion(String nodeImageVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withNodeImageVersion(nodeImageVersion); - return this; - } - - /** - * Get the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. - * - * @return the upgradeStrategy value. - */ - public UpgradeStrategy upgradeStrategy() { - return this.innerProperties() == null ? null : this.innerProperties().upgradeStrategy(); - } - - /** - * Set the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. - * - * @param upgradeStrategy the upgradeStrategy value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withUpgradeStrategy(upgradeStrategy); - return this; - } - - /** - * Get the upgradeSettings property: Settings for upgrading the agentpool. Applies when upgrade strategy is set to - * Rolling. + * Get the upgradeSettings property: Settings for upgrading the agentpool. * * @return the upgradeSettings value. */ @@ -708,8 +666,7 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: Settings for upgrading the agentpool. Applies when upgrade strategy is set to - * Rolling. + * Set the upgradeSettings property: Settings for upgrading the agentpool. * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolInner object itself. @@ -722,31 +679,6 @@ public AgentPoolInner withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettin return this; } - /** - * Get the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade - * strategy is set to BlueGreen. - * - * @return the upgradeSettingsBlueGreen value. - */ - public AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen() { - return this.innerProperties() == null ? null : this.innerProperties().upgradeSettingsBlueGreen(); - } - - /** - * Set the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade - * strategy is set to BlueGreen. - * - * @param upgradeSettingsBlueGreen the upgradeSettingsBlueGreen value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withUpgradeSettingsBlueGreen(upgradeSettingsBlueGreen); - return this; - } - /** * Get the provisioningState property: The current deployment or provisioning state. * @@ -1022,39 +954,6 @@ public AgentPoolInner withNodeTaints(List nodeTaints) { return this; } - /** - * Get the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be - * modified after node pool is created, but nodes will not be recreated with new taints until another operation that - * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run - * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with - * `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @return the nodeInitializationTaints value. - */ - public List nodeInitializationTaints() { - return this.innerProperties() == null ? null : this.innerProperties().nodeInitializationTaints(); - } - - /** - * Set the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be - * modified after node pool is created, but nodes will not be recreated with new taints until another operation that - * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run - * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with - * `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @param nodeInitializationTaints the nodeInitializationTaints value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withNodeInitializationTaints(List nodeInitializationTaints) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withNodeInitializationTaints(nodeInitializationTaints); - return this; - } - /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. * @@ -1308,48 +1207,48 @@ public AgentPoolInner withHostGroupId(String hostGroupId) { } /** - * Get the windowsProfile property: The Windows agent pool's specific profile. + * Get the networkProfile property: Network-related settings of an agent pool. * - * @return the windowsProfile value. + * @return the networkProfile value. */ - public AgentPoolWindowsProfile windowsProfile() { - return this.innerProperties() == null ? null : this.innerProperties().windowsProfile(); + public AgentPoolNetworkProfile networkProfile() { + return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); } /** - * Set the windowsProfile property: The Windows agent pool's specific profile. + * Set the networkProfile property: Network-related settings of an agent pool. * - * @param windowsProfile the windowsProfile value to set. + * @param networkProfile the networkProfile value to set. * @return the AgentPoolInner object itself. */ - public AgentPoolInner withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { + public AgentPoolInner withNetworkProfile(AgentPoolNetworkProfile networkProfile) { if (this.innerProperties() == null) { this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); } - this.innerProperties().withWindowsProfile(windowsProfile); + this.innerProperties().withNetworkProfile(networkProfile); return this; } /** - * Get the networkProfile property: Network-related settings of an agent pool. + * Get the windowsProfile property: The Windows agent pool's specific profile. * - * @return the networkProfile value. + * @return the windowsProfile value. */ - public AgentPoolNetworkProfile networkProfile() { - return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); + public AgentPoolWindowsProfile windowsProfile() { + return this.innerProperties() == null ? null : this.innerProperties().windowsProfile(); } /** - * Set the networkProfile property: Network-related settings of an agent pool. + * Set the windowsProfile property: The Windows agent pool's specific profile. * - * @param networkProfile the networkProfile value to set. + * @param windowsProfile the windowsProfile value to set. * @return the AgentPoolInner object itself. */ - public AgentPoolInner withNetworkProfile(AgentPoolNetworkProfile networkProfile) { + public AgentPoolInner withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { if (this.innerProperties() == null) { this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); } - this.innerProperties().withNetworkProfile(networkProfile); + this.innerProperties().withWindowsProfile(windowsProfile); return this; } @@ -1377,7 +1276,7 @@ public AgentPoolInner withSecurityProfile(AgentPoolSecurityProfile securityProfi } /** - * Get the gpuProfile property: The GPU settings of an agent pool. + * Get the gpuProfile property: GPU settings for the Agent Pool. * * @return the gpuProfile value. */ @@ -1386,7 +1285,7 @@ public GpuProfile gpuProfile() { } /** - * Set the gpuProfile property: The GPU settings of an agent pool. + * Set the gpuProfile property: GPU settings for the Agent Pool. * * @param gpuProfile the gpuProfile value to set. * @return the AgentPoolInner object itself. @@ -1400,25 +1299,27 @@ public AgentPoolInner withGpuProfile(GpuProfile gpuProfile) { } /** - * Get the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be + * set if agent pool mode is not Gateway. * - * @return the artifactStreamingProfile value. + * @return the gatewayProfile value. */ - public AgentPoolArtifactStreamingProfile artifactStreamingProfile() { - return this.innerProperties() == null ? null : this.innerProperties().artifactStreamingProfile(); + public AgentPoolGatewayProfile gatewayProfile() { + return this.innerProperties() == null ? null : this.innerProperties().gatewayProfile(); } /** - * Set the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be + * set if agent pool mode is not Gateway. * - * @param artifactStreamingProfile the artifactStreamingProfile value to set. + * @param gatewayProfile the gatewayProfile value to set. * @return the AgentPoolInner object itself. */ - public AgentPoolInner withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile artifactStreamingProfile) { + public AgentPoolInner withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { if (this.innerProperties() == null) { this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); } - this.innerProperties().withArtifactStreamingProfile(artifactStreamingProfile); + this.innerProperties().withGatewayProfile(gatewayProfile); return this; } @@ -1468,31 +1369,6 @@ public AgentPoolInner withVirtualMachineNodesStatus(List vi return this; } - /** - * Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be - * set if agent pool mode is not Gateway. - * - * @return the gatewayProfile value. - */ - public AgentPoolGatewayProfile gatewayProfile() { - return this.innerProperties() == null ? null : this.innerProperties().gatewayProfile(); - } - - /** - * Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be - * set if agent pool mode is not Gateway. - * - * @param gatewayProfile the gatewayProfile value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withGatewayProfile(gatewayProfile); - return this; - } - /** * Get the status property: Contains read-only information about the Agent Pool. * @@ -1543,31 +1419,6 @@ public AgentPoolInner withLocalDnsProfile(LocalDnsProfile localDnsProfile) { return this; } - /** - * Get the nodeCustomizationProfile property: Settings to determine the node customization used to provision nodes - * in a pool. - * - * @return the nodeCustomizationProfile value. - */ - public NodeCustomizationProfile nodeCustomizationProfile() { - return this.innerProperties() == null ? null : this.innerProperties().nodeCustomizationProfile(); - } - - /** - * Set the nodeCustomizationProfile property: Settings to determine the node customization used to provision nodes - * in a pool. - * - * @param nodeCustomizationProfile the nodeCustomizationProfile value to set. - * @return the AgentPoolInner object itself. - */ - public AgentPoolInner withNodeCustomizationProfile(NodeCustomizationProfile nodeCustomizationProfile) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); - } - this.innerProperties().withNodeCustomizationProfile(nodeCustomizationProfile); - return this; - } - /** * Validates the instance. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java index c1c9ff4eea55..79cc3cd76425 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java @@ -10,9 +10,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.AgentPoolRecentlyUsedVersion; import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem; -import com.azure.resourcemanager.containerservice.models.ComponentsByRelease; import com.azure.resourcemanager.containerservice.models.OSType; import java.io.IOException; import java.util.List; @@ -153,38 +151,6 @@ public AgentPoolUpgradeProfileInner withUpgrades(List componentsByReleases() { - return this.innerProperties() == null ? null : this.innerProperties().componentsByReleases(); - } - - /** - * Set the componentsByReleases property: List of components grouped by kubernetes major.minor version. - * - * @param componentsByReleases the componentsByReleases value to set. - * @return the AgentPoolUpgradeProfileInner object itself. - */ - public AgentPoolUpgradeProfileInner withComponentsByReleases(List componentsByReleases) { - if (this.innerProperties() == null) { - this.innerProperties = new AgentPoolUpgradeProfileProperties(); - } - this.innerProperties().withComponentsByReleases(componentsByReleases); - return this; - } - - /** - * Get the recentlyUsedVersions property: List of historical good versions for rollback operations. - * - * @return the recentlyUsedVersions value. - */ - public List recentlyUsedVersions() { - return this.innerProperties() == null ? null : this.innerProperties().recentlyUsedVersions(); - } - /** * Get the latestNodeImageVersion property: The latest AKS supported node image version. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java index 231732f5543f..98880ef60067 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java @@ -10,9 +10,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.AgentPoolRecentlyUsedVersion; import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem; -import com.azure.resourcemanager.containerservice.models.ComponentsByRelease; import com.azure.resourcemanager.containerservice.models.OSType; import java.io.IOException; import java.util.List; @@ -37,16 +35,6 @@ public final class AgentPoolUpgradeProfileProperties implements JsonSerializable */ private List upgrades; - /* - * List of components grouped by kubernetes major.minor version. - */ - private List componentsByReleases; - - /* - * List of historical good versions for rollback operations. - */ - private List recentlyUsedVersions; - /* * The latest AKS supported node image version. */ @@ -119,35 +107,6 @@ public List upgrades() { return this; } - /** - * Get the componentsByReleases property: List of components grouped by kubernetes major.minor version. - * - * @return the componentsByReleases value. - */ - public List componentsByReleases() { - return this.componentsByReleases; - } - - /** - * Set the componentsByReleases property: List of components grouped by kubernetes major.minor version. - * - * @param componentsByReleases the componentsByReleases value to set. - * @return the AgentPoolUpgradeProfileProperties object itself. - */ - public AgentPoolUpgradeProfileProperties withComponentsByReleases(List componentsByReleases) { - this.componentsByReleases = componentsByReleases; - return this; - } - - /** - * Get the recentlyUsedVersions property: List of historical good versions for rollback operations. - * - * @return the recentlyUsedVersions value. - */ - public List recentlyUsedVersions() { - return this.recentlyUsedVersions; - } - /** * Get the latestNodeImageVersion property: The latest AKS supported node image version. * @@ -187,12 +146,6 @@ public void validate() { if (upgrades() != null) { upgrades().forEach(e -> e.validate()); } - if (componentsByReleases() != null) { - componentsByReleases().forEach(e -> e.validate()); - } - if (recentlyUsedVersions() != null) { - recentlyUsedVersions().forEach(e -> e.validate()); - } } private static final ClientLogger LOGGER = new ClientLogger(AgentPoolUpgradeProfileProperties.class); @@ -206,8 +159,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); jsonWriter.writeArrayField("upgrades", this.upgrades, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("componentsByReleases", this.componentsByReleases, - (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("latestNodeImageVersion", this.latestNodeImageVersion); return jsonWriter.writeEndObject(); } @@ -237,14 +188,6 @@ public static AgentPoolUpgradeProfileProperties fromJson(JsonReader jsonReader) List upgrades = reader.readArray(reader1 -> AgentPoolUpgradeProfilePropertiesUpgradesItem.fromJson(reader1)); deserializedAgentPoolUpgradeProfileProperties.upgrades = upgrades; - } else if ("componentsByReleases".equals(fieldName)) { - List componentsByReleases - = reader.readArray(reader1 -> ComponentsByRelease.fromJson(reader1)); - deserializedAgentPoolUpgradeProfileProperties.componentsByReleases = componentsByReleases; - } else if ("recentlyUsedVersions".equals(fieldName)) { - List recentlyUsedVersions - = reader.readArray(reader1 -> AgentPoolRecentlyUsedVersion.fromJson(reader1)); - deserializedAgentPoolUpgradeProfileProperties.recentlyUsedVersions = recentlyUsedVersions; } else if ("latestNodeImageVersion".equals(fieldName)) { deserializedAgentPoolUpgradeProfileProperties.latestNodeImageVersion = reader.getString(); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java deleted file mode 100644 index 79aaab7e8e08..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java +++ /dev/null @@ -1,175 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.GuardrailsAvailableVersionsProperties; -import java.io.IOException; - -/** - * Available Guardrails Version. - */ -@Fluent -public final class GuardrailsAvailableVersionInner extends ProxyResource { - /* - * Whether the version is default or not and support info. - */ - private GuardrailsAvailableVersionsProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of GuardrailsAvailableVersionInner class. - */ - public GuardrailsAvailableVersionInner() { - } - - /** - * Get the properties property: Whether the version is default or not and support info. - * - * @return the properties value. - */ - public GuardrailsAvailableVersionsProperties properties() { - return this.properties; - } - - /** - * Set the properties property: Whether the version is default or not and support info. - * - * @param properties the properties value to set. - * @return the GuardrailsAvailableVersionInner object itself. - */ - public GuardrailsAvailableVersionInner withProperties(GuardrailsAvailableVersionsProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property properties in model GuardrailsAvailableVersionInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GuardrailsAvailableVersionInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of GuardrailsAvailableVersionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of GuardrailsAvailableVersionInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the GuardrailsAvailableVersionInner. - */ - public static GuardrailsAvailableVersionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - GuardrailsAvailableVersionInner deserializedGuardrailsAvailableVersionInner - = new GuardrailsAvailableVersionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedGuardrailsAvailableVersionInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedGuardrailsAvailableVersionInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedGuardrailsAvailableVersionInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedGuardrailsAvailableVersionInner.properties - = GuardrailsAvailableVersionsProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedGuardrailsAvailableVersionInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedGuardrailsAvailableVersionInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java deleted file mode 100644 index 5b53f9fe6097..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java +++ /dev/null @@ -1,186 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.IdentityBindingProperties; -import java.io.IOException; - -/** - * The IdentityBinding resource. - */ -@Fluent -public final class IdentityBindingInner extends ProxyResource { - /* - * The resource-specific properties for this resource. - */ - private IdentityBindingProperties properties; - - /* - * 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; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of IdentityBindingInner class. - */ - public IdentityBindingInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public IdentityBindingProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the IdentityBindingInner object itself. - */ - public IdentityBindingInner withProperties(IdentityBindingProperties properties) { - this.properties = properties; - 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.etag; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IdentityBindingInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IdentityBindingInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IdentityBindingInner. - */ - public static IdentityBindingInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IdentityBindingInner deserializedIdentityBindingInner = new IdentityBindingInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedIdentityBindingInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedIdentityBindingInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedIdentityBindingInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedIdentityBindingInner.properties = IdentityBindingProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedIdentityBindingInner.etag = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedIdentityBindingInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedIdentityBindingInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JwtAuthenticatorInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JwtAuthenticatorInner.java deleted file mode 100644 index 9b4df46d0e88..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JwtAuthenticatorInner.java +++ /dev/null @@ -1,185 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.JwtAuthenticatorProperties; -import java.io.IOException; - -/** - * Configuration for JWT authenticator in the managed cluster. - */ -@Fluent -public final class JwtAuthenticatorInner extends ProxyResource { - /* - * The properties of JWTAuthenticator. For details on how to configure the properties of a JWT authenticator, please - * refer to the Kubernetes documentation: - * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. - * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For - * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. - */ - private JwtAuthenticatorProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of JwtAuthenticatorInner class. - */ - public JwtAuthenticatorInner() { - } - - /** - * Get the properties property: The properties of JWTAuthenticator. For details on how to configure the properties - * of a JWT authenticator, please refer to the Kubernetes documentation: - * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. - * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For - * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. - * - * @return the properties value. - */ - public JwtAuthenticatorProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The properties of JWTAuthenticator. For details on how to configure the properties - * of a JWT authenticator, please refer to the Kubernetes documentation: - * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. - * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For - * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. - * - * @param properties the properties value to set. - * @return the JwtAuthenticatorInner object itself. - */ - public JwtAuthenticatorInner withProperties(JwtAuthenticatorProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property properties in model JwtAuthenticatorInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorInner. - */ - public static JwtAuthenticatorInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorInner deserializedJwtAuthenticatorInner = new JwtAuthenticatorInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedJwtAuthenticatorInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedJwtAuthenticatorInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedJwtAuthenticatorInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedJwtAuthenticatorInner.properties = JwtAuthenticatorProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedJwtAuthenticatorInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java deleted file mode 100644 index 090dfb7eef8c..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java +++ /dev/null @@ -1,298 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.LabelSelector; -import java.io.IOException; - -/** - * The configurations regarding multiple standard load balancers. If not supplied, single load balancer mode will be - * used. Multiple standard load balancers mode will be used if at lease one configuration is supplied. There has to be a - * configuration named `kubernetes`. The name field will be the name of the corresponding public load balancer. There - * will be an internal load balancer created if needed, and the name will be `<name>-internal`. The internal lb - * shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer - * list. - */ -@Fluent -public final class LoadBalancerInner extends ProxyResource { - /* - * The properties of the load balancer. - */ - private LoadBalancerProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of LoadBalancerInner class. - */ - public LoadBalancerInner() { - } - - /** - * Get the innerProperties property: The properties of the load balancer. - * - * @return the innerProperties value. - */ - private LoadBalancerProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing - * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at - * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a - * single load balancer. - * - * @return the primaryAgentPoolName value. - */ - public String primaryAgentPoolName() { - return this.innerProperties() == null ? null : this.innerProperties().primaryAgentPoolName(); - } - - /** - * Set the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing - * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at - * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a - * single load balancer. - * - * @param primaryAgentPoolName the primaryAgentPoolName value to set. - * @return the LoadBalancerInner object itself. - */ - public LoadBalancerInner withPrimaryAgentPoolName(String primaryAgentPoolName) { - if (this.innerProperties() == null) { - this.innerProperties = new LoadBalancerProperties(); - } - this.innerProperties().withPrimaryAgentPoolName(primaryAgentPoolName); - return this; - } - - /** - * Get the allowServicePlacement property: Whether to automatically place services on the load balancer. If not - * supplied, the default value is true. If set to false manually, both of the external and the internal load - * balancer will not be selected for services unless they explicitly target it. - * - * @return the allowServicePlacement value. - */ - public Boolean allowServicePlacement() { - return this.innerProperties() == null ? null : this.innerProperties().allowServicePlacement(); - } - - /** - * Set the allowServicePlacement property: Whether to automatically place services on the load balancer. If not - * supplied, the default value is true. If set to false manually, both of the external and the internal load - * balancer will not be selected for services unless they explicitly target it. - * - * @param allowServicePlacement the allowServicePlacement value to set. - * @return the LoadBalancerInner object itself. - */ - public LoadBalancerInner withAllowServicePlacement(Boolean allowServicePlacement) { - if (this.innerProperties() == null) { - this.innerProperties = new LoadBalancerProperties(); - } - this.innerProperties().withAllowServicePlacement(allowServicePlacement); - return this; - } - - /** - * Get the serviceLabelSelector property: Only services that must match this selector can be placed on this load - * balancer. - * - * @return the serviceLabelSelector value. - */ - public LabelSelector serviceLabelSelector() { - return this.innerProperties() == null ? null : this.innerProperties().serviceLabelSelector(); - } - - /** - * Set the serviceLabelSelector property: Only services that must match this selector can be placed on this load - * balancer. - * - * @param serviceLabelSelector the serviceLabelSelector value to set. - * @return the LoadBalancerInner object itself. - */ - public LoadBalancerInner withServiceLabelSelector(LabelSelector serviceLabelSelector) { - if (this.innerProperties() == null) { - this.innerProperties = new LoadBalancerProperties(); - } - this.innerProperties().withServiceLabelSelector(serviceLabelSelector); - return this; - } - - /** - * Get the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed - * on this load balancer. - * - * @return the serviceNamespaceSelector value. - */ - public LabelSelector serviceNamespaceSelector() { - return this.innerProperties() == null ? null : this.innerProperties().serviceNamespaceSelector(); - } - - /** - * Set the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed - * on this load balancer. - * - * @param serviceNamespaceSelector the serviceNamespaceSelector value to set. - * @return the LoadBalancerInner object itself. - */ - public LoadBalancerInner withServiceNamespaceSelector(LabelSelector serviceNamespaceSelector) { - if (this.innerProperties() == null) { - this.innerProperties = new LoadBalancerProperties(); - } - this.innerProperties().withServiceNamespaceSelector(serviceNamespaceSelector); - return this; - } - - /** - * Get the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. - * - * @return the nodeSelector value. - */ - public LabelSelector nodeSelector() { - return this.innerProperties() == null ? null : this.innerProperties().nodeSelector(); - } - - /** - * Set the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. - * - * @param nodeSelector the nodeSelector value to set. - * @return the LoadBalancerInner object itself. - */ - public LoadBalancerInner withNodeSelector(LabelSelector nodeSelector) { - if (this.innerProperties() == null) { - this.innerProperties = new LoadBalancerProperties(); - } - this.innerProperties().withNodeSelector(nodeSelector); - return this; - } - - /** - * Get the provisioningState property: The current provisioning state. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LoadBalancerInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LoadBalancerInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the LoadBalancerInner. - */ - public static LoadBalancerInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LoadBalancerInner deserializedLoadBalancerInner = new LoadBalancerInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedLoadBalancerInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedLoadBalancerInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedLoadBalancerInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedLoadBalancerInner.innerProperties = LoadBalancerProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedLoadBalancerInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedLoadBalancerInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java deleted file mode 100644 index e6cd72bd6fc5..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java +++ /dev/null @@ -1,259 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.LabelSelector; -import java.io.IOException; - -/** - * The LoadBalancerProperties model. - */ -@Fluent -public final class LoadBalancerProperties implements JsonSerializable { - /* - * Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool - * will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for - * autoscaling operations. An agent pool can only be the primary pool for a single load balancer. - */ - private String primaryAgentPoolName; - - /* - * Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set - * to false manually, both of the external and the internal load balancer will not be selected for services unless - * they explicitly target it. - */ - private Boolean allowServicePlacement; - - /* - * Only services that must match this selector can be placed on this load balancer. - */ - private LabelSelector serviceLabelSelector; - - /* - * Services created in namespaces that match the selector can be placed on this load balancer. - */ - private LabelSelector serviceNamespaceSelector; - - /* - * Nodes that match this selector will be possible members of this load balancer. - */ - private LabelSelector nodeSelector; - - /* - * The current provisioning state. - */ - private String provisioningState; - - /** - * Creates an instance of LoadBalancerProperties class. - */ - public LoadBalancerProperties() { - } - - /** - * Get the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing - * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at - * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a - * single load balancer. - * - * @return the primaryAgentPoolName value. - */ - public String primaryAgentPoolName() { - return this.primaryAgentPoolName; - } - - /** - * Set the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing - * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at - * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a - * single load balancer. - * - * @param primaryAgentPoolName the primaryAgentPoolName value to set. - * @return the LoadBalancerProperties object itself. - */ - public LoadBalancerProperties withPrimaryAgentPoolName(String primaryAgentPoolName) { - this.primaryAgentPoolName = primaryAgentPoolName; - return this; - } - - /** - * Get the allowServicePlacement property: Whether to automatically place services on the load balancer. If not - * supplied, the default value is true. If set to false manually, both of the external and the internal load - * balancer will not be selected for services unless they explicitly target it. - * - * @return the allowServicePlacement value. - */ - public Boolean allowServicePlacement() { - return this.allowServicePlacement; - } - - /** - * Set the allowServicePlacement property: Whether to automatically place services on the load balancer. If not - * supplied, the default value is true. If set to false manually, both of the external and the internal load - * balancer will not be selected for services unless they explicitly target it. - * - * @param allowServicePlacement the allowServicePlacement value to set. - * @return the LoadBalancerProperties object itself. - */ - public LoadBalancerProperties withAllowServicePlacement(Boolean allowServicePlacement) { - this.allowServicePlacement = allowServicePlacement; - return this; - } - - /** - * Get the serviceLabelSelector property: Only services that must match this selector can be placed on this load - * balancer. - * - * @return the serviceLabelSelector value. - */ - public LabelSelector serviceLabelSelector() { - return this.serviceLabelSelector; - } - - /** - * Set the serviceLabelSelector property: Only services that must match this selector can be placed on this load - * balancer. - * - * @param serviceLabelSelector the serviceLabelSelector value to set. - * @return the LoadBalancerProperties object itself. - */ - public LoadBalancerProperties withServiceLabelSelector(LabelSelector serviceLabelSelector) { - this.serviceLabelSelector = serviceLabelSelector; - return this; - } - - /** - * Get the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed - * on this load balancer. - * - * @return the serviceNamespaceSelector value. - */ - public LabelSelector serviceNamespaceSelector() { - return this.serviceNamespaceSelector; - } - - /** - * Set the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed - * on this load balancer. - * - * @param serviceNamespaceSelector the serviceNamespaceSelector value to set. - * @return the LoadBalancerProperties object itself. - */ - public LoadBalancerProperties withServiceNamespaceSelector(LabelSelector serviceNamespaceSelector) { - this.serviceNamespaceSelector = serviceNamespaceSelector; - return this; - } - - /** - * Get the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. - * - * @return the nodeSelector value. - */ - public LabelSelector nodeSelector() { - return this.nodeSelector; - } - - /** - * Set the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. - * - * @param nodeSelector the nodeSelector value to set. - * @return the LoadBalancerProperties object itself. - */ - public LoadBalancerProperties withNodeSelector(LabelSelector nodeSelector) { - this.nodeSelector = nodeSelector; - return this; - } - - /** - * Get the provisioningState property: The current provisioning state. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (primaryAgentPoolName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property primaryAgentPoolName in model LoadBalancerProperties")); - } - if (serviceLabelSelector() != null) { - serviceLabelSelector().validate(); - } - if (serviceNamespaceSelector() != null) { - serviceNamespaceSelector().validate(); - } - if (nodeSelector() != null) { - nodeSelector().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("primaryAgentPoolName", this.primaryAgentPoolName); - jsonWriter.writeBooleanField("allowServicePlacement", this.allowServicePlacement); - jsonWriter.writeJsonField("serviceLabelSelector", this.serviceLabelSelector); - jsonWriter.writeJsonField("serviceNamespaceSelector", this.serviceNamespaceSelector); - jsonWriter.writeJsonField("nodeSelector", this.nodeSelector); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LoadBalancerProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LoadBalancerProperties if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the LoadBalancerProperties. - */ - public static LoadBalancerProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LoadBalancerProperties deserializedLoadBalancerProperties = new LoadBalancerProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("primaryAgentPoolName".equals(fieldName)) { - deserializedLoadBalancerProperties.primaryAgentPoolName = reader.getString(); - } else if ("allowServicePlacement".equals(fieldName)) { - deserializedLoadBalancerProperties.allowServicePlacement - = reader.getNullable(JsonReader::getBoolean); - } else if ("serviceLabelSelector".equals(fieldName)) { - deserializedLoadBalancerProperties.serviceLabelSelector = LabelSelector.fromJson(reader); - } else if ("serviceNamespaceSelector".equals(fieldName)) { - deserializedLoadBalancerProperties.serviceNamespaceSelector = LabelSelector.fromJson(reader); - } else if ("nodeSelector".equals(fieldName)) { - deserializedLoadBalancerProperties.nodeSelector = LabelSelector.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedLoadBalancerProperties.provisioningState = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedLoadBalancerProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java index 747f7e188dbf..5bedf80fe172 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java @@ -14,8 +14,8 @@ import java.util.List; /** - * A machine provides detailed information about its configuration and status. A machine may be visible here but not in - * kubectl get nodes; if so, it may be because the machine has not been registered with the Kubernetes API Server yet. + * A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl + * get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet. */ @Fluent public final class MachineInner extends SubResource { @@ -54,17 +54,6 @@ public List zones() { return this.zones; } - /** - * Set the zones property: The Availability zone in which machine is located. - * - * @param zones the zones value to set. - * @return the MachineInner object itself. - */ - public MachineInner withZones(List zones) { - this.zones = zones; - return this; - } - /** * Get the properties property: The properties of the machine. * @@ -74,17 +63,6 @@ public MachineProperties properties() { return this.properties; } - /** - * Set the properties property: The properties of the machine. - * - * @param properties the properties value to set. - * @return the MachineInner object itself. - */ - public MachineInner withProperties(MachineProperties properties) { - this.properties = properties; - return this; - } - /** * Get the name property: The name of the resource that is unique within a resource group. This name can be used to * access the resource. @@ -131,8 +109,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index 0cf5ed623b74..93d5bfd7120f 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -9,8 +9,6 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.AgentPoolArtifactStreamingProfile; -import com.azure.resourcemanager.containerservice.models.AgentPoolBlueGreenUpgradeSettings; import com.azure.resourcemanager.containerservice.models.AgentPoolGatewayProfile; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile; @@ -26,7 +24,6 @@ import com.azure.resourcemanager.containerservice.models.KubeletDiskType; import com.azure.resourcemanager.containerservice.models.LinuxOSConfig; import com.azure.resourcemanager.containerservice.models.LocalDnsProfile; -import com.azure.resourcemanager.containerservice.models.NodeCustomizationProfile; import com.azure.resourcemanager.containerservice.models.OSDiskType; import com.azure.resourcemanager.containerservice.models.OSSku; import com.azure.resourcemanager.containerservice.models.OSType; @@ -35,7 +32,6 @@ import com.azure.resourcemanager.containerservice.models.ScaleDownMode; import com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy; import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; -import com.azure.resourcemanager.containerservice.models.UpgradeStrategy; import com.azure.resourcemanager.containerservice.models.VirtualMachineNodes; import com.azure.resourcemanager.containerservice.models.VirtualMachinesProfile; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; @@ -134,9 +130,8 @@ public class ManagedClusterAgentPoolProfileProperties private OSType osType; /* - * Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or - * Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is - * deprecated. + * Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 + * when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. */ private OSSku osSku; @@ -174,20 +169,20 @@ public class ManagedClusterAgentPoolProfileProperties private AgentPoolMode mode; /* - * The version of Kubernetes specified by the user. Both patch version and are - * supported. When is specified, the latest supported patch version is chosen automatically. Updating - * the agent pool with the same once it has been created will not trigger an upgrade, even if a newer - * patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same - * Kubernetes version. The node pool version must have the same major version as the control plane. The node pool - * minor version must be within two minor versions of the control plane version. The node pool version cannot be - * greater than the control plane version. For more information see [upgrading a node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + * The version of Kubernetes specified by the user. Both patch version (e.g. 1.20.13) and + * (e.g. 1.20) are supported. When is specified, the latest supported GA patch version + * is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x + * -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should + * upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same + * major version as the control plane. The node pool minor version must be within two minor versions of the control + * plane version. The node pool version cannot be greater than the control plane version. For more information see + * [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ private String orchestratorVersion; /* - * The version of Kubernetes running on the Agent Pool. If orchestratorVersion was a fully specified version - * , this field will be exactly equal to it. If orchestratorVersion was , this field + * The version of Kubernetes the Agent Pool is running. If orchestratorVersion is a fully specified version + * , this field will be exactly equal to it. If orchestratorVersion is , this field * will contain the full version being used. */ private String currentOrchestratorVersion; @@ -198,20 +193,10 @@ public class ManagedClusterAgentPoolProfileProperties private String nodeImageVersion; /* - * Defines the upgrade strategy for the agent pool. The default is Rolling. - */ - private UpgradeStrategy upgradeStrategy; - - /* - * Settings for upgrading the agentpool. Applies when upgrade strategy is set to Rolling. + * Settings for upgrading the agentpool */ private AgentPoolUpgradeSettings upgradeSettings; - /* - * Settings for Blue-Green upgrade on the agentpool. Applies when upgrade strategy is set to BlueGreen. - */ - private AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen; - /* * The current deployment or provisioning state. */ @@ -281,16 +266,6 @@ public class ManagedClusterAgentPoolProfileProperties */ private List nodeTaints; - /* - * Taints added on the nodes during creation that will not be reconciled by AKS. These taints will not be reconciled - * by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes - * will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) - * happens. These taints allow for required configuration to run before the node is ready to accept workloads, for - * example 'key1=value1:NoSchedule' that then can be removed with `kubectl taint nodes node1 - * key1=value1:NoSchedule-` - */ - private List nodeInitializationTaints; - /* * The ID for Proximity Placement Group. */ @@ -350,14 +325,14 @@ public class ManagedClusterAgentPoolProfileProperties private String hostGroupId; /* - * The Windows agent pool's specific profile. + * Network-related settings of an agent pool. */ - private AgentPoolWindowsProfile windowsProfile; + private AgentPoolNetworkProfile networkProfile; /* - * Network-related settings of an agent pool. + * The Windows agent pool's specific profile. */ - private AgentPoolNetworkProfile networkProfile; + private AgentPoolWindowsProfile windowsProfile; /* * The security settings of an agent pool. @@ -365,14 +340,15 @@ public class ManagedClusterAgentPoolProfileProperties private AgentPoolSecurityProfile securityProfile; /* - * The GPU settings of an agent pool. + * GPU settings for the Agent Pool. */ private GpuProfile gpuProfile; /* - * Configuration for using artifact streaming on AKS. + * Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not + * Gateway. */ - private AgentPoolArtifactStreamingProfile artifactStreamingProfile; + private AgentPoolGatewayProfile gatewayProfile; /* * Specifications on VirtualMachines agent pool. @@ -384,12 +360,6 @@ public class ManagedClusterAgentPoolProfileProperties */ private List virtualMachineNodesStatus; - /* - * Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not - * Gateway. - */ - private AgentPoolGatewayProfile gatewayProfile; - /* * Contains read-only information about the Agent Pool. */ @@ -401,11 +371,6 @@ public class ManagedClusterAgentPoolProfileProperties */ private LocalDnsProfile localDnsProfile; - /* - * Settings to determine the node customization used to provision nodes in a pool. - */ - private NodeCustomizationProfile nodeCustomizationProfile; - /** * Creates an instance of ManagedClusterAgentPoolProfileProperties class. */ @@ -713,9 +678,9 @@ public ManagedClusterAgentPoolProfileProperties withOsType(OSType osType) { } /** - * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @return the osSku value. */ @@ -724,9 +689,9 @@ public OSSku osSku() { } /** - * Set the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Set the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @param osSku the osSku value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. @@ -864,13 +829,13 @@ public ManagedClusterAgentPoolProfileProperties withMode(AgentPoolMode mode) { /** * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> - * once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best - * practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool - * version must have the same major version as the control plane. The node pool minor version must be within two - * minor versions of the control plane version. The node pool version cannot be greater than the control plane - * version. For more information see [upgrading a node + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @return the orchestratorVersion value. @@ -881,13 +846,13 @@ public String orchestratorVersion() { /** * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> - * once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best - * practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool - * version must have the same major version as the control plane. The node pool minor version must be within two - * minor versions of the control plane version. The node pool version cannot be greater than the control plane - * version. For more information see [upgrading a node + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @param orchestratorVersion the orchestratorVersion value to set. @@ -899,9 +864,9 @@ public ManagedClusterAgentPoolProfileProperties withOrchestratorVersion(String o } /** - * Get the currentOrchestratorVersion property: The version of Kubernetes running on the Agent Pool. If - * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to - * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> + * Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> * version being used. * * @return the currentOrchestratorVersion value. @@ -911,9 +876,9 @@ public String currentOrchestratorVersion() { } /** - * Set the currentOrchestratorVersion property: The version of Kubernetes running on the Agent Pool. If - * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to - * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> + * Set the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> * version being used. * * @param currentOrchestratorVersion the currentOrchestratorVersion value to set. @@ -939,34 +904,13 @@ public String nodeImageVersion() { * @param nodeImageVersion the nodeImageVersion value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ - public ManagedClusterAgentPoolProfileProperties withNodeImageVersion(String nodeImageVersion) { + ManagedClusterAgentPoolProfileProperties withNodeImageVersion(String nodeImageVersion) { this.nodeImageVersion = nodeImageVersion; return this; } /** - * Get the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. - * - * @return the upgradeStrategy value. - */ - public UpgradeStrategy upgradeStrategy() { - return this.upgradeStrategy; - } - - /** - * Set the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. - * - * @param upgradeStrategy the upgradeStrategy value to set. - * @return the ManagedClusterAgentPoolProfileProperties object itself. - */ - public ManagedClusterAgentPoolProfileProperties withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { - this.upgradeStrategy = upgradeStrategy; - return this; - } - - /** - * Get the upgradeSettings property: Settings for upgrading the agentpool. Applies when upgrade strategy is set to - * Rolling. + * Get the upgradeSettings property: Settings for upgrading the agentpool. * * @return the upgradeSettings value. */ @@ -975,8 +919,7 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: Settings for upgrading the agentpool. Applies when upgrade strategy is set to - * Rolling. + * Set the upgradeSettings property: Settings for upgrading the agentpool. * * @param upgradeSettings the upgradeSettings value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. @@ -986,29 +929,6 @@ public ManagedClusterAgentPoolProfileProperties withUpgradeSettings(AgentPoolUpg return this; } - /** - * Get the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade - * strategy is set to BlueGreen. - * - * @return the upgradeSettingsBlueGreen value. - */ - public AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen() { - return this.upgradeSettingsBlueGreen; - } - - /** - * Set the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade - * strategy is set to BlueGreen. - * - * @param upgradeSettingsBlueGreen the upgradeSettingsBlueGreen value to set. - * @return the ManagedClusterAgentPoolProfileProperties object itself. - */ - public ManagedClusterAgentPoolProfileProperties - withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { - this.upgradeSettingsBlueGreen = upgradeSettingsBlueGreen; - return this; - } - /** * Get the provisioningState property: The current deployment or provisioning state. * @@ -1266,37 +1186,6 @@ public ManagedClusterAgentPoolProfileProperties withNodeTaints(List node return this; } - /** - * Get the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be - * modified after node pool is created, but nodes will not be recreated with new taints until another operation that - * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run - * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with - * `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @return the nodeInitializationTaints value. - */ - public List nodeInitializationTaints() { - return this.nodeInitializationTaints; - } - - /** - * Set the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be - * modified after node pool is created, but nodes will not be recreated with new taints until another operation that - * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run - * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with - * `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @param nodeInitializationTaints the nodeInitializationTaints value to set. - * @return the ManagedClusterAgentPoolProfileProperties object itself. - */ - public ManagedClusterAgentPoolProfileProperties - withNodeInitializationTaints(List nodeInitializationTaints) { - this.nodeInitializationTaints = nodeInitializationTaints; - return this; - } - /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. * @@ -1520,42 +1409,42 @@ public ManagedClusterAgentPoolProfileProperties withHostGroupId(String hostGroup } /** - * Get the windowsProfile property: The Windows agent pool's specific profile. + * Get the networkProfile property: Network-related settings of an agent pool. * - * @return the windowsProfile value. + * @return the networkProfile value. */ - public AgentPoolWindowsProfile windowsProfile() { - return this.windowsProfile; + public AgentPoolNetworkProfile networkProfile() { + return this.networkProfile; } /** - * Set the windowsProfile property: The Windows agent pool's specific profile. + * Set the networkProfile property: Network-related settings of an agent pool. * - * @param windowsProfile the windowsProfile value to set. + * @param networkProfile the networkProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ - public ManagedClusterAgentPoolProfileProperties withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { - this.windowsProfile = windowsProfile; + public ManagedClusterAgentPoolProfileProperties withNetworkProfile(AgentPoolNetworkProfile networkProfile) { + this.networkProfile = networkProfile; return this; } /** - * Get the networkProfile property: Network-related settings of an agent pool. + * Get the windowsProfile property: The Windows agent pool's specific profile. * - * @return the networkProfile value. + * @return the windowsProfile value. */ - public AgentPoolNetworkProfile networkProfile() { - return this.networkProfile; + public AgentPoolWindowsProfile windowsProfile() { + return this.windowsProfile; } /** - * Set the networkProfile property: Network-related settings of an agent pool. + * Set the windowsProfile property: The Windows agent pool's specific profile. * - * @param networkProfile the networkProfile value to set. + * @param windowsProfile the windowsProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ - public ManagedClusterAgentPoolProfileProperties withNetworkProfile(AgentPoolNetworkProfile networkProfile) { - this.networkProfile = networkProfile; + public ManagedClusterAgentPoolProfileProperties withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { + this.windowsProfile = windowsProfile; return this; } @@ -1580,7 +1469,7 @@ public ManagedClusterAgentPoolProfileProperties withSecurityProfile(AgentPoolSec } /** - * Get the gpuProfile property: The GPU settings of an agent pool. + * Get the gpuProfile property: GPU settings for the Agent Pool. * * @return the gpuProfile value. */ @@ -1589,7 +1478,7 @@ public GpuProfile gpuProfile() { } /** - * Set the gpuProfile property: The GPU settings of an agent pool. + * Set the gpuProfile property: GPU settings for the Agent Pool. * * @param gpuProfile the gpuProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. @@ -1600,23 +1489,24 @@ public ManagedClusterAgentPoolProfileProperties withGpuProfile(GpuProfile gpuPro } /** - * Get the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be + * set if agent pool mode is not Gateway. * - * @return the artifactStreamingProfile value. + * @return the gatewayProfile value. */ - public AgentPoolArtifactStreamingProfile artifactStreamingProfile() { - return this.artifactStreamingProfile; + public AgentPoolGatewayProfile gatewayProfile() { + return this.gatewayProfile; } /** - * Set the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be + * set if agent pool mode is not Gateway. * - * @param artifactStreamingProfile the artifactStreamingProfile value to set. + * @param gatewayProfile the gatewayProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ - public ManagedClusterAgentPoolProfileProperties - withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile artifactStreamingProfile) { - this.artifactStreamingProfile = artifactStreamingProfile; + public ManagedClusterAgentPoolProfileProperties withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { + this.gatewayProfile = gatewayProfile; return this; } @@ -1662,28 +1552,6 @@ public List virtualMachineNodesStatus() { return this; } - /** - * Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be - * set if agent pool mode is not Gateway. - * - * @return the gatewayProfile value. - */ - public AgentPoolGatewayProfile gatewayProfile() { - return this.gatewayProfile; - } - - /** - * Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be - * set if agent pool mode is not Gateway. - * - * @param gatewayProfile the gatewayProfile value to set. - * @return the ManagedClusterAgentPoolProfileProperties object itself. - */ - public ManagedClusterAgentPoolProfileProperties withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { - this.gatewayProfile = gatewayProfile; - return this; - } - /** * Get the status property: Contains read-only information about the Agent Pool. * @@ -1728,29 +1596,6 @@ public ManagedClusterAgentPoolProfileProperties withLocalDnsProfile(LocalDnsProf return this; } - /** - * Get the nodeCustomizationProfile property: Settings to determine the node customization used to provision nodes - * in a pool. - * - * @return the nodeCustomizationProfile value. - */ - public NodeCustomizationProfile nodeCustomizationProfile() { - return this.nodeCustomizationProfile; - } - - /** - * Set the nodeCustomizationProfile property: Settings to determine the node customization used to provision nodes - * in a pool. - * - * @param nodeCustomizationProfile the nodeCustomizationProfile value to set. - * @return the ManagedClusterAgentPoolProfileProperties object itself. - */ - public ManagedClusterAgentPoolProfileProperties - withNodeCustomizationProfile(NodeCustomizationProfile nodeCustomizationProfile) { - this.nodeCustomizationProfile = nodeCustomizationProfile; - return this; - } - /** * Validates the instance. * @@ -1760,9 +1605,6 @@ public void validate() { if (upgradeSettings() != null) { upgradeSettings().validate(); } - if (upgradeSettingsBlueGreen() != null) { - upgradeSettingsBlueGreen().validate(); - } if (powerState() != null) { powerState().validate(); } @@ -1775,20 +1617,20 @@ public void validate() { if (creationData() != null) { creationData().validate(); } - if (windowsProfile() != null) { - windowsProfile().validate(); - } if (networkProfile() != null) { networkProfile().validate(); } + if (windowsProfile() != null) { + windowsProfile().validate(); + } if (securityProfile() != null) { securityProfile().validate(); } if (gpuProfile() != null) { gpuProfile().validate(); } - if (artifactStreamingProfile() != null) { - artifactStreamingProfile().validate(); + if (gatewayProfile() != null) { + gatewayProfile().validate(); } if (virtualMachinesProfile() != null) { virtualMachinesProfile().validate(); @@ -1796,18 +1638,12 @@ public void validate() { if (virtualMachineNodesStatus() != null) { virtualMachineNodesStatus().forEach(e -> e.validate()); } - if (gatewayProfile() != null) { - gatewayProfile().validate(); - } if (status() != null) { status().validate(); } if (localDnsProfile() != null) { localDnsProfile().validate(); } - if (nodeCustomizationProfile() != null) { - nodeCustomizationProfile().validate(); - } } /** @@ -1839,11 +1675,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); jsonWriter.writeStringField("orchestratorVersion", this.orchestratorVersion); - jsonWriter.writeStringField("nodeImageVersion", this.nodeImageVersion); - jsonWriter.writeStringField("upgradeStrategy", - this.upgradeStrategy == null ? null : this.upgradeStrategy.toString()); jsonWriter.writeJsonField("upgradeSettings", this.upgradeSettings); - jsonWriter.writeJsonField("upgradeSettingsBlueGreen", this.upgradeSettingsBlueGreen); jsonWriter.writeJsonField("powerState", this.powerState); jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, (writer, element) -> writer.writeString(element)); @@ -1857,8 +1689,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("nodeLabels", this.nodeLabels, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("nodeTaints", this.nodeTaints, (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("nodeInitializationTaints", this.nodeInitializationTaints, - (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("proximityPlacementGroupID", this.proximityPlacementGroupId); jsonWriter.writeJsonField("kubeletConfig", this.kubeletConfig); jsonWriter.writeJsonField("linuxOSConfig", this.linuxOSConfig); @@ -1870,18 +1700,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("creationData", this.creationData); jsonWriter.writeStringField("capacityReservationGroupID", this.capacityReservationGroupId); jsonWriter.writeStringField("hostGroupID", this.hostGroupId); - jsonWriter.writeJsonField("windowsProfile", this.windowsProfile); jsonWriter.writeJsonField("networkProfile", this.networkProfile); + jsonWriter.writeJsonField("windowsProfile", this.windowsProfile); jsonWriter.writeJsonField("securityProfile", this.securityProfile); jsonWriter.writeJsonField("gpuProfile", this.gpuProfile); - jsonWriter.writeJsonField("artifactStreamingProfile", this.artifactStreamingProfile); + jsonWriter.writeJsonField("gatewayProfile", this.gatewayProfile); jsonWriter.writeJsonField("virtualMachinesProfile", this.virtualMachinesProfile); jsonWriter.writeArrayField("virtualMachineNodesStatus", this.virtualMachineNodesStatus, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("gatewayProfile", this.gatewayProfile); jsonWriter.writeJsonField("status", this.status); jsonWriter.writeJsonField("localDNSProfile", this.localDnsProfile); - jsonWriter.writeJsonField("nodeCustomizationProfile", this.nodeCustomizationProfile); return jsonWriter.writeEndObject(); } @@ -1960,15 +1788,9 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR = reader.getString(); } else if ("nodeImageVersion".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.nodeImageVersion = reader.getString(); - } else if ("upgradeStrategy".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.upgradeStrategy - = UpgradeStrategy.fromString(reader.getString()); } else if ("upgradeSettings".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.upgradeSettings = AgentPoolUpgradeSettings.fromJson(reader); - } else if ("upgradeSettingsBlueGreen".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.upgradeSettingsBlueGreen - = AgentPoolBlueGreenUpgradeSettings.fromJson(reader); } else if ("provisioningState".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { @@ -1999,10 +1821,6 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR } else if ("nodeTaints".equals(fieldName)) { List nodeTaints = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterAgentPoolProfileProperties.nodeTaints = nodeTaints; - } else if ("nodeInitializationTaints".equals(fieldName)) { - List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); - deserializedManagedClusterAgentPoolProfileProperties.nodeInitializationTaints - = nodeInitializationTaints; } else if ("proximityPlacementGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.proximityPlacementGroupId = reader.getString(); } else if ("kubeletConfig".equals(fieldName)) { @@ -2028,20 +1846,20 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR = reader.getString(); } else if ("hostGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.hostGroupId = reader.getString(); - } else if ("windowsProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.windowsProfile - = AgentPoolWindowsProfile.fromJson(reader); } else if ("networkProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.networkProfile = AgentPoolNetworkProfile.fromJson(reader); + } else if ("windowsProfile".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.windowsProfile + = AgentPoolWindowsProfile.fromJson(reader); } else if ("securityProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.securityProfile = AgentPoolSecurityProfile.fromJson(reader); } else if ("gpuProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.gpuProfile = GpuProfile.fromJson(reader); - } else if ("artifactStreamingProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.artifactStreamingProfile - = AgentPoolArtifactStreamingProfile.fromJson(reader); + } else if ("gatewayProfile".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.gatewayProfile + = AgentPoolGatewayProfile.fromJson(reader); } else if ("virtualMachinesProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.virtualMachinesProfile = VirtualMachinesProfile.fromJson(reader); @@ -2050,17 +1868,11 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR = reader.readArray(reader1 -> VirtualMachineNodes.fromJson(reader1)); deserializedManagedClusterAgentPoolProfileProperties.virtualMachineNodesStatus = virtualMachineNodesStatus; - } else if ("gatewayProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.gatewayProfile - = AgentPoolGatewayProfile.fromJson(reader); } else if ("status".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.status = AgentPoolStatus.fromJson(reader); } else if ("localDNSProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.localDnsProfile = LocalDnsProfile.fromJson(reader); - } else if ("nodeCustomizationProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfileProperties.nodeCustomizationProfile - = NodeCustomizationProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index ab8f77b4ba2f..8a1a490a1922 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings; import com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile; -import com.azure.resourcemanager.containerservice.models.CreationData; import com.azure.resourcemanager.containerservice.models.ExtendedLocation; import com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan; import com.azure.resourcemanager.containerservice.models.ManagedClusterAIToolchainOperatorProfile; @@ -24,7 +23,6 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterBootstrapProfile; -import com.azure.resourcemanager.containerservice.models.ManagedClusterHostedSystemProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; @@ -43,7 +41,6 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; -import com.azure.resourcemanager.containerservice.models.SchedulerProfile; import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile; import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity; import java.io.IOException; @@ -290,31 +287,6 @@ public PowerState powerState() { return this.innerProperties() == null ? null : this.innerProperties().powerState(); } - /** - * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the cluster will be - * created/upgraded using a snapshot. - * - * @return the creationData value. - */ - public CreationData creationData() { - return this.innerProperties() == null ? null : this.innerProperties().creationData(); - } - - /** - * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the cluster will be - * created/upgraded using a snapshot. - * - * @param creationData the creationData value to set. - * @return the ManagedClusterInner object itself. - */ - public ManagedClusterInner withCreationData(CreationData creationData) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterProperties(); - } - this.innerProperties().withCreationData(creationData); - return this; - } - /** * Get the maxAgentPools property: The max number of agent pools for the managed cluster. * @@ -325,11 +297,14 @@ public Integer maxAgentPools() { } /** - * Get the kubernetesVersion property: The version of Kubernetes the Managed Cluster is requested to run. When you - * upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed - * sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x - * are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Get the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @return the kubernetesVersion value. */ @@ -338,11 +313,14 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The version of Kubernetes the Managed Cluster is requested to run. When you - * upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed - * sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x - * are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Set the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @param kubernetesVersion the kubernetesVersion value to set. * @return the ManagedClusterInner object itself. @@ -356,7 +334,10 @@ public ManagedClusterInner withKubernetesVersion(String kubernetesVersion) { } /** - * Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. + * Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. If + * kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> + * version being used. * * @return the currentKubernetesVersion value. */ @@ -636,7 +617,7 @@ public ManagedClusterInner withNodeResourceGroup(String nodeResourceGroup) { } /** - * Get the nodeResourceGroupProfile property: The node resource group configuration profile. + * Get the nodeResourceGroupProfile property: Profile of the node resource group configuration. * * @return the nodeResourceGroupProfile value. */ @@ -645,7 +626,7 @@ public ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile() { } /** - * Set the nodeResourceGroupProfile property: The node resource group configuration profile. + * Set the nodeResourceGroupProfile property: Profile of the node resource group configuration. * * @param nodeResourceGroupProfile the nodeResourceGroupProfile value to set. * @return the ManagedClusterInner object itself. @@ -707,35 +688,6 @@ public ManagedClusterInner withSupportPlan(KubernetesSupportPlan supportPlan) { return this; } - /** - * Get the enableNamespaceResources property: Enable namespace as Azure resource. The default value is false. It can - * be enabled/disabled on creation and updating of the managed cluster. See - * [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM - * Resource. - * - * @return the enableNamespaceResources value. - */ - public Boolean enableNamespaceResources() { - return this.innerProperties() == null ? null : this.innerProperties().enableNamespaceResources(); - } - - /** - * Set the enableNamespaceResources property: Enable namespace as Azure resource. The default value is false. It can - * be enabled/disabled on creation and updating of the managed cluster. See - * [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM - * Resource. - * - * @param enableNamespaceResources the enableNamespaceResources value to set. - * @return the ManagedClusterInner object itself. - */ - public ManagedClusterInner withEnableNamespaceResources(Boolean enableNamespaceResources) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterProperties(); - } - this.innerProperties().withEnableNamespaceResources(enableNamespaceResources); - return this; - } - /** * Get the networkProfile property: The network configuration profile. * @@ -1124,7 +1076,7 @@ public ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile() { } /** - * Get the azureMonitorProfile property: Prometheus addon profile for the container service cluster. + * Get the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster. * * @return the azureMonitorProfile value. */ @@ -1133,7 +1085,7 @@ public ManagedClusterAzureMonitorProfile azureMonitorProfile() { } /** - * Set the azureMonitorProfile property: Prometheus addon profile for the container service cluster. + * Set the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster. * * @param azureMonitorProfile the azureMonitorProfile value to set. * @return the ManagedClusterInner object itself. @@ -1202,30 +1154,6 @@ public ManagedClusterInner withMetricsProfile(ManagedClusterMetricsProfile metri return this; } - /** - * Get the aiToolchainOperatorProfile property: AI toolchain operator settings that apply to the whole cluster. - * - * @return the aiToolchainOperatorProfile value. - */ - public ManagedClusterAIToolchainOperatorProfile aiToolchainOperatorProfile() { - return this.innerProperties() == null ? null : this.innerProperties().aiToolchainOperatorProfile(); - } - - /** - * Set the aiToolchainOperatorProfile property: AI toolchain operator settings that apply to the whole cluster. - * - * @param aiToolchainOperatorProfile the aiToolchainOperatorProfile value to set. - * @return the ManagedClusterInner object itself. - */ - public ManagedClusterInner - withAiToolchainOperatorProfile(ManagedClusterAIToolchainOperatorProfile aiToolchainOperatorProfile) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterProperties(); - } - this.innerProperties().withAiToolchainOperatorProfile(aiToolchainOperatorProfile); - return this; - } - /** * Get the nodeProvisioningProfile property: Node provisioning settings that apply to the whole cluster. * @@ -1274,50 +1202,26 @@ public ManagedClusterInner withBootstrapProfile(ManagedClusterBootstrapProfile b } /** - * Get the schedulerProfile property: Profile of the pod scheduler configuration. - * - * @return the schedulerProfile value. - */ - public SchedulerProfile schedulerProfile() { - return this.innerProperties() == null ? null : this.innerProperties().schedulerProfile(); - } - - /** - * Set the schedulerProfile property: Profile of the pod scheduler configuration. - * - * @param schedulerProfile the schedulerProfile value to set. - * @return the ManagedClusterInner object itself. - */ - public ManagedClusterInner withSchedulerProfile(SchedulerProfile schedulerProfile) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterProperties(); - } - this.innerProperties().withSchedulerProfile(schedulerProfile); - return this; - } - - /** - * Get the hostedSystemProfile property: Settings for hosted system addons. For more information, see - * https://aka.ms/aks/automatic/systemcomponents. + * Get the aiToolchainOperatorProfile property: AI toolchain operator settings that apply to the whole cluster. * - * @return the hostedSystemProfile value. + * @return the aiToolchainOperatorProfile value. */ - public ManagedClusterHostedSystemProfile hostedSystemProfile() { - return this.innerProperties() == null ? null : this.innerProperties().hostedSystemProfile(); + public ManagedClusterAIToolchainOperatorProfile aiToolchainOperatorProfile() { + return this.innerProperties() == null ? null : this.innerProperties().aiToolchainOperatorProfile(); } /** - * Set the hostedSystemProfile property: Settings for hosted system addons. For more information, see - * https://aka.ms/aks/automatic/systemcomponents. + * Set the aiToolchainOperatorProfile property: AI toolchain operator settings that apply to the whole cluster. * - * @param hostedSystemProfile the hostedSystemProfile value to set. + * @param aiToolchainOperatorProfile the aiToolchainOperatorProfile value to set. * @return the ManagedClusterInner object itself. */ - public ManagedClusterInner withHostedSystemProfile(ManagedClusterHostedSystemProfile hostedSystemProfile) { + public ManagedClusterInner + withAiToolchainOperatorProfile(ManagedClusterAIToolchainOperatorProfile aiToolchainOperatorProfile) { if (this.innerProperties() == null) { this.innerProperties = new ManagedClusterProperties(); } - this.innerProperties().withHostedSystemProfile(hostedSystemProfile); + this.innerProperties().withAiToolchainOperatorProfile(aiToolchainOperatorProfile); return this; } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java index cef395af214b..2d3a5904c461 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings; import com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile; -import com.azure.resourcemanager.containerservice.models.CreationData; import com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan; import com.azure.resourcemanager.containerservice.models.ManagedClusterAIToolchainOperatorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; @@ -22,7 +21,6 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterBootstrapProfile; -import com.azure.resourcemanager.containerservice.models.ManagedClusterHostedSystemProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile; @@ -39,7 +37,6 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; -import com.azure.resourcemanager.containerservice.models.SchedulerProfile; import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile; import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity; import java.io.IOException; @@ -61,27 +58,27 @@ public final class ManagedClusterProperties implements JsonSerializable 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not - * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * The version of Kubernetes specified by the user. Both patch version (e.g. 1.20.13) and + * (e.g. 1.20) are supported. When is specified, the latest supported GA patch version + * is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x + * -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported + * AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major + * version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> + * 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for + * more details. */ private String kubernetesVersion; /* - * The version of Kubernetes the Managed Cluster is running. + * The version of Kubernetes the Managed Cluster is running. If kubernetesVersion was a fully specified version + * , this field will be exactly equal to it. If kubernetesVersion was , this field + * will contain the full version being used. */ private String currentKubernetesVersion; @@ -157,7 +154,7 @@ public final class ManagedClusterProperties implements JsonSerializable e.validate()); } @@ -1363,20 +1259,14 @@ public void validate() { if (metricsProfile() != null) { metricsProfile().validate(); } - if (aiToolchainOperatorProfile() != null) { - aiToolchainOperatorProfile().validate(); - } if (nodeProvisioningProfile() != null) { nodeProvisioningProfile().validate(); } if (bootstrapProfile() != null) { bootstrapProfile().validate(); } - if (schedulerProfile() != null) { - schedulerProfile().validate(); - } - if (hostedSystemProfile() != null) { - hostedSystemProfile().validate(); + if (aiToolchainOperatorProfile() != null) { + aiToolchainOperatorProfile().validate(); } if (status() != null) { status().validate(); @@ -1389,7 +1279,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("creationData", this.creationData); jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeStringField("dnsPrefix", this.dnsPrefix); jsonWriter.writeStringField("fqdnSubdomain", this.fqdnSubdomain); @@ -1405,7 +1294,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("nodeResourceGroupProfile", this.nodeResourceGroupProfile); jsonWriter.writeBooleanField("enableRBAC", this.enableRbac); jsonWriter.writeStringField("supportPlan", this.supportPlan == null ? null : this.supportPlan.toString()); - jsonWriter.writeBooleanField("enableNamespaceResources", this.enableNamespaceResources); jsonWriter.writeJsonField("networkProfile", this.networkProfile); jsonWriter.writeJsonField("aadProfile", this.aadProfile); jsonWriter.writeJsonField("autoUpgradeProfile", this.autoUpgradeProfile); @@ -1428,11 +1316,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("azureMonitorProfile", this.azureMonitorProfile); jsonWriter.writeJsonField("serviceMeshProfile", this.serviceMeshProfile); jsonWriter.writeJsonField("metricsProfile", this.metricsProfile); - jsonWriter.writeJsonField("aiToolchainOperatorProfile", this.aiToolchainOperatorProfile); jsonWriter.writeJsonField("nodeProvisioningProfile", this.nodeProvisioningProfile); jsonWriter.writeJsonField("bootstrapProfile", this.bootstrapProfile); - jsonWriter.writeJsonField("schedulerProfile", this.schedulerProfile); - jsonWriter.writeJsonField("hostedSystemProfile", this.hostedSystemProfile); + jsonWriter.writeJsonField("aiToolchainOperatorProfile", this.aiToolchainOperatorProfile); jsonWriter.writeJsonField("status", this.status); return jsonWriter.writeEndObject(); } @@ -1456,8 +1342,6 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO deserializedManagedClusterProperties.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { deserializedManagedClusterProperties.powerState = PowerState.fromJson(reader); - } else if ("creationData".equals(fieldName)) { - deserializedManagedClusterProperties.creationData = CreationData.fromJson(reader); } else if ("maxAgentPools".equals(fieldName)) { deserializedManagedClusterProperties.maxAgentPools = reader.getNullable(JsonReader::getInt); } else if ("kubernetesVersion".equals(fieldName)) { @@ -1505,9 +1389,6 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO } else if ("supportPlan".equals(fieldName)) { deserializedManagedClusterProperties.supportPlan = KubernetesSupportPlan.fromString(reader.getString()); - } else if ("enableNamespaceResources".equals(fieldName)) { - deserializedManagedClusterProperties.enableNamespaceResources - = reader.getNullable(JsonReader::getBoolean); } else if ("networkProfile".equals(fieldName)) { deserializedManagedClusterProperties.networkProfile = ContainerServiceNetworkProfile.fromJson(reader); @@ -1562,20 +1443,15 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO deserializedManagedClusterProperties.resourceUid = reader.getString(); } else if ("metricsProfile".equals(fieldName)) { deserializedManagedClusterProperties.metricsProfile = ManagedClusterMetricsProfile.fromJson(reader); - } else if ("aiToolchainOperatorProfile".equals(fieldName)) { - deserializedManagedClusterProperties.aiToolchainOperatorProfile - = ManagedClusterAIToolchainOperatorProfile.fromJson(reader); } else if ("nodeProvisioningProfile".equals(fieldName)) { deserializedManagedClusterProperties.nodeProvisioningProfile = ManagedClusterNodeProvisioningProfile.fromJson(reader); } else if ("bootstrapProfile".equals(fieldName)) { deserializedManagedClusterProperties.bootstrapProfile = ManagedClusterBootstrapProfile.fromJson(reader); - } else if ("schedulerProfile".equals(fieldName)) { - deserializedManagedClusterProperties.schedulerProfile = SchedulerProfile.fromJson(reader); - } else if ("hostedSystemProfile".equals(fieldName)) { - deserializedManagedClusterProperties.hostedSystemProfile - = ManagedClusterHostedSystemProfile.fromJson(reader); + } else if ("aiToolchainOperatorProfile".equals(fieldName)) { + deserializedManagedClusterProperties.aiToolchainOperatorProfile + = ManagedClusterAIToolchainOperatorProfile.fromJson(reader); } else if ("status".equals(fieldName)) { deserializedManagedClusterProperties.status = ManagedClusterStatus.fromJson(reader); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java deleted file mode 100644 index fd06a6dfebc5..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java +++ /dev/null @@ -1,240 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.CreationData; -import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesForSnapshot; -import com.azure.resourcemanager.containerservice.models.SnapshotType; -import java.io.IOException; -import java.util.Map; - -/** - * A managed cluster snapshot resource. - */ -@Fluent -public final class ManagedClusterSnapshotInner extends Resource { - /* - * Properties of a managed cluster snapshot. - */ - private ManagedClusterSnapshotProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ManagedClusterSnapshotInner class. - */ - public ManagedClusterSnapshotInner() { - } - - /** - * Get the innerProperties property: Properties of a managed cluster snapshot. - * - * @return the innerProperties value. - */ - private ManagedClusterSnapshotProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterSnapshotInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterSnapshotInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. - * - * @return the creationData value. - */ - public CreationData creationData() { - return this.innerProperties() == null ? null : this.innerProperties().creationData(); - } - - /** - * Set the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. - * - * @param creationData the creationData value to set. - * @return the ManagedClusterSnapshotInner object itself. - */ - public ManagedClusterSnapshotInner withCreationData(CreationData creationData) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterSnapshotProperties(); - } - this.innerProperties().withCreationData(creationData); - return this; - } - - /** - * Get the snapshotType property: The type of a snapshot. The default is NodePool. - * - * @return the snapshotType value. - */ - public SnapshotType snapshotType() { - return this.innerProperties() == null ? null : this.innerProperties().snapshotType(); - } - - /** - * Set the snapshotType property: The type of a snapshot. The default is NodePool. - * - * @param snapshotType the snapshotType value to set. - * @return the ManagedClusterSnapshotInner object itself. - */ - public ManagedClusterSnapshotInner withSnapshotType(SnapshotType snapshotType) { - if (this.innerProperties() == null) { - this.innerProperties = new ManagedClusterSnapshotProperties(); - } - this.innerProperties().withSnapshotType(snapshotType); - return this; - } - - /** - * Get the managedClusterPropertiesReadOnly property: What the properties will be showed when getting managed - * cluster snapshot. Those properties are read-only. - * - * @return the managedClusterPropertiesReadOnly value. - */ - public ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly() { - return this.innerProperties() == null ? null : this.innerProperties().managedClusterPropertiesReadOnly(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterSnapshotInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSnapshotInner if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ManagedClusterSnapshotInner. - */ - public static ManagedClusterSnapshotInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSnapshotInner deserializedManagedClusterSnapshotInner = new ManagedClusterSnapshotInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedManagedClusterSnapshotInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.innerProperties - = ManagedClusterSnapshotProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedManagedClusterSnapshotInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSnapshotInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java deleted file mode 100644 index d977923de150..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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.fluent.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 com.azure.resourcemanager.containerservice.models.CreationData; -import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesForSnapshot; -import com.azure.resourcemanager.containerservice.models.SnapshotType; -import java.io.IOException; - -/** - * Properties for a managed cluster snapshot. - */ -@Fluent -public final class ManagedClusterSnapshotProperties implements JsonSerializable { - /* - * CreationData to be used to specify the source resource ID to create this snapshot. - */ - private CreationData creationData; - - /* - * The type of a snapshot. The default is NodePool. - */ - private SnapshotType snapshotType; - - /* - * What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. - */ - private ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly; - - /** - * Creates an instance of ManagedClusterSnapshotProperties class. - */ - public ManagedClusterSnapshotProperties() { - } - - /** - * Get the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. - * - * @return the creationData value. - */ - public CreationData creationData() { - return this.creationData; - } - - /** - * Set the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. - * - * @param creationData the creationData value to set. - * @return the ManagedClusterSnapshotProperties object itself. - */ - public ManagedClusterSnapshotProperties withCreationData(CreationData creationData) { - this.creationData = creationData; - return this; - } - - /** - * Get the snapshotType property: The type of a snapshot. The default is NodePool. - * - * @return the snapshotType value. - */ - public SnapshotType snapshotType() { - return this.snapshotType; - } - - /** - * Set the snapshotType property: The type of a snapshot. The default is NodePool. - * - * @param snapshotType the snapshotType value to set. - * @return the ManagedClusterSnapshotProperties object itself. - */ - public ManagedClusterSnapshotProperties withSnapshotType(SnapshotType snapshotType) { - this.snapshotType = snapshotType; - return this; - } - - /** - * Get the managedClusterPropertiesReadOnly property: What the properties will be showed when getting managed - * cluster snapshot. Those properties are read-only. - * - * @return the managedClusterPropertiesReadOnly value. - */ - public ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly() { - return this.managedClusterPropertiesReadOnly; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (creationData() != null) { - creationData().validate(); - } - if (managedClusterPropertiesReadOnly() != null) { - managedClusterPropertiesReadOnly().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("creationData", this.creationData); - jsonWriter.writeStringField("snapshotType", this.snapshotType == null ? null : this.snapshotType.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterSnapshotProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSnapshotProperties 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 ManagedClusterSnapshotProperties. - */ - public static ManagedClusterSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSnapshotProperties deserializedManagedClusterSnapshotProperties - = new ManagedClusterSnapshotProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("creationData".equals(fieldName)) { - deserializedManagedClusterSnapshotProperties.creationData = CreationData.fromJson(reader); - } else if ("snapshotType".equals(fieldName)) { - deserializedManagedClusterSnapshotProperties.snapshotType - = SnapshotType.fromString(reader.getString()); - } else if ("managedClusterPropertiesReadOnly".equals(fieldName)) { - deserializedManagedClusterSnapshotProperties.managedClusterPropertiesReadOnly - = ManagedClusterPropertiesForSnapshot.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSnapshotProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java deleted file mode 100644 index 051c41567de4..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java +++ /dev/null @@ -1,220 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.MeshMembershipProperties; -import java.io.IOException; - -/** - * Mesh membership of a managed cluster. - */ -@Fluent -public final class MeshMembershipInner extends ProxyResource { - /* - * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed - * by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is - * removed from the template since it is managed by another resource. - */ - private String managedBy; - - /* - * 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; - - /* - * Mesh membership properties of a managed cluster. - */ - private MeshMembershipProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of MeshMembershipInner class. - */ - public MeshMembershipInner() { - } - - /** - * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates - * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not - * delete the resource if it is removed from the template since it is managed by another resource. - * - * @return the managedBy value. - */ - public String managedBy() { - return this.managedBy; - } - - /** - * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates - * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not - * delete the resource if it is removed from the template since it is managed by another resource. - * - * @param managedBy the managedBy value to set. - * @return the MeshMembershipInner object itself. - */ - public MeshMembershipInner withManagedBy(String managedBy) { - this.managedBy = managedBy; - 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.etag; - } - - /** - * Get the properties property: Mesh membership properties of a managed cluster. - * - * @return the properties value. - */ - public MeshMembershipProperties properties() { - return this.properties; - } - - /** - * Set the properties property: Mesh membership properties of a managed cluster. - * - * @param properties the properties value to set. - * @return the MeshMembershipInner object itself. - */ - public MeshMembershipInner withProperties(MeshMembershipProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("managedBy", this.managedBy); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MeshMembershipInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MeshMembershipInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the MeshMembershipInner. - */ - public static MeshMembershipInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MeshMembershipInner deserializedMeshMembershipInner = new MeshMembershipInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedMeshMembershipInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedMeshMembershipInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedMeshMembershipInner.type = reader.getString(); - } else if ("managedBy".equals(fieldName)) { - deserializedMeshMembershipInner.managedBy = reader.getString(); - } else if ("eTag".equals(fieldName)) { - deserializedMeshMembershipInner.etag = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedMeshMembershipInner.properties = MeshMembershipProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedMeshMembershipInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedMeshMembershipInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java deleted file mode 100644 index 2b958e625f33..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java +++ /dev/null @@ -1,179 +0,0 @@ -// 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.fluent.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 image version profile for given major.minor.patch release. - */ -@Fluent -public final class NodeImageVersionInner implements JsonSerializable { - /* - * The operating system of the node image. Example: AKSUbuntu - */ - private String os; - - /* - * The SKU or flavor of the node image. Example: 2004gen2containerd - */ - private String sku; - - /* - * major.minor.patch version of the node image version release. Example: 2024.02.02 - */ - private String version; - - /* - * The OS + SKU + version of the node image. Example: AKSUbuntu-1804gen2containerd-2024.02.02 - */ - private String fullName; - - /** - * Creates an instance of NodeImageVersionInner class. - */ - public NodeImageVersionInner() { - } - - /** - * Get the os property: The operating system of the node image. Example: AKSUbuntu. - * - * @return the os value. - */ - public String os() { - return this.os; - } - - /** - * Set the os property: The operating system of the node image. Example: AKSUbuntu. - * - * @param os the os value to set. - * @return the NodeImageVersionInner object itself. - */ - public NodeImageVersionInner withOs(String os) { - this.os = os; - return this; - } - - /** - * Get the sku property: The SKU or flavor of the node image. Example: 2004gen2containerd. - * - * @return the sku value. - */ - public String sku() { - return this.sku; - } - - /** - * Set the sku property: The SKU or flavor of the node image. Example: 2004gen2containerd. - * - * @param sku the sku value to set. - * @return the NodeImageVersionInner object itself. - */ - public NodeImageVersionInner withSku(String sku) { - this.sku = sku; - return this; - } - - /** - * Get the version property: major.minor.patch version of the node image version release. Example: 2024.02.02. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: major.minor.patch version of the node image version release. Example: 2024.02.02. - * - * @param version the version value to set. - * @return the NodeImageVersionInner object itself. - */ - public NodeImageVersionInner withVersion(String version) { - this.version = version; - return this; - } - - /** - * Get the fullName property: The OS + SKU + version of the node image. Example: - * AKSUbuntu-1804gen2containerd-2024.02.02. - * - * @return the fullName value. - */ - public String fullName() { - return this.fullName; - } - - /** - * Set the fullName property: The OS + SKU + version of the node image. Example: - * AKSUbuntu-1804gen2containerd-2024.02.02. - * - * @param fullName the fullName value to set. - * @return the NodeImageVersionInner object itself. - */ - public NodeImageVersionInner withFullName(String fullName) { - this.fullName = fullName; - 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("os", this.os); - jsonWriter.writeStringField("sku", this.sku); - jsonWriter.writeStringField("version", this.version); - jsonWriter.writeStringField("fullName", this.fullName); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NodeImageVersionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NodeImageVersionInner 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 NodeImageVersionInner. - */ - public static NodeImageVersionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NodeImageVersionInner deserializedNodeImageVersionInner = new NodeImageVersionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("os".equals(fieldName)) { - deserializedNodeImageVersionInner.os = reader.getString(); - } else if ("sku".equals(fieldName)) { - deserializedNodeImageVersionInner.sku = reader.getString(); - } else if ("version".equals(fieldName)) { - deserializedNodeImageVersionInner.version = reader.getString(); - } else if ("fullName".equals(fieldName)) { - deserializedNodeImageVersionInner.fullName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedNodeImageVersionInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java deleted file mode 100644 index 60efc41645de..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java +++ /dev/null @@ -1,329 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.exception.ManagementError; -import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.List; - -/** - * The current status of an async operation. - */ -@Fluent -public final class OperationStatusResultInner implements JsonSerializable { - /* - * Fully qualified ID for the async operation. - */ - private String id; - - /* - * Fully qualified ID of the resource against which the original async operation was started. - */ - private String resourceId; - - /* - * Name of the async operation. - */ - private String name; - - /* - * Operation status. - */ - private String status; - - /* - * Percent of the operation that is complete. - */ - private Float percentComplete; - - /* - * The start time of the operation. - */ - private OffsetDateTime startTime; - - /* - * The end time of the operation. - */ - private OffsetDateTime endTime; - - /* - * The operations list. - */ - private List operations; - - /* - * If present, details of the operation error. - */ - private ManagementError error; - - /** - * Creates an instance of OperationStatusResultInner class. - */ - public OperationStatusResultInner() { - } - - /** - * Get the id property: Fully qualified ID for the async operation. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: Fully qualified ID for the async operation. - * - * @param id the id value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withId(String id) { - this.id = id; - return this; - } - - /** - * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was - * started. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Get the name property: Name of the async operation. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Name of the async operation. - * - * @param name the name value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the status property: Operation status. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: Operation status. - * - * @param status the status value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the percentComplete property: Percent of the operation that is complete. - * - * @return the percentComplete value. - */ - public Float percentComplete() { - return this.percentComplete; - } - - /** - * Set the percentComplete property: Percent of the operation that is complete. - * - * @param percentComplete the percentComplete value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withPercentComplete(Float percentComplete) { - this.percentComplete = percentComplete; - return this; - } - - /** - * Get the startTime property: The start time of the operation. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Set the startTime property: The start time of the operation. - * - * @param startTime the startTime value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the endTime property: The end time of the operation. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.endTime; - } - - /** - * Set the endTime property: The end time of the operation. - * - * @param endTime the endTime value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; - } - - /** - * Get the operations property: The operations list. - * - * @return the operations value. - */ - public List operations() { - return this.operations; - } - - /** - * Set the operations property: The operations list. - * - * @param operations the operations value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withOperations(List operations) { - this.operations = operations; - return this; - } - - /** - * Get the error property: If present, details of the operation error. - * - * @return the error value. - */ - public ManagementError error() { - return this.error; - } - - /** - * Set the error property: If present, details of the operation error. - * - * @param error the error value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withError(ManagementError error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (status() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property status in model OperationStatusResultInner")); - } - if (operations() != null) { - operations().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("status", this.status); - jsonWriter.writeStringField("id", this.id); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeNumberField("percentComplete", this.percentComplete); - jsonWriter.writeStringField("startTime", - this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime)); - jsonWriter.writeStringField("endTime", - this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime)); - jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OperationStatusResultInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OperationStatusResultInner if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the OperationStatusResultInner. - */ - public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("status".equals(fieldName)) { - deserializedOperationStatusResultInner.status = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedOperationStatusResultInner.id = reader.getString(); - } else if ("resourceId".equals(fieldName)) { - deserializedOperationStatusResultInner.resourceId = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedOperationStatusResultInner.name = reader.getString(); - } else if ("percentComplete".equals(fieldName)) { - deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getFloat); - } else if ("startTime".equals(fieldName)) { - deserializedOperationStatusResultInner.startTime = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("endTime".equals(fieldName)) { - deserializedOperationStatusResultInner.endTime = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("operations".equals(fieldName)) { - List operations - = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1)); - deserializedOperationStatusResultInner.operations = operations; - } else if ("error".equals(fieldName)) { - deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedOperationStatusResultInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java deleted file mode 100644 index a2de612e5b19..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java +++ /dev/null @@ -1,175 +0,0 @@ -// 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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.models.SafeguardsAvailableVersionsProperties; -import java.io.IOException; - -/** - * Available Safeguards Version. - */ -@Fluent -public final class SafeguardsAvailableVersionInner extends ProxyResource { - /* - * Whether the version is default or not and support info. - */ - private SafeguardsAvailableVersionsProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of SafeguardsAvailableVersionInner class. - */ - public SafeguardsAvailableVersionInner() { - } - - /** - * Get the properties property: Whether the version is default or not and support info. - * - * @return the properties value. - */ - public SafeguardsAvailableVersionsProperties properties() { - return this.properties; - } - - /** - * Set the properties property: Whether the version is default or not and support info. - * - * @param properties the properties value to set. - * @return the SafeguardsAvailableVersionInner object itself. - */ - public SafeguardsAvailableVersionInner withProperties(SafeguardsAvailableVersionsProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property properties in model SafeguardsAvailableVersionInner")); - } else { - properties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SafeguardsAvailableVersionInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SafeguardsAvailableVersionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SafeguardsAvailableVersionInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SafeguardsAvailableVersionInner. - */ - public static SafeguardsAvailableVersionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SafeguardsAvailableVersionInner deserializedSafeguardsAvailableVersionInner - = new SafeguardsAvailableVersionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedSafeguardsAvailableVersionInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedSafeguardsAvailableVersionInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedSafeguardsAvailableVersionInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedSafeguardsAvailableVersionInner.properties - = SafeguardsAvailableVersionsProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedSafeguardsAvailableVersionInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSafeguardsAvailableVersionInner; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java index da39cf8be25d..70b300a40509 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java @@ -195,9 +195,9 @@ public OSType osType() { } /** - * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @return the osSku value. */ diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java index ebeef6c8b15a..dc9593d1697f 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java @@ -46,9 +46,8 @@ public final class SnapshotProperties implements JsonSerializable= 1.25 if OSType is Windows. */ private OSSku osSku; @@ -138,9 +137,9 @@ public OSType osType() { } /** - * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. + * Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. + * The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is + * Windows. * * @return the osSku value. */ diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index f05fb442e38a..04eb32db2c35 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -132,15 +132,6 @@ Mono> getUpgradeProfile(@HostParam("$host @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("agentPoolName") String agentPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/completeUpgrade") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> completeUpgrade(@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, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines") @ExpectedResponses({ 202 }) @@ -184,7 +175,7 @@ Mono> listNext(@PathParam(value = "nextLink", enco * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -215,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -228,7 +219,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -260,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -272,7 +263,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -296,7 +287,7 @@ public PollerFlux, Void> beginAbortLatestOperationAsync(String * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -322,7 +313,7 @@ private PollerFlux, Void> beginAbortLatestOperationAsync(String * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -343,7 +334,7 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -366,7 +357,7 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -387,7 +378,7 @@ public Mono abortLatestOperationAsync(String resourceGroupName, String res * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -410,7 +401,7 @@ private Mono abortLatestOperationAsync(String resourceGroupName, String re * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -429,7 +420,7 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, * * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can - * take place, an error is returned. + * take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -473,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -513,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -620,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -662,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -760,7 +751,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -811,7 +802,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1079,7 +1070,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -1124,7 +1115,7 @@ private Mono>> deleteWithResponseAsync(String resource if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -1380,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -1422,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1482,250 +1473,6 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, return getUpgradeProfileWithResponse(resourceGroupName, resourceName, agentPoolName, Context.NONE).getValue(); } - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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>> completeUpgradeWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.completeUpgrade(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> completeUpgradeWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.completeUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, accept, context); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, - String agentPoolName) { - Mono>> mono - = completeUpgradeWithResponseAsync(resourceGroupName, resourceName, agentPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, - String agentPoolName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = completeUpgradeWithResponseAsync(resourceGroupName, resourceName, agentPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName, - String agentPoolName) { - return this.beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName).getSyncPoller(); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName, - String agentPoolName, Context context) { - return this.beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).getSyncPoller(); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName) { - return beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName, - Context context) { - return beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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. - * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName) { - completeUpgradeAsync(resourceGroupName, resourceName, agentPoolName).block(); - } - - /** - * Completes the upgrade of an agent pool. - * - * Completes the upgrade operation for the specified agent pool. - * - * @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 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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName, Context context) { - completeUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).block(); - } - /** * Deletes specific machines in an agent pool. * @@ -1764,7 +1511,7 @@ public Mono>> deleteMachinesWithResponseAsync(String r } else { machines.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-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)) @@ -1810,7 +1557,7 @@ private Mono>> deleteMachinesWithResponseAsync(String } else { machines.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2005,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -2046,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -2148,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, @@ -2193,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java index 98cc29cbc0e8..11eb021db617 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java @@ -10,19 +10,12 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.resourcemanager.containerservice.fluent.AgentPoolsClient; import com.azure.resourcemanager.containerservice.fluent.ContainerServiceManagementClient; -import com.azure.resourcemanager.containerservice.fluent.ContainerServiceOperationsClient; import com.azure.resourcemanager.containerservice.fluent.ContainerServicesClient; -import com.azure.resourcemanager.containerservice.fluent.IdentityBindingsClient; -import com.azure.resourcemanager.containerservice.fluent.JwtAuthenticatorsClient; -import com.azure.resourcemanager.containerservice.fluent.LoadBalancersClient; import com.azure.resourcemanager.containerservice.fluent.MachinesClient; import com.azure.resourcemanager.containerservice.fluent.MaintenanceConfigurationsClient; -import com.azure.resourcemanager.containerservice.fluent.ManagedClusterSnapshotsClient; import com.azure.resourcemanager.containerservice.fluent.ManagedClustersClient; import com.azure.resourcemanager.containerservice.fluent.ManagedNamespacesClient; -import com.azure.resourcemanager.containerservice.fluent.MeshMembershipsClient; import com.azure.resourcemanager.containerservice.fluent.OpenShiftManagedClustersClient; -import com.azure.resourcemanager.containerservice.fluent.OperationStatusResultsClient; import com.azure.resourcemanager.containerservice.fluent.OperationsClient; import com.azure.resourcemanager.containerservice.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.containerservice.fluent.PrivateLinkResourcesClient; @@ -167,20 +160,6 @@ public ManagedClustersClient getManagedClusters() { return this.managedClusters; } - /** - * The ContainerServiceOperationsClient object to access its operations. - */ - private final ContainerServiceOperationsClient containerServiceOperations; - - /** - * Gets the ContainerServiceOperationsClient object to access its operations. - * - * @return the ContainerServiceOperationsClient object. - */ - public ContainerServiceOperationsClient getContainerServiceOperations() { - return this.containerServiceOperations; - } - /** * The MaintenanceConfigurationsClient object to access its operations. */ @@ -223,20 +202,6 @@ public AgentPoolsClient getAgentPools() { return this.agentPools; } - /** - * The MachinesClient object to access its operations. - */ - private final MachinesClient machines; - - /** - * Gets the MachinesClient object to access its operations. - * - * @return the MachinesClient object. - */ - public MachinesClient getMachines() { - return this.machines; - } - /** * The PrivateEndpointConnectionsClient object to access its operations. */ @@ -279,20 +244,6 @@ public ResolvePrivateLinkServiceIdsClient getResolvePrivateLinkServiceIds() { return this.resolvePrivateLinkServiceIds; } - /** - * The OperationStatusResultsClient object to access its operations. - */ - private final OperationStatusResultsClient operationStatusResults; - - /** - * Gets the OperationStatusResultsClient object to access its operations. - * - * @return the OperationStatusResultsClient object. - */ - public OperationStatusResultsClient getOperationStatusResults() { - return this.operationStatusResults; - } - /** * The SnapshotsClient object to access its operations. */ @@ -307,34 +258,6 @@ public SnapshotsClient getSnapshots() { return this.snapshots; } - /** - * The ManagedClusterSnapshotsClient object to access its operations. - */ - private final ManagedClusterSnapshotsClient managedClusterSnapshots; - - /** - * Gets the ManagedClusterSnapshotsClient object to access its operations. - * - * @return the ManagedClusterSnapshotsClient object. - */ - public ManagedClusterSnapshotsClient getManagedClusterSnapshots() { - return this.managedClusterSnapshots; - } - - /** - * The TrustedAccessRolesClient object to access its operations. - */ - private final TrustedAccessRolesClient trustedAccessRoles; - - /** - * Gets the TrustedAccessRolesClient object to access its operations. - * - * @return the TrustedAccessRolesClient object. - */ - public TrustedAccessRolesClient getTrustedAccessRoles() { - return this.trustedAccessRoles; - } - /** * The TrustedAccessRoleBindingsClient object to access its operations. */ @@ -350,59 +273,31 @@ public TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings() { } /** - * The LoadBalancersClient object to access its operations. - */ - private final LoadBalancersClient loadBalancers; - - /** - * Gets the LoadBalancersClient object to access its operations. - * - * @return the LoadBalancersClient object. - */ - public LoadBalancersClient getLoadBalancers() { - return this.loadBalancers; - } - - /** - * The IdentityBindingsClient object to access its operations. - */ - private final IdentityBindingsClient identityBindings; - - /** - * Gets the IdentityBindingsClient object to access its operations. - * - * @return the IdentityBindingsClient object. - */ - public IdentityBindingsClient getIdentityBindings() { - return this.identityBindings; - } - - /** - * The JwtAuthenticatorsClient object to access its operations. + * The TrustedAccessRolesClient object to access its operations. */ - private final JwtAuthenticatorsClient jwtAuthenticators; + private final TrustedAccessRolesClient trustedAccessRoles; /** - * Gets the JwtAuthenticatorsClient object to access its operations. + * Gets the TrustedAccessRolesClient object to access its operations. * - * @return the JwtAuthenticatorsClient object. + * @return the TrustedAccessRolesClient object. */ - public JwtAuthenticatorsClient getJwtAuthenticators() { - return this.jwtAuthenticators; + public TrustedAccessRolesClient getTrustedAccessRoles() { + return this.trustedAccessRoles; } /** - * The MeshMembershipsClient object to access its operations. + * The MachinesClient object to access its operations. */ - private final MeshMembershipsClient meshMemberships; + private final MachinesClient machines; /** - * Gets the MeshMembershipsClient object to access its operations. + * Gets the MachinesClient object to access its operations. * - * @return the MeshMembershipsClient object. + * @return the MachinesClient object. */ - public MeshMembershipsClient getMeshMemberships() { - return this.meshMemberships; + public MachinesClient getMachines() { + return this.machines; } /** @@ -428,22 +323,15 @@ public MeshMembershipsClient getMeshMemberships() { this.containerServices = new ContainerServicesClientImpl(this); this.operations = new OperationsClientImpl(this); this.managedClusters = new ManagedClustersClientImpl(this); - this.containerServiceOperations = new ContainerServiceOperationsClientImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsClientImpl(this); this.managedNamespaces = new ManagedNamespacesClientImpl(this); this.agentPools = new AgentPoolsClientImpl(this); - this.machines = new MachinesClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.resolvePrivateLinkServiceIds = new ResolvePrivateLinkServiceIdsClientImpl(this); - this.operationStatusResults = new OperationStatusResultsClientImpl(this); this.snapshots = new SnapshotsClientImpl(this); - this.managedClusterSnapshots = new ManagedClusterSnapshotsClientImpl(this); - this.trustedAccessRoles = new TrustedAccessRolesClientImpl(this); this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsClientImpl(this); - this.loadBalancers = new LoadBalancersClientImpl(this); - this.identityBindings = new IdentityBindingsClientImpl(this); - this.jwtAuthenticators = new JwtAuthenticatorsClientImpl(this); - this.meshMemberships = new MeshMembershipsClientImpl(this); + this.trustedAccessRoles = new TrustedAccessRolesClientImpl(this); + this.machines = new MachinesClientImpl(this); } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceOperationsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceOperationsClientImpl.java deleted file mode 100644 index 5cac22ca505e..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceOperationsClientImpl.java +++ /dev/null @@ -1,293 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.containerservice.fluent.ContainerServiceOperationsClient; -import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; -import com.azure.resourcemanager.containerservice.models.NodeImageVersionsListResult; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ContainerServiceOperationsClient. - */ -public final class ContainerServiceOperationsClientImpl implements ContainerServiceOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ContainerServiceOperationsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of ContainerServiceOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ContainerServiceOperationsClientImpl(ContainerServiceManagementClientImpl client) { - this.service = RestProxy.create(ContainerServiceOperationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientContainerServiceOperations to be used - * by the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientContainerServiceOperations") - public interface ContainerServiceOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/nodeImageVersions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNodeImageVersions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNodeImageVersionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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 holds an array NodeImageVersions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNodeImageVersionsSinglePageAsync(String location) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNodeImageVersions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array NodeImageVersions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNodeImageVersionsSinglePageAsync(String location, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listNodeImageVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, - accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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 holds an array NodeImageVersions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listNodeImageVersionsAsync(String location) { - return new PagedFlux<>(() -> listNodeImageVersionsSinglePageAsync(location), - nextLink -> listNodeImageVersionsNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array NodeImageVersions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listNodeImageVersionsAsync(String location, Context context) { - return new PagedFlux<>(() -> listNodeImageVersionsSinglePageAsync(location, context), - nextLink -> listNodeImageVersionsNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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 holds an array NodeImageVersions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listNodeImageVersions(String location) { - return new PagedIterable<>(listNodeImageVersionsAsync(location)); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Only returns the latest version of each node image. For example there may be an - * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this - * list. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array NodeImageVersions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listNodeImageVersions(String location, Context context) { - return new PagedIterable<>(listNodeImageVersionsAsync(location, context)); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 holds an array NodeImageVersions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNodeImageVersionsNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listNodeImageVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of supported NodeImage versions in the specified subscription. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return holds an array NodeImageVersions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNodeImageVersionsNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNodeImageVersionsNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/IdentityBindingsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/IdentityBindingsClientImpl.java deleted file mode 100644 index e51259e5ab81..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/IdentityBindingsClientImpl.java +++ /dev/null @@ -1,947 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.IdentityBindingsClient; -import com.azure.resourcemanager.containerservice.fluent.models.IdentityBindingInner; -import com.azure.resourcemanager.containerservice.models.IdentityBindingListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in IdentityBindingsClient. - */ -public final class IdentityBindingsClientImpl implements IdentityBindingsClient { - /** - * The proxy service used to perform REST calls. - */ - private final IdentityBindingsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of IdentityBindingsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - IdentityBindingsClientImpl(ContainerServiceManagementClientImpl client) { - this.service - = RestProxy.create(IdentityBindingsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientIdentityBindings to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientIdentityBindings") - public interface IdentityBindingsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/identityBindings") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedCluster(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/identityBindings/{identityBindingName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("identityBindingName") String identityBindingName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/identityBindings/{identityBindingName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("identityBindingName") String identityBindingName, - @BodyParam("application/json") IdentityBindingInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/identityBindings/{identityBindingName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("identityBindingName") String identityBindingName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedClusterNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of identity bindings 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. - * @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 list of identity bindings in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of identity bindings 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 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. - * @return a list of identity bindings in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByManagedCluster(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of identity bindings 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. - * @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 list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of identity bindings 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 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. - * @return a list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, - Context context) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of identity bindings 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. - * @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 list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); - } - - /** - * Gets a list of identity bindings 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 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. - * @return a list of identity bindings in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); - } - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String identityBindingName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, identityBindingName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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. - * @return the specified Identity Binding along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String identityBindingName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, identityBindingName, accept, context); - } - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String resourceName, - String identityBindingName) { - return getWithResponseAsync(resourceGroupName, resourceName, identityBindingName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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. - * @return the specified Identity Binding along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String resourceName, - String identityBindingName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, identityBindingName, context).block(); - } - - /** - * Gets the specified Identity Binding. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param identityBindingName The name of the identity binding. - * @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 specified Identity Binding. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IdentityBindingInner get(String resourceGroupName, String resourceName, String identityBindingName) { - return getWithResponse(resourceGroupName, resourceName, identityBindingName, Context.NONE).getValue(); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String identityBindingName, IdentityBindingInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, identityBindingName, parameters, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the IdentityBinding resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String identityBindingName, IdentityBindingInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, identityBindingName, parameters, accept, context); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, IdentityBindingInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String identityBindingName, IdentityBindingInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, identityBindingName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - IdentityBindingInner.class, IdentityBindingInner.class, this.client.getContext()); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the {@link PollerFlux} for polling of the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IdentityBindingInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String identityBindingName, IdentityBindingInner parameters, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, - identityBindingName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - IdentityBindingInner.class, IdentityBindingInner.class, context); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 SyncPoller} for polling of the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IdentityBindingInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String identityBindingName, IdentityBindingInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters) - .getSyncPoller(); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the {@link SyncPoller} for polling of the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IdentityBindingInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String identityBindingName, IdentityBindingInner parameters, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters, context) - .getSyncPoller(); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the IdentityBinding resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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 IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IdentityBindingInner createOrUpdate(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters).block(); - } - - /** - * Creates or updates an identity binding 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 identityBindingName The name of the identity binding. - * @param parameters The identity binding to create or update. - * @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. - * @return the IdentityBinding resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IdentityBindingInner createOrUpdate(String resourceGroupName, String resourceName, - String identityBindingName, IdentityBindingInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, identityBindingName, parameters, context).block(); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, - String identityBindingName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, identityBindingName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String identityBindingName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (identityBindingName == null) { - return Mono - .error(new IllegalArgumentException("Parameter identityBindingName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, identityBindingName, accept, context); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 identityBindingName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, identityBindingName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String identityBindingName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, identityBindingName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String identityBindingName) { - return this.beginDeleteAsync(resourceGroupName, resourceName, identityBindingName).getSyncPoller(); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String identityBindingName, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, identityBindingName, context).getSyncPoller(); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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 identityBindingName) { - return beginDeleteAsync(resourceGroupName, resourceName, identityBindingName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String identityBindingName, - Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, identityBindingName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, String identityBindingName) { - deleteAsync(resourceGroupName, resourceName, identityBindingName).block(); - } - - /** - * Deletes an identity binding 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 identityBindingName The name of the identity binding. - * @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, String identityBindingName, Context context) { - deleteAsync(resourceGroupName, resourceName, identityBindingName, context).block(); - } - - /** - * Gets a list of identity bindings in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 list of identity bindings in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of identity bindings in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return a list of identity bindings in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JwtAuthenticatorsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JwtAuthenticatorsClientImpl.java deleted file mode 100644 index 1379b5a678f6..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JwtAuthenticatorsClientImpl.java +++ /dev/null @@ -1,963 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.JwtAuthenticatorsClient; -import com.azure.resourcemanager.containerservice.fluent.models.JwtAuthenticatorInner; -import com.azure.resourcemanager.containerservice.models.JwtAuthenticatorListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in JwtAuthenticatorsClient. - */ -public final class JwtAuthenticatorsClientImpl implements JwtAuthenticatorsClient { - /** - * The proxy service used to perform REST calls. - */ - private final JwtAuthenticatorsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of JwtAuthenticatorsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - JwtAuthenticatorsClientImpl(ContainerServiceManagementClientImpl client) { - this.service - = RestProxy.create(JwtAuthenticatorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientJwtAuthenticators to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientJwtAuthenticators") - public interface JwtAuthenticatorsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedCluster(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, - @BodyParam("application/json") JwtAuthenticatorInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedClusterNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of JWT authenticators 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. - * @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 list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of JWT authenticators 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 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. - * @return a list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByManagedCluster(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of JWT authenticators 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. - * @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 list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of JWT authenticators 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 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. - * @return a list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, - Context context) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of JWT authenticators 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. - * @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 list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); - } - - /** - * Gets a list of JWT authenticators 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 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. - * @return a list of JWT authenticators in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); - } - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, jwtAuthenticatorName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the specified JWT authenticator of a managed cluster along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, jwtAuthenticatorName, accept, context); - } - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName) { - return getWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the specified JWT authenticator of a managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).block(); - } - - /** - * Gets the specified JWT authenticator of 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 jwtAuthenticatorName The name of the JWT authenticator. - * @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 specified JWT authenticator of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public JwtAuthenticatorInner get(String resourceGroupName, String resourceName, String jwtAuthenticatorName) { - return getWithResponse(resourceGroupName, resourceName, jwtAuthenticatorName, Context.NONE).getValue(); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, jwtAuthenticatorName, parameters, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return configuration for JWT authenticator in the managed cluster along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, jwtAuthenticatorName, parameters, accept, context); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, JwtAuthenticatorInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), JwtAuthenticatorInner.class, JwtAuthenticatorInner.class, - this.client.getContext()); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return the {@link PollerFlux} for polling of configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, JwtAuthenticatorInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, - jwtAuthenticatorName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), JwtAuthenticatorInner.class, JwtAuthenticatorInner.class, context); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JwtAuthenticatorInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters) - .getSyncPoller(); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return the {@link SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, JwtAuthenticatorInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String jwtAuthenticatorName, JwtAuthenticatorInner parameters, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context) - .getSyncPoller(); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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 configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public JwtAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters).block(); - } - - /** - * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the - * settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @param parameters The JWT authenticator to create or update. - * @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. - * @return configuration for JWT authenticator in the managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public JwtAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, JwtAuthenticatorInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context).block(); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, - String jwtAuthenticatorName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, jwtAuthenticatorName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (jwtAuthenticatorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, jwtAuthenticatorName, accept, context); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 jwtAuthenticatorName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String jwtAuthenticatorName) { - return this.beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).getSyncPoller(); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String jwtAuthenticatorName, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).getSyncPoller(); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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 jwtAuthenticatorName) { - return beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName, - Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, String jwtAuthenticatorName) { - deleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).block(); - } - - /** - * Deletes a JWT authenticator and updates the managed cluster to apply the settings. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param jwtAuthenticatorName The name of the JWT authenticator. - * @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, String jwtAuthenticatorName, Context context) { - deleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).block(); - } - - /** - * Gets a list of JWT authenticators in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of JWT authenticators in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return a list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterAgentPoolImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterAgentPoolImpl.java index 454642777e59..98f4dba163a5 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterAgentPoolImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterAgentPoolImpl.java @@ -325,10 +325,6 @@ AgentPoolInner getAgentPoolInner() { agentPoolInner.withVirtualMachineNodesStatus(innerModel().virtualMachineNodesStatus()); agentPoolInner.withStatus(innerModel().status()); - // available only in preview api-version - agentPoolInner.withNodeImageVersion(innerModel().nodeImageVersion()); - agentPoolInner.withUpgradeStrategy(innerModel().upgradeStrategy()); - return agentPoolInner; } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java deleted file mode 100644 index e6451577cbcb..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java +++ /dev/null @@ -1,842 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.LoadBalancersClient; -import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; -import com.azure.resourcemanager.containerservice.models.LoadBalancerListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in LoadBalancersClient. - */ -public final class LoadBalancersClientImpl implements LoadBalancersClient { - /** - * The proxy service used to perform REST calls. - */ - private final LoadBalancersService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of LoadBalancersClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - LoadBalancersClientImpl(ContainerServiceManagementClientImpl client) { - this.service - = RestProxy.create(LoadBalancersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientLoadBalancers to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientLoadBalancers") - public interface LoadBalancersService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedCluster(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("loadBalancerName") String loadBalancerName, - @BodyParam("application/json") LoadBalancerInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedClusterNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of load balancers 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. - * @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 list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of load balancers 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 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. - * @return a list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByManagedCluster(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of load balancers 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. - * @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 list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of load balancers 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 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. - * @return a list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, - Context context) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of load balancers 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. - * @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 list of load balancers in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); - } - - /** - * Gets a list of load balancers 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 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. - * @return a list of load balancers in the specified managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); - } - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String loadBalancerName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, loadBalancerName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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. - * @return the specified load balancer along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String loadBalancerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, loadBalancerName, accept, context); - } - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String resourceName, String loadBalancerName) { - return getWithResponseAsync(resourceGroupName, resourceName, loadBalancerName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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. - * @return the specified load balancer along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String resourceName, - String loadBalancerName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, context).block(); - } - - /** - * Gets the specified load balancer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param loadBalancerName The name of the load balancer. - * @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 specified load balancer. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LoadBalancerInner get(String resourceGroupName, String resourceName, String loadBalancerName) { - return getWithResponse(resourceGroupName, resourceName, loadBalancerName, Context.NONE).getValue(); - } - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String loadBalancerName, LoadBalancerInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, parameters, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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. - * @return the configurations regarding multiple standard load balancers along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String loadBalancerName, LoadBalancerInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, loadBalancerName, parameters, accept, context); - } - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String loadBalancerName, LoadBalancerInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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. - * @return the configurations regarding multiple standard load balancers along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, - String loadBalancerName, LoadBalancerInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, parameters, context) - .block(); - } - - /** - * Creates or updates a load balancer 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 loadBalancerName The name of the load balancer. - * @param parameters The load balancer to create or update. - * @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 configurations regarding multiple standard load balancers. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LoadBalancerInner createOrUpdate(String resourceGroupName, String resourceName, String loadBalancerName, - LoadBalancerInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, resourceName, loadBalancerName, parameters, Context.NONE) - .getValue(); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, - String loadBalancerName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String loadBalancerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, loadBalancerName, accept, context); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 loadBalancerName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, loadBalancerName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String loadBalancerName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String loadBalancerName) { - return this.beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName).getSyncPoller(); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String loadBalancerName, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName, context).getSyncPoller(); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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 loadBalancerName) { - return beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String loadBalancerName, - Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, String loadBalancerName) { - deleteAsync(resourceGroupName, resourceName, loadBalancerName).block(); - } - - /** - * Deletes a load balancer 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 loadBalancerName The name of the load balancer. - * @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, String loadBalancerName, Context context) { - deleteAsync(resourceGroupName, resourceName, loadBalancerName, context).block(); - } - - /** - * Gets a list of load balancers in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of load balancers in the specified managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return a list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java index 49638472da4a..b88059d28c0c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.containerservice.implementation; -import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; @@ -12,7 +11,6 @@ import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -25,16 +23,11 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.MachinesClient; import com.azure.resourcemanager.containerservice.fluent.models.MachineInner; import com.azure.resourcemanager.containerservice.models.MachineListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -87,18 +80,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("agentPoolName") String agentPoolName, @PathParam("machineName") String machineName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines/{machineName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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, @PathParam("machineName") String machineName, - @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, - @BodyParam("application/json") MachineInner parameters, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -140,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -184,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -270,7 +251,7 @@ public PagedIterable list(String resourceGroupName, String resourc * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -301,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -315,7 +296,7 @@ public Mono> getWithResponseAsync(String resourceGroupNam * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -347,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -360,7 +341,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa * @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 machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -379,7 +360,7 @@ public Mono getAsync(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 agentPoolName The name of the agent pool. - * @param machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -398,7 +379,7 @@ public Response getWithResponse(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 agentPoolName The name of the agent pool. - * @param machineName Host name of the machine. + * @param machineName host name of the machine. * @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. @@ -409,362 +390,6 @@ public MachineInner get(String resourceGroupName, String resourceName, String ag return getWithResponse(resourceGroupName, resourceName, agentPoolName, machineName, Context.NONE).getValue(); } - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and status along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - if (machineName == null) { - return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machineName, ifMatch, - ifNoneMatch, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a machine provides detailed information about its configuration and status along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner 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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - if (machineName == null) { - return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, machineName, ifMatch, ifNoneMatch, parameters, accept, - context); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, - String ifNoneMatch) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, - agentPoolName, machineName, parameters, ifMatch, ifNoneMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - MachineInner.class, MachineInner.class, this.client.getContext()); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, - agentPoolName, machineName, parameters, ifMatch, ifNoneMatch); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - MachineInner.class, MachineInner.class, this.client.getContext()); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, - String ifNoneMatch, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, - agentPoolName, machineName, parameters, ifMatch, ifNoneMatch, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - MachineInner.class, MachineInner.class, context); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 SyncPoller} for polling of a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, - ifNoneMatch) - .getSyncPoller(); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a machine provides detailed information about its configuration and - * status. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, - String ifNoneMatch, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, - ifNoneMatch, context) - .getSyncPoller(); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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 a machine provides detailed information about its configuration and status on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, - ifMatch, ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 machine provides detailed information about its configuration and status on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, - ifMatch, ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a machine provides detailed information about its configuration and status on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, - ifMatch, ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine to create or update. - * @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 machine provides detailed information about its configuration and status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters) { - final String ifMatch = null; - final String ifNoneMatch = null; - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, - ifNoneMatch).block(); - } - - /** - * Creates or updates a machine in the specified agent pool. - * - * @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 machineName Host name of the machine. - * @param parameters The machine 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a machine provides detailed information about its configuration and status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, - ifNoneMatch, context).block(); - } - /** * Gets a list of machines in the specified agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java index bb4c262beb79..c4e206da5913 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -268,7 +268,8 @@ public PagedIterable listByManagedCluster(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -296,7 +297,7 @@ public Mono> getWithResponseAsync(String if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -309,7 +310,8 @@ public Mono> getWithResponseAsync(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -338,7 +340,7 @@ private Mono> getWithResponseAsync(Strin if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -350,7 +352,8 @@ private Mono> getWithResponseAsync(Strin * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -368,7 +371,8 @@ public Mono getAsync(String resourceGroupName, St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -386,7 +390,8 @@ public Response getWithResponse(String resourceGr * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -402,7 +407,8 @@ public MaintenanceConfigurationInner get(String resourceGroupName, String resour * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -436,7 +442,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-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)) @@ -448,7 +454,8 @@ public Mono> createOrUpdateWithResponseA * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -483,7 +490,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -495,7 +502,8 @@ private Mono> createOrUpdateWithResponse * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -515,7 +523,8 @@ public Mono createOrUpdateAsync(String resourceGr * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -536,7 +545,8 @@ public Response createOrUpdateWithResponse(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @param parameters The maintenance configuration to create or update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -555,7 +565,8 @@ public MaintenanceConfigurationInner createOrUpdate(String resourceGroupName, St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -582,7 +593,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -595,7 +606,8 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -623,7 +635,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -635,7 +647,8 @@ private Mono> deleteWithResponseAsync(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 configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -651,7 +664,8 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. @@ -669,7 +683,8 @@ public Response deleteWithResponse(String resourceGroupName, String resour * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param configName The name of the maintenance configuration. + * @param configName The name of the maintenance configuration. Supported values are 'default', + * 'aksManagedAutoUpgradeSchedule', or 'aksManagedNodeOSUpgradeSchedule'. * @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. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java deleted file mode 100644 index 7a11708c645d..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java +++ /dev/null @@ -1,1020 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.containerservice.fluent.ManagedClusterSnapshotsClient; -import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; -import com.azure.resourcemanager.containerservice.models.ManagedClusterSnapshotListResult; -import com.azure.resourcemanager.containerservice.models.TagsObject; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; -import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ManagedClusterSnapshotsClient. - */ -public final class ManagedClusterSnapshotsClientImpl implements InnerSupportsGet, - InnerSupportsListing, InnerSupportsDelete, ManagedClusterSnapshotsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ManagedClusterSnapshotsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of ManagedClusterSnapshotsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ManagedClusterSnapshotsClientImpl(ContainerServiceManagementClientImpl client) { - this.service = RestProxy.create(ManagedClusterSnapshotsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientManagedClusterSnapshots to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientManagedClusterSnapshots") - public interface ManagedClusterSnapshotsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@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); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @BodyParam("application/json") ManagedClusterSnapshotInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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 list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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. - * @return a list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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 list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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. - * @return a list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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 list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * @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. - * @return a list of managed cluster snapshots in the specified subscription as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 response from the List Managed Cluster Snapshots operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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. - * @return the response from the List Managed Cluster Snapshots operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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. - * @return the response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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. - * @return the response from the List Managed Cluster Snapshots operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context); - } - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a managed cluster snapshot along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String resourceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block(); - } - - /** - * Gets a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 managed cluster snapshot. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedClusterSnapshotInner getByResourceGroup(String resourceGroupName, String resourceName) { - return getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); - } - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterSnapshotInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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. - * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterSnapshotInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - 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); - } - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - ManagedClusterSnapshotInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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. - * @return a managed cluster snapshot resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String resourceGroupName, - String resourceName, ManagedClusterSnapshotInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context).block(); - } - - /** - * Creates or updates a managed cluster snapshot. - * - * @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 snapshot to create or update. - * @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 managed cluster snapshot resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedClusterSnapshotInner createOrUpdate(String resourceGroupName, String resourceName, - ManagedClusterSnapshotInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, resourceName, parameters, Context.NONE).getValue(); - } - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String resourceName, TagsObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags operation. - * @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. - * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String resourceName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - 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); - } - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String resourceName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags operation. - * @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. - * @return a managed cluster snapshot resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String resourceName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, context).block(); - } - - /** - * Updates tags on a managed cluster snapshot. - * - * @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 snapshot Tags 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. - * @return a managed cluster snapshot resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedClusterSnapshotInner updateTags(String resourceGroupName, String resourceName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, resourceName, parameters, Context.NONE).getValue(); - } - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, accept, context); - } - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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) { - return deleteWithResponseAsync(resourceGroupName, resourceName).flatMap(ignored -> Mono.empty()); - } - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String resourceName, Context context) { - return deleteWithResponseAsync(resourceGroupName, resourceName, context).block(); - } - - /** - * Deletes a managed cluster snapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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) { - deleteWithResponse(resourceGroupName, resourceName, Context.NONE); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of managed cluster snapshots in the specified subscription. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return a list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 response from the List Managed Cluster Snapshots operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists managed cluster snapshots in the specified subscription and resource group. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return the response from the List Managed Cluster Snapshots operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index 9ec10e410a57..039c84a87d5b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -35,7 +35,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.ManagedClustersClient; import com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner; -import com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner; @@ -44,9 +43,7 @@ import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; -import com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; import com.azure.resourcemanager.containerservice.models.Format; -import com.azure.resourcemanager.containerservice.models.GuardrailsAvailableVersionsList; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterListResult; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; @@ -54,9 +51,7 @@ import com.azure.resourcemanager.containerservice.models.MeshRevisionProfileList; import com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileList; import com.azure.resourcemanager.containerservice.models.OutboundEnvironmentEndpointCollection; -import com.azure.resourcemanager.containerservice.models.RebalanceLoadBalancersRequestBody; import com.azure.resourcemanager.containerservice.models.RunCommandRequest; -import com.azure.resourcemanager.containerservice.models.SafeguardsAvailableVersionsList; import com.azure.resourcemanager.containerservice.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -206,9 +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("If-Match") String ifMatch, - @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" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile") @@ -231,19 +224,19 @@ Mono>> resetAadProfile(@HostParam("$host") String endp Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> abortLatestOperation(@HostParam("$host") String endpoint, + Mono>> rotateClusterCertificates(@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); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> rotateClusterCertificates(@HostParam("$host") String endpoint, + Mono>> abortLatestOperation(@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); @@ -304,40 +297,6 @@ Mono> listOutboundNetworkDepende @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions/{version}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getGuardrailsVersions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @PathParam("version") String version, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listGuardrailsVersions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions/{version}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSafeguardsVersions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @PathParam("version") String version, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSafeguardsVersions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles") @ExpectedResponses({ 200 }) @@ -373,16 +332,6 @@ Mono> getMeshUpgradeProfile(@HostParam("$host" @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("mode") String mode, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rebalanceLoadBalancers") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> rebalanceLoadBalancers(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @BodyParam("application/json") RebalanceLoadBalancersRequestBody parameters, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -407,22 +356,6 @@ Mono> listOutboundNetworkDepende @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listGuardrailsVersionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSafeguardsVersionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -466,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, @@ -502,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -580,7 +513,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -610,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -697,7 +630,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -733,7 +666,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -832,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -870,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -964,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAccessProfile(this.client.getEndpoint(), apiVersion, @@ -1011,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAccessProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1118,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1156,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1249,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1290,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1384,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1422,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1511,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1548,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1639,7 +1572,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -1685,7 +1618,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1940,7 +1873,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, @@ -1984,7 +1917,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2193,8 +2126,6 @@ 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. - * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2202,7 +2133,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch, Boolean ignorePodDisruptionBudget) { + String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2218,12 +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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2233,8 +2163,6 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2243,7 +2171,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch, Boolean ignorePodDisruptionBudget, 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.")); @@ -2259,11 +2187,11 @@ private Mono>> deleteWithResponseAsync(String resource if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, ifMatch, ignorePodDisruptionBudget, accept, context); + resourceName, ifMatch, accept, context); } /** @@ -2272,8 +2200,6 @@ private Mono>> deleteWithResponseAsync(String resource * @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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2281,9 +2207,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String ifMatch, Boolean ignorePodDisruptionBudget) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget); + String ifMatch) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2301,9 +2226,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { final String ifMatch = null; - final Boolean ignorePodDisruptionBudget = null; - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2314,8 +2237,6 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2324,10 +2245,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String ifMatch, Boolean ignorePodDisruptionBudget, Context context) { + String ifMatch, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -2345,9 +2266,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) { final String ifMatch = null; - final Boolean ignorePodDisruptionBudget = null; - return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget) - .getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch).getSyncPoller(); } /** @@ -2356,8 +2275,6 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2366,9 +2283,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, - Boolean ignorePodDisruptionBudget, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context) - .getSyncPoller(); + Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).getSyncPoller(); } /** @@ -2377,17 +2293,14 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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, - Boolean ignorePodDisruptionBudget) { - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).last() + public Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2404,8 +2317,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName) { final String ifMatch = null; - final Boolean ignorePodDisruptionBudget = null; - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).last() + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2415,8 +2327,6 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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. @@ -2424,9 +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, String ifMatch, - Boolean ignorePodDisruptionBudget, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2442,8 +2351,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName) { final String ifMatch = null; - final Boolean ignorePodDisruptionBudget = null; - deleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).block(); + deleteAsync(resourceGroupName, resourceName, ifMatch).block(); } /** @@ -2452,17 +2360,14 @@ 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 ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without - * considering Pod Disruption Budget. * @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, String ifMatch, Boolean ignorePodDisruptionBudget, - Context context) { - deleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context).block(); + public void delete(String resourceGroupName, String resourceName, String ifMatch, Context context) { + deleteAsync(resourceGroupName, resourceName, ifMatch, context).block(); } /** @@ -2501,7 +2406,7 @@ public Mono>> resetServicePrincipalProfileWithResponse } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2546,7 +2451,7 @@ private Mono>> resetServicePrincipalProfileWithRespons } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2754,7 +2659,7 @@ public Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetAadProfile(this.client.getEndpoint(), apiVersion, @@ -2800,7 +2705,7 @@ private Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetAadProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2978,11 +2883,10 @@ public void resetAadProfile(String resourceGroupName, String resourceName, Manag } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -2992,7 +2896,7 @@ public void resetAadProfile(String resourceGroupName, String resourceName, Manag * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, + public Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3009,20 +2913,19 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3033,7 +2936,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, + private Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3050,19 +2953,18 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + return service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3072,19 +2974,19 @@ private Mono>> abortLatestOperationWithResponseAsync(S * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, + public PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, String resourceName) { - Mono>> mono = abortLatestOperationWithResponseAsync(resourceGroupName, resourceName); + Mono>> mono + = rotateClusterCertificatesWithResponseAsync(resourceGroupName, resourceName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3095,21 +2997,20 @@ public PollerFlux, Void> beginAbortLatestOperationAsync(String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, + private PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = abortLatestOperationWithResponseAsync(resourceGroupName, resourceName, context); + = rotateClusterCertificatesWithResponseAsync(resourceGroupName, resourceName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3119,16 +3020,16 @@ private PollerFlux, Void> beginAbortLatestOperationAsync(String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName) { - return this.beginAbortLatestOperationAsync(resourceGroupName, resourceName).getSyncPoller(); + public SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, + String resourceName) { + return this.beginRotateClusterCertificatesAsync(resourceGroupName, resourceName).getSyncPoller(); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3139,17 +3040,16 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName, - Context context) { - return this.beginAbortLatestOperationAsync(resourceGroupName, resourceName, context).getSyncPoller(); + public SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, + String resourceName, Context context) { + return this.beginRotateClusterCertificatesAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3159,17 +3059,16 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono abortLatestOperationAsync(String resourceGroupName, String resourceName) { - return beginAbortLatestOperationAsync(resourceGroupName, resourceName).last() + public Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName) { + return beginRotateClusterCertificatesAsync(resourceGroupName, resourceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3180,17 +3079,16 @@ public Mono abortLatestOperationAsync(String resourceGroupName, String res * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono abortLatestOperationAsync(String resourceGroupName, String resourceName, Context context) { - return beginAbortLatestOperationAsync(resourceGroupName, resourceName, context).last() + private Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName, Context context) { + return beginRotateClusterCertificatesAsync(resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3199,16 +3097,15 @@ private Mono abortLatestOperationAsync(String resourceGroupName, String re * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void abortLatestOperation(String resourceGroupName, String resourceName) { - abortLatestOperationAsync(resourceGroupName, resourceName).block(); + public void rotateClusterCertificates(String resourceGroupName, String resourceName) { + rotateClusterCertificatesAsync(resourceGroupName, resourceName).block(); } /** - * Aborts last operation running on managed cluster. + * Rotates the certificates of a managed cluster. * - * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling - * state and eventually to a Canceled state when cancellation finishes. If the operation completes before - * cancellation can take place, an error is returned. + * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about + * rotating managed cluster certificates. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3218,15 +3115,16 @@ public void abortLatestOperation(String resourceGroupName, String resourceName) * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void abortLatestOperation(String resourceGroupName, String resourceName, Context context) { - abortLatestOperationAsync(resourceGroupName, resourceName, context).block(); + public void rotateClusterCertificates(String resourceGroupName, String resourceName, Context context) { + rotateClusterCertificatesAsync(resourceGroupName, resourceName, context).block(); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3236,7 +3134,7 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, + public Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3253,19 +3151,20 @@ public Mono>> rotateClusterCertificatesWithResponseAsy if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3276,7 +3175,7 @@ public Mono>> rotateClusterCertificatesWithResponseAsy * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, + private Mono>> abortLatestOperationWithResponseAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3293,18 +3192,19 @@ private Mono>> rotateClusterCertificatesWithResponseAs if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3314,19 +3214,19 @@ private Mono>> rotateClusterCertificatesWithResponseAs * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, + public PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, String resourceName) { - Mono>> mono - = rotateClusterCertificatesWithResponseAsync(resourceGroupName, resourceName); + Mono>> mono = abortLatestOperationWithResponseAsync(resourceGroupName, resourceName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3337,20 +3237,21 @@ public PollerFlux, Void> beginRotateClusterCertificatesAsync(St * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRotateClusterCertificatesAsync(String resourceGroupName, + private PollerFlux, Void> beginAbortLatestOperationAsync(String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = rotateClusterCertificatesWithResponseAsync(resourceGroupName, resourceName, context); + = abortLatestOperationWithResponseAsync(resourceGroupName, resourceName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3360,16 +3261,16 @@ private PollerFlux, Void> beginRotateClusterCertificatesAsync(S * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, - String resourceName) { - return this.beginRotateClusterCertificatesAsync(resourceGroupName, resourceName).getSyncPoller(); + public SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName) { + return this.beginAbortLatestOperationAsync(resourceGroupName, resourceName).getSyncPoller(); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3380,16 +3281,17 @@ public SyncPoller, Void> beginRotateClusterCertificates(String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRotateClusterCertificates(String resourceGroupName, - String resourceName, Context context) { - return this.beginRotateClusterCertificatesAsync(resourceGroupName, resourceName, context).getSyncPoller(); + public SyncPoller, Void> beginAbortLatestOperation(String resourceGroupName, String resourceName, + Context context) { + return this.beginAbortLatestOperationAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3399,16 +3301,17 @@ public SyncPoller, Void> beginRotateClusterCertificates(String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName) { - return beginRotateClusterCertificatesAsync(resourceGroupName, resourceName).last() + public Mono abortLatestOperationAsync(String resourceGroupName, String resourceName) { + return beginAbortLatestOperationAsync(resourceGroupName, resourceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3419,16 +3322,17 @@ public Mono rotateClusterCertificatesAsync(String resourceGroupName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono rotateClusterCertificatesAsync(String resourceGroupName, String resourceName, Context context) { - return beginRotateClusterCertificatesAsync(resourceGroupName, resourceName, context).last() + private Mono abortLatestOperationAsync(String resourceGroupName, String resourceName, Context context) { + return beginAbortLatestOperationAsync(resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3437,15 +3341,16 @@ private Mono rotateClusterCertificatesAsync(String resourceGroupName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rotateClusterCertificates(String resourceGroupName, String resourceName) { - rotateClusterCertificatesAsync(resourceGroupName, resourceName).block(); + public void abortLatestOperation(String resourceGroupName, String resourceName) { + abortLatestOperationAsync(resourceGroupName, resourceName).block(); } /** - * Rotates the certificates of a managed cluster. + * Aborts last operation running on managed cluster. * - * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about - * rotating managed cluster certificates. + * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling + * state and eventually to a Canceled state when cancellation finishes. If the operation completes before + * cancellation can take place, a 409 error code is returned. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. @@ -3455,8 +3360,8 @@ public void rotateClusterCertificates(String resourceGroupName, String resourceN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rotateClusterCertificates(String resourceGroupName, String resourceName, Context context) { - rotateClusterCertificatesAsync(resourceGroupName, resourceName, context).block(); + public void abortLatestOperation(String resourceGroupName, String resourceName, Context context) { + abortLatestOperationAsync(resourceGroupName, resourceName, context).block(); } /** @@ -3487,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3524,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3699,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3741,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3948,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, @@ -3988,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -4186,7 +4091,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { requestPayload.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.runCommand(this.client.getEndpoint(), apiVersion, @@ -4232,7 +4137,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { requestPayload.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.runCommand(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4446,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCommandResult(this.client.getEndpoint(), apiVersion, @@ -4488,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCommandResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4581,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), @@ -4626,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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4728,148 +4633,20 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r } /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getGuardrailsVersionsWithResponseAsync(String location, - String version) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (version == null) { - return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getGuardrailsVersions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, version, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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. - * @return available Guardrails Version along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGuardrailsVersionsWithResponseAsync(String location, - String version, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (version == null) { - return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getGuardrailsVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - location, version, accept, context); - } - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getGuardrailsVersionsAsync(String location, String version) { - return getGuardrailsVersionsWithResponseAsync(location, version) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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. - * @return available Guardrails Version along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getGuardrailsVersionsWithResponse(String location, String version, - Context context) { - return getGuardrailsVersionsWithResponseAsync(location, version, context).block(); - } - - /** - * Gets supported Guardrails version in the specified subscription and location. - * - * Contains Guardrails version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @param version Safeguards version. - * @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 available Guardrails Version. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public GuardrailsAvailableVersionInner getGuardrailsVersions(String location, String version) { - return getGuardrailsVersionsWithResponse(location, version, Context.NONE).getValue(); - } - - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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 hold values properties, which is array of GuardrailsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return holds an array of MeshRevisionsProfiles along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listGuardrailsVersionsSinglePageAsync(String location) { + private Mono> listMeshRevisionProfilesSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4881,31 +4658,32 @@ public GuardrailsAvailableVersionInner getGuardrailsVersions(String location, St if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listGuardrailsVersions(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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. - * @return hold values properties, which is array of GuardrailsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return holds an array of MeshRevisionsProfiles along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listGuardrailsVersionsSinglePageAsync(String location, + private Mono> listMeshRevisionProfilesSinglePageAsync(String location, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -4918,103 +4696,104 @@ private Mono> listGuardrailsVersi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listGuardrailsVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, + .listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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 hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedFlux}. + * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listGuardrailsVersionsAsync(String location) { - return new PagedFlux<>(() -> listGuardrailsVersionsSinglePageAsync(location), - nextLink -> listGuardrailsVersionsNextSinglePageAsync(nextLink)); + public PagedFlux listMeshRevisionProfilesAsync(String location) { + return new PagedFlux<>(() -> listMeshRevisionProfilesSinglePageAsync(location), + nextLink -> listMeshRevisionProfilesNextSinglePageAsync(nextLink)); } /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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. - * @return hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedFlux}. + * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listGuardrailsVersionsAsync(String location, Context context) { - return new PagedFlux<>(() -> listGuardrailsVersionsSinglePageAsync(location, context), - nextLink -> listGuardrailsVersionsNextSinglePageAsync(nextLink, context)); + private PagedFlux listMeshRevisionProfilesAsync(String location, Context context) { + return new PagedFlux<>(() -> listMeshRevisionProfilesSinglePageAsync(location, context), + nextLink -> listMeshRevisionProfilesNextSinglePageAsync(nextLink, context)); } /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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 hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedIterable}. + * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGuardrailsVersions(String location) { - return new PagedIterable<>(listGuardrailsVersionsAsync(location)); + public PagedIterable listMeshRevisionProfiles(String location) { + return new PagedIterable<>(listMeshRevisionProfilesAsync(location)); } /** - * Gets a list of supported Guardrails versions in the specified subscription and location. + * Lists mesh revision profiles for all meshes in the specified location. * - * Contains list of Guardrails version along with its support info and whether it is a default version. + * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @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. - * @return hold values properties, which is array of GuardrailsVersions as paginated response with - * {@link PagedIterable}. + * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGuardrailsVersions(String location, Context context) { - return new PagedIterable<>(listGuardrailsVersionsAsync(location, context)); + public PagedIterable listMeshRevisionProfiles(String location, Context context) { + return new PagedIterable<>(listMeshRevisionProfilesAsync(location, context)); } /** - * Gets supported Safeguards version in the specified subscription and location. + * Gets a mesh revision profile for a specified mesh in the specified location. * - * Contains Safeguards version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. - * @param version Safeguards version. + * @param mode The mode of the mesh. * @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 available Safeguards Version along with {@link Response} on successful completion of {@link Mono}. + * @return mesh revision profile for a mesh along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSafeguardsVersionsWithResponseAsync(String location, - String version) { + public Mono> getMeshRevisionProfileWithResponseAsync(String location, + String mode) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5026,33 +4805,34 @@ public Mono> getSafeguardsVersionsWith if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (version == null) { - return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getSafeguardsVersions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, version, accept, context)) + .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, mode, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets supported Safeguards version in the specified subscription and location. + * Gets a mesh revision profile for a specified mesh in the specified location. * - * Contains Safeguards version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. - * @param version Safeguards version. + * @param mode The mode of the mesh. * @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. - * @return available Safeguards Version along with {@link Response} on successful completion of {@link Mono}. + * @return mesh revision profile for a mesh along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSafeguardsVersionsWithResponseAsync(String location, - String version, Context context) { + private Mono> getMeshRevisionProfileWithResponseAsync(String location, + String mode, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5064,85 +4844,86 @@ private Mono> getSafeguardsVersionsWit if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (version == null) { - return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getSafeguardsVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - location, version, accept, context); + return service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, mode, accept, context); } /** - * Gets supported Safeguards version in the specified subscription and location. + * Gets a mesh revision profile for a specified mesh in the specified location. * - * Contains Safeguards version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. - * @param version Safeguards version. + * @param mode The mode of the mesh. * @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 available Safeguards Version on successful completion of {@link Mono}. + * @return mesh revision profile for a mesh on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSafeguardsVersionsAsync(String location, String version) { - return getSafeguardsVersionsWithResponseAsync(location, version) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono getMeshRevisionProfileAsync(String location, String mode) { + return getMeshRevisionProfileWithResponseAsync(location, mode).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets supported Safeguards version in the specified subscription and location. + * Gets a mesh revision profile for a specified mesh in the specified location. * - * Contains Safeguards version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. - * @param version Safeguards version. + * @param mode The mode of the mesh. * @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. - * @return available Safeguards Version along with {@link Response}. + * @return mesh revision profile for a mesh along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSafeguardsVersionsWithResponse(String location, String version, + public Response getMeshRevisionProfileWithResponse(String location, String mode, Context context) { - return getSafeguardsVersionsWithResponseAsync(location, version, context).block(); + return getMeshRevisionProfileWithResponseAsync(location, mode, context).block(); } /** - * Gets supported Safeguards version in the specified subscription and location. + * Gets a mesh revision profile for a specified mesh in the specified location. * - * Contains Safeguards version along with its support info and whether it is a default version. + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. - * @param version Safeguards version. + * @param mode The mode of the mesh. * @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 available Safeguards Version. + * @return mesh revision profile for a mesh. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SafeguardsAvailableVersionInner getSafeguardsVersions(String location, String version) { - return getSafeguardsVersionsWithResponse(location, version, Context.NONE).getValue(); + public MeshRevisionProfileInner getMeshRevisionProfile(String location, String mode) { + return getMeshRevisionProfileWithResponse(location, mode, Context.NONE).getValue(); } /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. + * Lists available upgrades for all service meshes in a specific cluster. * - * @param location The name of the Azure region. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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 hold values properties, which is array of SafeguardsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return holds an array of MeshUpgradeProfiles along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSafeguardsVersionsSinglePageAsync(String location) { + private Mono> + listMeshUpgradeProfilesSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5151,35 +4932,38 @@ public SafeguardsAvailableVersionInner getSafeguardsVersions(String location, St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listSafeguardsVersions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. + * Lists available upgrades for all service meshes in a specific cluster. * - * @param location The name of the Azure region. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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. - * @return hold values properties, which is array of SafeguardsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return holds an array of MeshUpgradeProfiles along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSafeguardsVersionsSinglePageAsync(String location, - Context context) { + private Mono> + listMeshUpgradeProfilesSinglePageAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5188,632 +4972,89 @@ private Mono> listSafeguardsVersi return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listSafeguardsVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, - accept, context) + .listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. + * Lists available upgrades for all service meshes in a specific cluster. * - * @param location The name of the Azure region. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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 hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedFlux}. + * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSafeguardsVersionsAsync(String location) { - return new PagedFlux<>(() -> listSafeguardsVersionsSinglePageAsync(location), - nextLink -> listSafeguardsVersionsNextSinglePageAsync(nextLink)); + public PagedFlux listMeshUpgradeProfilesAsync(String resourceGroupName, + String resourceName) { + return new PagedFlux<>(() -> listMeshUpgradeProfilesSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listMeshUpgradeProfilesNextSinglePageAsync(nextLink)); } /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. + * Lists available upgrades for all service meshes in a specific cluster. * - * @param location The name of the Azure region. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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. - * @return hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedFlux}. + * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSafeguardsVersionsAsync(String location, Context context) { - return new PagedFlux<>(() -> listSafeguardsVersionsSinglePageAsync(location, context), - nextLink -> listSafeguardsVersionsNextSinglePageAsync(nextLink, context)); + private PagedFlux listMeshUpgradeProfilesAsync(String resourceGroupName, + String resourceName, Context context) { + return new PagedFlux<>(() -> listMeshUpgradeProfilesSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listMeshUpgradeProfilesNextSinglePageAsync(nextLink, context)); } /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. + * Lists available upgrades for all service meshes in a specific cluster. * - * @param location The name of the Azure region. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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 hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSafeguardsVersions(String location) { - return new PagedIterable<>(listSafeguardsVersionsAsync(location)); - } - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Contains list of Safeguards version along with its support info and whether it is a default version. - * - * @param location The name of the Azure region. - * @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. - * @return hold values properties, which is array of SafeguardsVersions as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSafeguardsVersions(String location, Context context) { - return new PagedIterable<>(listSafeguardsVersionsAsync(location, context)); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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 holds an array of MeshRevisionsProfiles along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listMeshRevisionProfilesSinglePageAsync(String location) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array of MeshRevisionsProfiles along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listMeshRevisionProfilesSinglePageAsync(String location, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, - accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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 holds an array of MeshRevisionsProfiles as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listMeshRevisionProfilesAsync(String location) { - return new PagedFlux<>(() -> listMeshRevisionProfilesSinglePageAsync(location), - nextLink -> listMeshRevisionProfilesNextSinglePageAsync(nextLink)); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listMeshRevisionProfilesAsync(String location, Context context) { - return new PagedFlux<>(() -> listMeshRevisionProfilesSinglePageAsync(location, context), - nextLink -> listMeshRevisionProfilesNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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 holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMeshRevisionProfiles(String location) { - return new PagedIterable<>(listMeshRevisionProfilesAsync(location)); - } - - /** - * Lists mesh revision profiles for all meshes in the specified location. - * - * Contains extra metadata on each revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @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. - * @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMeshRevisionProfiles(String location, Context context) { - return new PagedIterable<>(listMeshRevisionProfilesAsync(location, context)); - } - - /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @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 mesh revision profile for a mesh along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getMeshRevisionProfileWithResponseAsync(String location, - String mode) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, mode, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @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. - * @return mesh revision profile for a mesh along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getMeshRevisionProfileWithResponseAsync(String location, - String mode, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - location, mode, accept, context); - } - - /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @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 mesh revision profile for a mesh on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getMeshRevisionProfileAsync(String location, String mode) { - return getMeshRevisionProfileWithResponseAsync(location, mode).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @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. - * @return mesh revision profile for a mesh along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getMeshRevisionProfileWithResponse(String location, String mode, - Context context) { - return getMeshRevisionProfileWithResponseAsync(location, mode, context).block(); - } - - /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. - * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. - * @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 mesh revision profile for a mesh. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MeshRevisionProfileInner getMeshRevisionProfile(String location, String mode) { - return getMeshRevisionProfileWithResponse(location, mode, Context.NONE).getValue(); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 holds an array of MeshUpgradeProfiles along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listMeshUpgradeProfilesSinglePageAsync(String resourceGroupName, String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return holds an array of MeshUpgradeProfiles along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listMeshUpgradeProfilesSinglePageAsync(String resourceGroupName, String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 holds an array of MeshUpgradeProfiles as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listMeshUpgradeProfilesAsync(String resourceGroupName, - String resourceName) { - return new PagedFlux<>(() -> listMeshUpgradeProfilesSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listMeshUpgradeProfilesNextSinglePageAsync(nextLink)); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listMeshUpgradeProfilesAsync(String resourceGroupName, - String resourceName, Context context) { - return new PagedFlux<>(() -> listMeshUpgradeProfilesSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listMeshUpgradeProfilesNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, - String resourceName) { - return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName)); - } - - /** - * Lists available upgrades for all service meshes in a specific cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName, context)); - } - - /** - * Gets available upgrades for a service mesh in a cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param mode The mode of the mesh. - * @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 available upgrades for a service mesh in a cluster along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getMeshUpgradeProfileWithResponseAsync(String resourceGroupName, - String resourceName, String mode) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, mode, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets available upgrades for a service mesh in a cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param mode The mode of the mesh. - * @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. - * @return available upgrades for a service mesh in a cluster along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getMeshUpgradeProfileWithResponseAsync(String resourceGroupName, - String resourceName, String mode, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, mode, accept, context); - } - - /** - * Gets available upgrades for a service mesh in a cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @param mode The mode of the mesh. - * @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 available upgrades for a service mesh in a cluster on successful completion of {@link Mono}. + * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getMeshUpgradeProfileAsync(String resourceGroupName, String resourceName, - String mode) { - return getMeshUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, mode) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, + String resourceName) { + return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName)); } /** - * Gets available upgrades for a service mesh in a cluster. + * Lists available upgrades for all service meshes in a specific cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. - * @param mode The mode of the mesh. * @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. - * @return available upgrades for a service mesh in a cluster along with {@link Response}. + * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getMeshUpgradeProfileWithResponse(String resourceGroupName, - String resourceName, String mode, Context context) { - return getMeshUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, mode, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName, context)); } /** @@ -5825,28 +5066,12 @@ public Response getMeshUpgradeProfileWithResponse(Strin * @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 available upgrades for a service mesh in a cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MeshUpgradeProfileInner getMeshUpgradeProfile(String resourceGroupName, String resourceName, String mode) { - return getMeshUpgradeProfileWithResponse(resourceGroupName, resourceName, mode, Context.NONE).getValue(); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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}. + * @return available upgrades for a service mesh in a cluster along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, - String resourceName, RebalanceLoadBalancersRequestBody parameters) { + public Mono> getMeshUpgradeProfileWithResponseAsync(String resourceGroupName, + String resourceName, String mode) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5862,35 +5087,33 @@ public Mono>> rebalanceLoadBalancersWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.rebalanceLoadBalancers(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) + .withContext(context -> service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, resourceName, mode, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Rebalance nodes across specific load balancers. + * Gets available upgrades for a service mesh in a 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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. + * @param mode The mode of the mesh. * @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. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return available upgrades for a service mesh in a cluster along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, - String resourceName, RebalanceLoadBalancersRequestBody parameters, Context context) { + private Mono> getMeshUpgradeProfileWithResponseAsync(String resourceGroupName, + String resourceName, String mode, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5906,172 +5129,66 @@ private Mono>> rebalanceLoadBalancersWithResponseAsync if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.rebalanceLoadBalancers(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, parameters, accept, context); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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> beginRebalanceLoadBalancersAsync(String resourceGroupName, - String resourceName, RebalanceLoadBalancersRequestBody parameters) { - Mono>> mono - = rebalanceLoadBalancersWithResponseAsync(resourceGroupName, resourceName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRebalanceLoadBalancersAsync(String resourceGroupName, - String resourceName, RebalanceLoadBalancersRequestBody parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = rebalanceLoadBalancersWithResponseAsync(resourceGroupName, resourceName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters) { - return this.beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters, Context context) { - return this.beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context) - .getSyncPoller(); + return service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, resourceName, mode, accept, context); } /** - * Rebalance nodes across specific load balancers. + * Gets available upgrades for a service mesh in a 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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. + * @param mode The mode of the mesh. * @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. + * @return available upgrades for a service mesh in a cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters) { - return beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono getMeshUpgradeProfileAsync(String resourceGroupName, String resourceName, + String mode) { + return getMeshUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, mode) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Rebalance nodes across specific load balancers. + * Gets available upgrades for a service mesh in a 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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. + * @param mode The mode of the mesh. * @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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters, Context context) { - return beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Rebalance nodes across specific load balancers. - * - * @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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @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 available upgrades for a service mesh in a cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters) { - rebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).block(); + public Response getMeshUpgradeProfileWithResponse(String resourceGroupName, + String resourceName, String mode, Context context) { + return getMeshUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, mode, context).block(); } /** - * Rebalance nodes across specific load balancers. + * Gets available upgrades for a service mesh in a 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 names of the load balancers to be rebalanced. If set to empty, all load balancers will be - * rebalanced. - * @param context The context to associate with this operation. + * @param mode The mode of the mesh. * @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 available upgrades for a service mesh in a cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rebalanceLoadBalancers(String resourceGroupName, String resourceName, - RebalanceLoadBalancersRequestBody parameters, Context context) { - rebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context).block(); + public MeshUpgradeProfileInner getMeshUpgradeProfile(String resourceGroupName, String resourceName, String mode) { + return getMeshUpgradeProfileWithResponse(resourceGroupName, resourceName, mode, Context.NONE).getValue(); } /** @@ -6255,128 +5372,6 @@ private Mono> listByResourceGroupNextSinglePa res.getValue().value(), res.getValue().nextLink(), null)); } - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 hold values properties, which is array of GuardrailsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listGuardrailsVersionsNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listGuardrailsVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of supported Guardrails versions in the specified subscription and location. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return hold values properties, which is array of GuardrailsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listGuardrailsVersionsNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listGuardrailsVersionsNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 hold values properties, which is array of SafeguardsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSafeguardsVersionsNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listSafeguardsVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of supported Safeguards versions in the specified subscription and location. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return hold values properties, which is array of SafeguardsVersions along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listSafeguardsVersionsNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listSafeguardsVersionsNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - /** * Lists mesh revision profiles for all meshes in the specified location. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java index 8aef735958bd..29edf395b2ab 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java @@ -173,7 +173,7 @@ private Mono> listByManagedClusterSinglePag if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, @@ -213,7 +213,7 @@ private Mono> listByManagedClusterSinglePag if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -327,7 +327,7 @@ public Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -370,7 +370,7 @@ private Mono> getWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -469,7 +469,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -519,7 +519,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -730,7 +730,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -773,7 +773,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -963,7 +963,7 @@ public Mono> updateWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1012,7 +1012,7 @@ private Mono> updateWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -1110,7 +1110,7 @@ public Mono> listCredentialWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.listCredential(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, managedNamespaceName, accept, context)) @@ -1151,7 +1151,7 @@ private Mono> listCredentialWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter managedNamespaceName is required and cannot be null.")); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listCredential(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java deleted file mode 100644 index d858ab8734c6..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java +++ /dev/null @@ -1,950 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.containerservice.fluent.MeshMembershipsClient; -import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; -import com.azure.resourcemanager.containerservice.models.MeshMembershipsListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in MeshMembershipsClient. - */ -public final class MeshMembershipsClientImpl implements MeshMembershipsClient { - /** - * The proxy service used to perform REST calls. - */ - private final MeshMembershipsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of MeshMembershipsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - MeshMembershipsClientImpl(ContainerServiceManagementClientImpl client) { - this.service - = RestProxy.create(MeshMembershipsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientMeshMemberships to be used by the - * proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientMeshMemberships") - public interface MeshMembershipsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedCluster(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("meshMembershipName") String meshMembershipName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("meshMembershipName") String meshMembershipName, - @BodyParam("application/json") MeshMembershipInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("meshMembershipName") String meshMembershipName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByManagedClusterNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Lists mesh memberships in 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. - * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists mesh memberships in 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 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. - * @return the result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByManagedCluster(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists mesh memberships in 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. - * @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 result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); - } - - /** - * Lists mesh memberships in 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 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. - * @return the result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, - Context context) { - return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists mesh memberships in 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. - * @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 result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); - } - - /** - * Lists mesh memberships in 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 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. - * @return the result of a request to list mesh memberships in a managed cluster as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); - } - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String meshMembershipName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, meshMembershipName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, - String meshMembershipName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, meshMembershipName, accept, context); - } - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String resourceName, - String meshMembershipName) { - return getWithResponseAsync(resourceGroupName, resourceName, meshMembershipName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the mesh membership of a managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String resourceName, - String meshMembershipName, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, context).block(); - } - - /** - * Gets the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MeshMembershipInner get(String resourceGroupName, String resourceName, String meshMembershipName) { - return getWithResponse(resourceGroupName, resourceName, meshMembershipName, Context.NONE).getValue(); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String meshMembershipName, MeshMembershipInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, parameters, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return mesh membership of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String meshMembershipName, MeshMembershipInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, meshMembershipName, parameters, accept, context); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - MeshMembershipInner.class, MeshMembershipInner.class, this.client.getContext()); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return the {@link PollerFlux} for polling of mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - MeshMembershipInner.class, MeshMembershipInner.class, context); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 SyncPoller} for polling of mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MeshMembershipInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters) - .getSyncPoller(); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return the {@link SyncPoller} for polling of mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, MeshMembershipInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context) - .getSyncPoller(); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String meshMembershipName, MeshMembershipInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return mesh membership of a managed cluster on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String meshMembershipName, MeshMembershipInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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 mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, - MeshMembershipInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters).block(); - } - - /** - * Creates or updates the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @param parameters The mesh membership to create or update. - * @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. - * @return mesh membership of a managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, - MeshMembershipInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context).block(); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, - String meshMembershipName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String meshMembershipName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (meshMembershipName == null) { - return Mono - .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, meshMembershipName, accept, context); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 meshMembershipName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, meshMembershipName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String meshMembershipName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String meshMembershipName) { - return this.beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName).getSyncPoller(); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String meshMembershipName, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName, context).getSyncPoller(); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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 meshMembershipName) { - return beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String meshMembershipName, - Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, String meshMembershipName) { - deleteAsync(resourceGroupName, resourceName, meshMembershipName).block(); - } - - /** - * Deletes the mesh membership of 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 meshMembershipName The name of the mesh membership. - * @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, String meshMembershipName, Context context) { - deleteAsync(resourceGroupName, resourceName, meshMembershipName, context).block(); - } - - /** - * Lists mesh memberships in a managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists mesh memberships in a managed cluster. - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return the result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java deleted file mode 100644 index 6b8001f31a78..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java +++ /dev/null @@ -1,587 +0,0 @@ -// 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.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.containerservice.fluent.OperationStatusResultsClient; -import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; -import com.azure.resourcemanager.containerservice.models.OperationStatusResultList; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in OperationStatusResultsClient. - */ -public final class OperationStatusResultsClientImpl implements OperationStatusResultsClient { - /** - * The proxy service used to perform REST calls. - */ - private final OperationStatusResultsService service; - - /** - * The service client containing this operation class. - */ - private final ContainerServiceManagementClientImpl client; - - /** - * Initializes an instance of OperationStatusResultsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - OperationStatusResultsClientImpl(ContainerServiceManagementClientImpl client) { - this.service = RestProxy.create(OperationStatusResultsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ContainerServiceManagementClientOperationStatusResults to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "ContainerServiceManagementClientOperationStatusResults") - public interface OperationStatusResultsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations/{operationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/operations/{operationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByAgentPool(@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, @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 list of operations in the specified managedCluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String resourceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a list of operations in the specified managedCluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String resourceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String resourceName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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 list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); - } - - /** - * Gets a list of operations in the specified managedCluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. - * @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. - * @return a list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String resourceName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); - } - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String resourceName, String operationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (operationId == null) { - return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, operationId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified managed cluster along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String resourceName, String operationId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (operationId == null) { - return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, operationId, accept, context); - } - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String resourceName, - String operationId) { - return getWithResponseAsync(resourceGroupName, resourceName, operationId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified managed cluster along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String resourceName, - String operationId, Context context) { - return getWithResponseAsync(resourceGroupName, resourceName, operationId, context).block(); - } - - /** - * Get the status of a specific operation 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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified managed cluster. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public OperationStatusResultInner get(String resourceGroupName, String resourceName, String operationId) { - return getWithResponse(resourceGroupName, resourceName, operationId, Context.NONE).getValue(); - } - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, String operationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - if (operationId == null) { - return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByAgentPool(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, operationId, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified agent pool along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, String operationId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (resourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); - } - if (agentPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); - } - if (operationId == null) { - return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); - } - final String apiVersion = "2025-09-02-preview"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByAgentPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, operationId, accept, context); - } - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByAgentPoolAsync(String resourceGroupName, String resourceName, - String agentPoolName, String operationId) { - return getByAgentPoolWithResponseAsync(resourceGroupName, resourceName, agentPoolName, operationId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async operation. - * @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. - * @return the status of a specific operation in the specified agent pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByAgentPoolWithResponse(String resourceGroupName, - String resourceName, String agentPoolName, String operationId, Context context) { - return getByAgentPoolWithResponseAsync(resourceGroupName, resourceName, agentPoolName, operationId, context) - .block(); - } - - /** - * Get the status of a specific operation in the specified agent pool. - * - * @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 operationId The ID of an ongoing async 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. - * @return the status of a specific operation in the specified agent pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public OperationStatusResultInner getByAgentPool(String resourceGroupName, String resourceName, - String agentPoolName, String operationId) { - return getByAgentPoolWithResponse(resourceGroupName, resourceName, agentPoolName, operationId, Context.NONE) - .getValue(); - } - - /** - * Gets a list of operations in the specified managedCluster - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 list of operations in the specified managedCluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list of operations in the specified managedCluster - * - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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. - * @return a list of operations in the specified managedCluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java index 10872033d4f9..263920fbe400 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java index 04a0025f82e8..d5a5145c61c0 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -472,7 +472,7 @@ private Mono> updateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java index 664be149f623..eba8732b418b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java index d1cd22b9ade5..d6b0cdc04983 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java index e25dfc633b7a..b9a0da4dc241 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java index 1d289676569c..f572b456aa31 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java index 3c5a35122796..63fffbc49034 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java +++ b/sdk/containerservice/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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-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 = "2025-09-02-preview"; + final String apiVersion = "2025-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AccelerationMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AccelerationMode.java deleted file mode 100644 index 117724b51d09..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AccelerationMode.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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; - -/** - * Enable advanced network acceleration options. This allows users to configure acceleration using BPF host routing. - * This can be enabled only with Cilium dataplane. If not specified, the default value is None (no acceleration). The - * acceleration mode can be changed on a pre-existing cluster. See https://aka.ms/acnsperformance for a detailed - * explanation. - */ -public final class AccelerationMode extends ExpandableStringEnum { - /** - * Static value BpfVeth for AccelerationMode. - */ - public static final AccelerationMode BPF_VETH = fromString("BpfVeth"); - - /** - * Static value None for AccelerationMode. - */ - public static final AccelerationMode NONE = fromString("None"); - - /** - * Creates a new instance of AccelerationMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AccelerationMode() { - } - - /** - * Creates or finds a AccelerationMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding AccelerationMode. - */ - public static AccelerationMode fromString(String name) { - return fromString(name, AccelerationMode.class); - } - - /** - * Gets known AccelerationMode values. - * - * @return known AccelerationMode values. - */ - public static Collection values() { - return values(AccelerationMode.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java deleted file mode 100644 index 003a808b9fe7..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. - */ -public final class AddonAutoscaling extends ExpandableStringEnum { - /** - * Static value Enabled for AddonAutoscaling. - */ - public static final AddonAutoscaling ENABLED = fromString("Enabled"); - - /** - * Static value Disabled for AddonAutoscaling. - */ - public static final AddonAutoscaling DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of AddonAutoscaling value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AddonAutoscaling() { - } - - /** - * Creates or finds a AddonAutoscaling from its string representation. - * - * @param name a name to look for. - * @return the corresponding AddonAutoscaling. - */ - public static AddonAutoscaling fromString(String name) { - return fromString(name, AddonAutoscaling.class); - } - - /** - * Gets known AddonAutoscaling values. - * - * @return known AddonAutoscaling values. - */ - public static Collection values() { - return values(AddonAutoscaling.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java index 5ec409247047..6132ead8e9b4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java @@ -30,15 +30,10 @@ public final class AdvancedNetworking implements JsonSerializable { - /* - * Enable advanced network acceleration options. This allows users to configure acceleration using BPF host routing. - * This can be enabled only with Cilium dataplane. If not specified, the default value is None (no acceleration). - * The acceleration mode can be changed on a pre-existing cluster. See https://aka.ms/acnsperformance for a detailed - * explanation - */ - private AccelerationMode accelerationMode; - - /** - * Creates an instance of AdvancedNetworkingPerformance class. - */ - public AdvancedNetworkingPerformance() { - } - - /** - * Get the accelerationMode property: Enable advanced network acceleration options. This allows users to configure - * acceleration using BPF host routing. This can be enabled only with Cilium dataplane. If not specified, the - * default value is None (no acceleration). The acceleration mode can be changed on a pre-existing cluster. See - * https://aka.ms/acnsperformance for a detailed explanation. - * - * @return the accelerationMode value. - */ - public AccelerationMode accelerationMode() { - return this.accelerationMode; - } - - /** - * Set the accelerationMode property: Enable advanced network acceleration options. This allows users to configure - * acceleration using BPF host routing. This can be enabled only with Cilium dataplane. If not specified, the - * default value is None (no acceleration). The acceleration mode can be changed on a pre-existing cluster. See - * https://aka.ms/acnsperformance for a detailed explanation. - * - * @param accelerationMode the accelerationMode value to set. - * @return the AdvancedNetworkingPerformance object itself. - */ - public AdvancedNetworkingPerformance withAccelerationMode(AccelerationMode accelerationMode) { - this.accelerationMode = accelerationMode; - 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("accelerationMode", - this.accelerationMode == null ? null : this.accelerationMode.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AdvancedNetworkingPerformance from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AdvancedNetworkingPerformance 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 AdvancedNetworkingPerformance. - */ - public static AdvancedNetworkingPerformance fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AdvancedNetworkingPerformance deserializedAdvancedNetworkingPerformance - = new AdvancedNetworkingPerformance(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("accelerationMode".equals(fieldName)) { - deserializedAdvancedNetworkingPerformance.accelerationMode - = AccelerationMode.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedAdvancedNetworkingPerformance; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java index 42fd5406cb01..58d38fe29209 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java @@ -12,13 +12,13 @@ import java.io.IOException; /** - * Security profile to enable security features on cilium-based cluster. + * Security profile to enable security features on cilium based cluster. */ @Fluent public final class AdvancedNetworkingSecurity implements JsonSerializable { /* - * Configure Advanced Networking Security features on Cilium clusters. See individual fields for their default - * values. + * 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; @@ -30,12 +30,6 @@ public final class AdvancedNetworkingSecurity implements JsonSerializable { - /* - * Configures pod-to-pod encryption. This can be enabled only on Cilium-based clusters. If not specified, the - * default value is None. - */ - private TransitEncryptionType type; - - /** - * Creates an instance of AdvancedNetworkingSecurityTransitEncryption class. - */ - public AdvancedNetworkingSecurityTransitEncryption() { - } - - /** - * Get the type property: Configures pod-to-pod encryption. This can be enabled only on Cilium-based clusters. If - * not specified, the default value is None. - * - * @return the type value. - */ - public TransitEncryptionType type() { - return this.type; - } - - /** - * Set the type property: Configures pod-to-pod encryption. This can be enabled only on Cilium-based clusters. If - * not specified, the default value is None. - * - * @param type the type value to set. - * @return the AdvancedNetworkingSecurityTransitEncryption object itself. - */ - public AdvancedNetworkingSecurityTransitEncryption withType(TransitEncryptionType type) { - this.type = type; - 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("type", this.type == null ? null : this.type.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AdvancedNetworkingSecurityTransitEncryption from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AdvancedNetworkingSecurityTransitEncryption 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 AdvancedNetworkingSecurityTransitEncryption. - */ - public static AdvancedNetworkingSecurityTransitEncryption fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AdvancedNetworkingSecurityTransitEncryption deserializedAdvancedNetworkingSecurityTransitEncryption - = new AdvancedNetworkingSecurityTransitEncryption(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("type".equals(fieldName)) { - deserializedAdvancedNetworkingSecurityTransitEncryption.type - = TransitEncryptionType.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedAdvancedNetworkingSecurityTransitEncryption; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolArtifactStreamingProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolArtifactStreamingProfile.java deleted file mode 100644 index 1032690e0cee..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolArtifactStreamingProfile.java +++ /dev/null @@ -1,99 +0,0 @@ -// 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; - -/** - * The AgentPoolArtifactStreamingProfile model. - */ -@Fluent -public final class AgentPoolArtifactStreamingProfile implements JsonSerializable { - /* - * Artifact streaming speeds up the cold-start of containers on a node through on-demand image loading. To use this - * feature, container images must also enable artifact streaming on ACR. If not specified, the default is false. - */ - private Boolean enabled; - - /** - * Creates an instance of AgentPoolArtifactStreamingProfile class. - */ - public AgentPoolArtifactStreamingProfile() { - } - - /** - * Get the enabled property: Artifact streaming speeds up the cold-start of containers on a node through on-demand - * image loading. To use this feature, container images must also enable artifact streaming on ACR. If not - * specified, the default is false. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Artifact streaming speeds up the cold-start of containers on a node through on-demand - * image loading. To use this feature, container images must also enable artifact streaming on ACR. If not - * specified, the default is false. - * - * @param enabled the enabled value to set. - * @return the AgentPoolArtifactStreamingProfile object itself. - */ - public AgentPoolArtifactStreamingProfile 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 AgentPoolArtifactStreamingProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AgentPoolArtifactStreamingProfile 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 AgentPoolArtifactStreamingProfile. - */ - public static AgentPoolArtifactStreamingProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AgentPoolArtifactStreamingProfile deserializedAgentPoolArtifactStreamingProfile - = new AgentPoolArtifactStreamingProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedAgentPoolArtifactStreamingProfile.enabled = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedAgentPoolArtifactStreamingProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java deleted file mode 100644 index 51259791e0db..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java +++ /dev/null @@ -1,210 +0,0 @@ -// 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; - -/** - * Settings for blue-green upgrade on an agentpool. - */ -@Fluent -public final class AgentPoolBlueGreenUpgradeSettings implements JsonSerializable { - /* - * The number or percentage of nodes to drain in batch during blue-green upgrade. Must be a non-zero number. This - * can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the - * percentage of the total number of blue nodes of the initial upgrade operation. For percentages, fractional nodes - * are rounded up. If not specified, the default is 10%. For more information, including best practices, see: - * https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster - */ - private String drainBatchSize; - - /* - * The drain timeout for a node, i.e., the amount of time (in minutes) to wait on eviction of pods and graceful - * termination per node. This eviction wait time honors waiting on pod disruption budgets. If this time is exceeded, - * the upgrade fails. If not specified, the default is 30 minutes. - */ - private Integer drainTimeoutInMinutes; - - /* - * The soak duration after draining a batch of nodes, i.e., the amount of time (in minutes) to wait after draining a - * batch of nodes before moving on the next batch. If not specified, the default is 15 minutes. - */ - private Integer batchSoakDurationInMinutes; - - /* - * The soak duration for a node pool, i.e., the amount of time (in minutes) to wait after all old nodes are drained - * before we remove the old nodes. If not specified, the default is 60 minutes. Only applicable for blue-green - * upgrade strategy. - */ - private Integer finalSoakDurationInMinutes; - - /** - * Creates an instance of AgentPoolBlueGreenUpgradeSettings class. - */ - public AgentPoolBlueGreenUpgradeSettings() { - } - - /** - * Get the drainBatchSize property: The number or percentage of nodes to drain in batch during blue-green upgrade. - * Must be a non-zero number. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a - * percentage is specified, it is the percentage of the total number of blue nodes of the initial upgrade operation. - * For percentages, fractional nodes are rounded up. If not specified, the default is 10%. For more information, - * including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster. - * - * @return the drainBatchSize value. - */ - public String drainBatchSize() { - return this.drainBatchSize; - } - - /** - * Set the drainBatchSize property: The number or percentage of nodes to drain in batch during blue-green upgrade. - * Must be a non-zero number. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a - * percentage is specified, it is the percentage of the total number of blue nodes of the initial upgrade operation. - * For percentages, fractional nodes are rounded up. If not specified, the default is 10%. For more information, - * including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster. - * - * @param drainBatchSize the drainBatchSize value to set. - * @return the AgentPoolBlueGreenUpgradeSettings object itself. - */ - public AgentPoolBlueGreenUpgradeSettings withDrainBatchSize(String drainBatchSize) { - this.drainBatchSize = drainBatchSize; - return this; - } - - /** - * Get the drainTimeoutInMinutes property: The drain timeout for a node, i.e., the amount of time (in minutes) to - * wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod - * disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. - * - * @return the drainTimeoutInMinutes value. - */ - public Integer drainTimeoutInMinutes() { - return this.drainTimeoutInMinutes; - } - - /** - * Set the drainTimeoutInMinutes property: The drain timeout for a node, i.e., the amount of time (in minutes) to - * wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod - * disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. - * - * @param drainTimeoutInMinutes the drainTimeoutInMinutes value to set. - * @return the AgentPoolBlueGreenUpgradeSettings object itself. - */ - public AgentPoolBlueGreenUpgradeSettings withDrainTimeoutInMinutes(Integer drainTimeoutInMinutes) { - this.drainTimeoutInMinutes = drainTimeoutInMinutes; - return this; - } - - /** - * Get the batchSoakDurationInMinutes property: The soak duration after draining a batch of nodes, i.e., the amount - * of time (in minutes) to wait after draining a batch of nodes before moving on the next batch. If not specified, - * the default is 15 minutes. - * - * @return the batchSoakDurationInMinutes value. - */ - public Integer batchSoakDurationInMinutes() { - return this.batchSoakDurationInMinutes; - } - - /** - * Set the batchSoakDurationInMinutes property: The soak duration after draining a batch of nodes, i.e., the amount - * of time (in minutes) to wait after draining a batch of nodes before moving on the next batch. If not specified, - * the default is 15 minutes. - * - * @param batchSoakDurationInMinutes the batchSoakDurationInMinutes value to set. - * @return the AgentPoolBlueGreenUpgradeSettings object itself. - */ - public AgentPoolBlueGreenUpgradeSettings withBatchSoakDurationInMinutes(Integer batchSoakDurationInMinutes) { - this.batchSoakDurationInMinutes = batchSoakDurationInMinutes; - return this; - } - - /** - * Get the finalSoakDurationInMinutes property: The soak duration for a node pool, i.e., the amount of time (in - * minutes) to wait after all old nodes are drained before we remove the old nodes. If not specified, the default is - * 60 minutes. Only applicable for blue-green upgrade strategy. - * - * @return the finalSoakDurationInMinutes value. - */ - public Integer finalSoakDurationInMinutes() { - return this.finalSoakDurationInMinutes; - } - - /** - * Set the finalSoakDurationInMinutes property: The soak duration for a node pool, i.e., the amount of time (in - * minutes) to wait after all old nodes are drained before we remove the old nodes. If not specified, the default is - * 60 minutes. Only applicable for blue-green upgrade strategy. - * - * @param finalSoakDurationInMinutes the finalSoakDurationInMinutes value to set. - * @return the AgentPoolBlueGreenUpgradeSettings object itself. - */ - public AgentPoolBlueGreenUpgradeSettings withFinalSoakDurationInMinutes(Integer finalSoakDurationInMinutes) { - this.finalSoakDurationInMinutes = finalSoakDurationInMinutes; - 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("drainBatchSize", this.drainBatchSize); - jsonWriter.writeNumberField("drainTimeoutInMinutes", this.drainTimeoutInMinutes); - jsonWriter.writeNumberField("batchSoakDurationInMinutes", this.batchSoakDurationInMinutes); - jsonWriter.writeNumberField("finalSoakDurationInMinutes", this.finalSoakDurationInMinutes); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AgentPoolBlueGreenUpgradeSettings from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AgentPoolBlueGreenUpgradeSettings 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 AgentPoolBlueGreenUpgradeSettings. - */ - public static AgentPoolBlueGreenUpgradeSettings fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AgentPoolBlueGreenUpgradeSettings deserializedAgentPoolBlueGreenUpgradeSettings - = new AgentPoolBlueGreenUpgradeSettings(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("drainBatchSize".equals(fieldName)) { - deserializedAgentPoolBlueGreenUpgradeSettings.drainBatchSize = reader.getString(); - } else if ("drainTimeoutInMinutes".equals(fieldName)) { - deserializedAgentPoolBlueGreenUpgradeSettings.drainTimeoutInMinutes - = reader.getNullable(JsonReader::getInt); - } else if ("batchSoakDurationInMinutes".equals(fieldName)) { - deserializedAgentPoolBlueGreenUpgradeSettings.batchSoakDurationInMinutes - = reader.getNullable(JsonReader::getInt); - } else if ("finalSoakDurationInMinutes".equals(fieldName)) { - deserializedAgentPoolBlueGreenUpgradeSettings.finalSoakDurationInMinutes - = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedAgentPoolBlueGreenUpgradeSettings; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java index 60058561ab80..a44247f5ca08 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java @@ -28,16 +28,6 @@ public final class AgentPoolMode extends ExpandableStringEnum { */ public static final AgentPoolMode GATEWAY = fromString("Gateway"); - /** - * Static value ManagedSystem for AgentPoolMode. - */ - public static final AgentPoolMode MANAGED_SYSTEM = fromString("ManagedSystem"); - - /** - * Static value Machines for AgentPoolMode. - */ - public static final AgentPoolMode MACHINES = fromString("Machines"); - /** * Creates a new instance of AgentPoolMode value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolRecentlyUsedVersion.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolRecentlyUsedVersion.java deleted file mode 100644 index 7ee6aef647c1..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolRecentlyUsedVersion.java +++ /dev/null @@ -1,154 +0,0 @@ -// 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.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; - -/** - * A historical version that can be used for rollback operations. - */ -@Fluent -public final class AgentPoolRecentlyUsedVersion implements JsonSerializable { - /* - * The Kubernetes version (major.minor.patch) available for rollback. - */ - private String orchestratorVersion; - - /* - * The node image version available for rollback. - */ - private String nodeImageVersion; - - /* - * The timestamp when this version was last used. - */ - private OffsetDateTime timestamp; - - /** - * Creates an instance of AgentPoolRecentlyUsedVersion class. - */ - public AgentPoolRecentlyUsedVersion() { - } - - /** - * Get the orchestratorVersion property: The Kubernetes version (major.minor.patch) available for rollback. - * - * @return the orchestratorVersion value. - */ - public String orchestratorVersion() { - return this.orchestratorVersion; - } - - /** - * Set the orchestratorVersion property: The Kubernetes version (major.minor.patch) available for rollback. - * - * @param orchestratorVersion the orchestratorVersion value to set. - * @return the AgentPoolRecentlyUsedVersion object itself. - */ - public AgentPoolRecentlyUsedVersion withOrchestratorVersion(String orchestratorVersion) { - this.orchestratorVersion = orchestratorVersion; - return this; - } - - /** - * Get the nodeImageVersion property: The node image version available for rollback. - * - * @return the nodeImageVersion value. - */ - public String nodeImageVersion() { - return this.nodeImageVersion; - } - - /** - * Set the nodeImageVersion property: The node image version available for rollback. - * - * @param nodeImageVersion the nodeImageVersion value to set. - * @return the AgentPoolRecentlyUsedVersion object itself. - */ - public AgentPoolRecentlyUsedVersion withNodeImageVersion(String nodeImageVersion) { - this.nodeImageVersion = nodeImageVersion; - return this; - } - - /** - * Get the timestamp property: The timestamp when this version was last used. - * - * @return the timestamp value. - */ - public OffsetDateTime timestamp() { - return this.timestamp; - } - - /** - * Set the timestamp property: The timestamp when this version was last used. - * - * @param timestamp the timestamp value to set. - * @return the AgentPoolRecentlyUsedVersion object itself. - */ - public AgentPoolRecentlyUsedVersion withTimestamp(OffsetDateTime timestamp) { - this.timestamp = timestamp; - 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("orchestratorVersion", this.orchestratorVersion); - jsonWriter.writeStringField("nodeImageVersion", this.nodeImageVersion); - jsonWriter.writeStringField("timestamp", - this.timestamp == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.timestamp)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AgentPoolRecentlyUsedVersion from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AgentPoolRecentlyUsedVersion 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 AgentPoolRecentlyUsedVersion. - */ - public static AgentPoolRecentlyUsedVersion fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AgentPoolRecentlyUsedVersion deserializedAgentPoolRecentlyUsedVersion = new AgentPoolRecentlyUsedVersion(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("orchestratorVersion".equals(fieldName)) { - deserializedAgentPoolRecentlyUsedVersion.orchestratorVersion = reader.getString(); - } else if ("nodeImageVersion".equals(fieldName)) { - deserializedAgentPoolRecentlyUsedVersion.nodeImageVersion = reader.getString(); - } else if ("timestamp".equals(fieldName)) { - deserializedAgentPoolRecentlyUsedVersion.timestamp = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else { - reader.skipChildren(); - } - } - - return deserializedAgentPoolRecentlyUsedVersion; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java index c4d2b0cfeb13..1402defe71c1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java @@ -16,11 +16,6 @@ */ @Fluent public final class AgentPoolSecurityProfile implements JsonSerializable { - /* - * SSH access method of an agent pool. - */ - private AgentPoolSshAccess sshAccess; - /* * vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys and measurements held locally * on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false. @@ -33,30 +28,15 @@ public final class AgentPoolSecurityProfile implements JsonSerializable { @@ -25,16 +25,6 @@ public final class AgentPoolUpgradeSettings implements JsonSerializable { - /* - * VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or - * 'Standard_D16s_v5'. - */ - private String size; - - /* - * The minimum number of nodes of the specified sizes. - */ - private Integer minCount; - - /* - * The maximum number of nodes of the specified sizes. - */ - private Integer maxCount; - - /** - * Creates an instance of AutoScaleProfile class. - */ - public AutoScaleProfile() { - } - - /** - * Get the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', - * 'Standard_E16s_v3' or 'Standard_D16s_v5'. - * - * @return the size value. - */ - public String size() { - return this.size; - } - - /** - * Set the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', - * 'Standard_E16s_v3' or 'Standard_D16s_v5'. - * - * @param size the size value to set. - * @return the AutoScaleProfile object itself. - */ - public AutoScaleProfile withSize(String size) { - this.size = size; - return this; - } - - /** - * Get the minCount property: The minimum number of nodes of the specified sizes. - * - * @return the minCount value. - */ - public Integer minCount() { - return this.minCount; - } - - /** - * Set the minCount property: The minimum number of nodes of the specified sizes. - * - * @param minCount the minCount value to set. - * @return the AutoScaleProfile object itself. - */ - public AutoScaleProfile withMinCount(Integer minCount) { - this.minCount = minCount; - return this; - } - - /** - * Get the maxCount property: The maximum number of nodes of the specified sizes. - * - * @return the maxCount value. - */ - public Integer maxCount() { - return this.maxCount; - } - - /** - * Set the maxCount property: The maximum number of nodes of the specified sizes. - * - * @param maxCount the maxCount value to set. - * @return the AutoScaleProfile object itself. - */ - public AutoScaleProfile withMaxCount(Integer maxCount) { - this.maxCount = maxCount; - 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("size", this.size); - jsonWriter.writeNumberField("minCount", this.minCount); - jsonWriter.writeNumberField("maxCount", this.maxCount); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AutoScaleProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AutoScaleProfile 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 AutoScaleProfile. - */ - public static AutoScaleProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AutoScaleProfile deserializedAutoScaleProfile = new AutoScaleProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedAutoScaleProfile.size = reader.getString(); - } else if ("minCount".equals(fieldName)) { - deserializedAutoScaleProfile.minCount = reader.getNullable(JsonReader::getInt); - } else if ("maxCount".equals(fieldName)) { - deserializedAutoScaleProfile.maxCount = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedAutoScaleProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java deleted file mode 100644 index 876040ab659a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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 health probing behavior for External Traffic Policy Cluster services. - */ -public final class ClusterServiceLoadBalancerHealthProbeMode - extends ExpandableStringEnum { - /** - * Static value ServiceNodePort for ClusterServiceLoadBalancerHealthProbeMode. - */ - public static final ClusterServiceLoadBalancerHealthProbeMode SERVICE_NODE_PORT = fromString("ServiceNodePort"); - - /** - * Static value Shared for ClusterServiceLoadBalancerHealthProbeMode. - */ - public static final ClusterServiceLoadBalancerHealthProbeMode SHARED = fromString("Shared"); - - /** - * Creates a new instance of ClusterServiceLoadBalancerHealthProbeMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ClusterServiceLoadBalancerHealthProbeMode() { - } - - /** - * Creates or finds a ClusterServiceLoadBalancerHealthProbeMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding ClusterServiceLoadBalancerHealthProbeMode. - */ - public static ClusterServiceLoadBalancerHealthProbeMode fromString(String name) { - return fromString(name, ClusterServiceLoadBalancerHealthProbeMode.class); - } - - /** - * Gets known ClusterServiceLoadBalancerHealthProbeMode values. - * - * @return known ClusterServiceLoadBalancerHealthProbeMode values. - */ - public static Collection values() { - return values(ClusterServiceLoadBalancerHealthProbeMode.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Component.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Component.java deleted file mode 100644 index 377392c379b5..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Component.java +++ /dev/null @@ -1,156 +0,0 @@ -// 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; - -/** - * The Component model. - */ -@Fluent -public final class Component implements JsonSerializable { - /* - * Component name. - */ - private String name; - - /* - * Component version. - */ - private String version; - - /* - * If upgraded component version contains breaking changes from the current version. To see a detailed description - * of what the breaking changes are, visit - * https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking- - * changes-by-version. - */ - private Boolean hasBreakingChanges; - - /** - * Creates an instance of Component class. - */ - public Component() { - } - - /** - * Get the name property: Component name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Component name. - * - * @param name the name value to set. - * @return the Component object itself. - */ - public Component withName(String name) { - this.name = name; - return this; - } - - /** - * Get the version property: Component version. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: Component version. - * - * @param version the version value to set. - * @return the Component object itself. - */ - public Component withVersion(String version) { - this.version = version; - return this; - } - - /** - * Get the hasBreakingChanges property: If upgraded component version contains breaking changes from the current - * version. To see a detailed description of what the breaking changes are, visit - * https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version. - * - * @return the hasBreakingChanges value. - */ - public Boolean hasBreakingChanges() { - return this.hasBreakingChanges; - } - - /** - * Set the hasBreakingChanges property: If upgraded component version contains breaking changes from the current - * version. To see a detailed description of what the breaking changes are, visit - * https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version. - * - * @param hasBreakingChanges the hasBreakingChanges value to set. - * @return the Component object itself. - */ - public Component withHasBreakingChanges(Boolean hasBreakingChanges) { - this.hasBreakingChanges = hasBreakingChanges; - 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("name", this.name); - jsonWriter.writeStringField("version", this.version); - jsonWriter.writeBooleanField("hasBreakingChanges", this.hasBreakingChanges); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of Component from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of Component 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 Component. - */ - public static Component fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - Component deserializedComponent = new Component(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedComponent.name = reader.getString(); - } else if ("version".equals(fieldName)) { - deserializedComponent.version = reader.getString(); - } else if ("hasBreakingChanges".equals(fieldName)) { - deserializedComponent.hasBreakingChanges = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedComponent; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java deleted file mode 100644 index 2c734e4fc3d2..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java +++ /dev/null @@ -1,126 +0,0 @@ -// 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; -import java.util.List; - -/** - * components of given Kubernetes version. - */ -@Fluent -public final class ComponentsByRelease implements JsonSerializable { - /* - * The Kubernetes version (major.minor). - */ - private String kubernetesVersion; - - /* - * components of current or upgraded Kubernetes version in the cluster. - */ - private List components; - - /** - * Creates an instance of ComponentsByRelease class. - */ - public ComponentsByRelease() { - } - - /** - * Get the kubernetesVersion property: The Kubernetes version (major.minor). - * - * @return the kubernetesVersion value. - */ - public String kubernetesVersion() { - return this.kubernetesVersion; - } - - /** - * Set the kubernetesVersion property: The Kubernetes version (major.minor). - * - * @param kubernetesVersion the kubernetesVersion value to set. - * @return the ComponentsByRelease object itself. - */ - public ComponentsByRelease withKubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = kubernetesVersion; - return this; - } - - /** - * Get the components property: components of current or upgraded Kubernetes version in the cluster. - * - * @return the components value. - */ - public List components() { - return this.components; - } - - /** - * Set the components property: components of current or upgraded Kubernetes version in the cluster. - * - * @param components the components value to set. - * @return the ComponentsByRelease object itself. - */ - public ComponentsByRelease withComponents(List components) { - this.components = components; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (components() != null) { - components().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); - jsonWriter.writeArrayField("components", this.components, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ComponentsByRelease from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ComponentsByRelease 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 ComponentsByRelease. - */ - public static ComponentsByRelease fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ComponentsByRelease deserializedComponentsByRelease = new ComponentsByRelease(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("kubernetesVersion".equals(fieldName)) { - deserializedComponentsByRelease.kubernetesVersion = reader.getString(); - } else if ("components".equals(fieldName)) { - List components = reader.readArray(reader1 -> Component.fromJson(reader1)); - deserializedComponentsByRelease.components = components; - } else { - reader.skipChildren(); - } - } - - return deserializedComponentsByRelease; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java index b9b13331df23..333f0bcc9ba8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java @@ -23,7 +23,7 @@ public final class ContainerServiceNetworkProfile implements JsonSerializable ipFamilies; - /* - * Defines access to special link local addresses (Azure Instance Metadata Service, aka IMDS) for pods with - * hostNetwork=false. if not specified, the default is 'IMDS'. - */ - private PodLinkLocalAccess podLinkLocalAccess; - - /* - * Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting - * behavior. See https://v.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where - * is represented by a - string. Kubernetes version 1.23 would be '1-23'. - */ - private ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig; - - /* - * Advanced Networking profile for enabling observability and security feature suite on a cluster. For more - * information see aka.ms/aksadvancednetworking. - */ - private AdvancedNetworking advancedNetworking; - /** * Creates an instance of ContainerServiceNetworkProfile class. */ @@ -154,7 +141,7 @@ public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlu } /** - * Get the networkPluginMode property: Network plugin mode used for building the Kubernetes network. + * Get the networkPluginMode property: The mode the network plugin should use. * * @return the networkPluginMode value. */ @@ -163,7 +150,7 @@ public NetworkPluginMode networkPluginMode() { } /** - * Set the networkPluginMode property: Network plugin mode used for building the Kubernetes network. + * Set the networkPluginMode property: The mode the network plugin should use. * * @param networkPluginMode the networkPluginMode value to set. * @return the ContainerServiceNetworkProfile object itself. @@ -235,6 +222,28 @@ public ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane netw return this; } + /** + * Get the advancedNetworking property: Advanced Networking profile for enabling observability and security feature + * suite on a cluster. For more information see aka.ms/aksadvancednetworking. + * + * @return the advancedNetworking value. + */ + public AdvancedNetworking advancedNetworking() { + return this.advancedNetworking; + } + + /** + * Set the advancedNetworking property: Advanced Networking profile for enabling observability and security feature + * suite on a cluster. For more information see aka.ms/aksadvancednetworking. + * + * @param advancedNetworking the advancedNetworking value to set. + * @return the ContainerServiceNetworkProfile object itself. + */ + public ContainerServiceNetworkProfile withAdvancedNetworking(AdvancedNetworking advancedNetworking) { + this.advancedNetworking = advancedNetworking; + return this; + } + /** * Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used. * @@ -483,85 +492,15 @@ public ContainerServiceNetworkProfile withIpFamilies(List ipFamilies) return this; } - /** - * Get the podLinkLocalAccess property: Defines access to special link local addresses (Azure Instance Metadata - * Service, aka IMDS) for pods with hostNetwork=false. if not specified, the default is 'IMDS'. - * - * @return the podLinkLocalAccess value. - */ - public PodLinkLocalAccess podLinkLocalAccess() { - return this.podLinkLocalAccess; - } - - /** - * Set the podLinkLocalAccess property: Defines access to special link local addresses (Azure Instance Metadata - * Service, aka IMDS) for pods with hostNetwork=false. if not specified, the default is 'IMDS'. - * - * @param podLinkLocalAccess the podLinkLocalAccess value to set. - * @return the ContainerServiceNetworkProfile object itself. - */ - public ContainerServiceNetworkProfile withPodLinkLocalAccess(PodLinkLocalAccess podLinkLocalAccess) { - this.podLinkLocalAccess = podLinkLocalAccess; - return this; - } - - /** - * Get the kubeProxyConfig property: Holds configuration customizations for kube-proxy. Any values not defined will - * use the kube-proxy defaulting behavior. See - * https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where - * <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 - * would be '1-23'. - * - * @return the kubeProxyConfig value. - */ - public ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig() { - return this.kubeProxyConfig; - } - - /** - * Set the kubeProxyConfig property: Holds configuration customizations for kube-proxy. Any values not defined will - * use the kube-proxy defaulting behavior. See - * https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where - * <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 - * would be '1-23'. - * - * @param kubeProxyConfig the kubeProxyConfig value to set. - * @return the ContainerServiceNetworkProfile object itself. - */ - public ContainerServiceNetworkProfile - withKubeProxyConfig(ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig) { - this.kubeProxyConfig = kubeProxyConfig; - return this; - } - - /** - * Get the advancedNetworking property: Advanced Networking profile for enabling observability and security feature - * suite on a cluster. For more information see aka.ms/aksadvancednetworking. - * - * @return the advancedNetworking value. - */ - public AdvancedNetworking advancedNetworking() { - return this.advancedNetworking; - } - - /** - * Set the advancedNetworking property: Advanced Networking profile for enabling observability and security feature - * suite on a cluster. For more information see aka.ms/aksadvancednetworking. - * - * @param advancedNetworking the advancedNetworking value to set. - * @return the ContainerServiceNetworkProfile object itself. - */ - public ContainerServiceNetworkProfile withAdvancedNetworking(AdvancedNetworking advancedNetworking) { - this.advancedNetworking = advancedNetworking; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (advancedNetworking() != null) { + advancedNetworking().validate(); + } if (loadBalancerProfile() != null) { loadBalancerProfile().validate(); } @@ -571,12 +510,6 @@ public void validate() { if (staticEgressGatewayProfile() != null) { staticEgressGatewayProfile().validate(); } - if (kubeProxyConfig() != null) { - kubeProxyConfig().validate(); - } - if (advancedNetworking() != null) { - advancedNetworking().validate(); - } } /** @@ -592,6 +525,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); @@ -605,10 +539,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("serviceCidrs", this.serviceCidrs, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("ipFamilies", this.ipFamilies, (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeStringField("podLinkLocalAccess", - this.podLinkLocalAccess == null ? null : this.podLinkLocalAccess.toString()); - jsonWriter.writeJsonField("kubeProxyConfig", this.kubeProxyConfig); - jsonWriter.writeJsonField("advancedNetworking", this.advancedNetworking); return jsonWriter.writeEndObject(); } @@ -642,6 +572,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)) { @@ -672,14 +604,6 @@ public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader) thr } else if ("ipFamilies".equals(fieldName)) { List ipFamilies = reader.readArray(reader1 -> IpFamily.fromString(reader1.getString())); deserializedContainerServiceNetworkProfile.ipFamilies = ipFamilies; - } else if ("podLinkLocalAccess".equals(fieldName)) { - deserializedContainerServiceNetworkProfile.podLinkLocalAccess - = PodLinkLocalAccess.fromString(reader.getString()); - } else if ("kubeProxyConfig".equals(fieldName)) { - deserializedContainerServiceNetworkProfile.kubeProxyConfig - = ContainerServiceNetworkProfileKubeProxyConfig.fromJson(reader); - } else if ("advancedNetworking".equals(fieldName)) { - deserializedContainerServiceNetworkProfile.advancedNetworking = AdvancedNetworking.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java deleted file mode 100644 index 17febf1880ab..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java +++ /dev/null @@ -1,166 +0,0 @@ -// 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; - -/** - * Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting - * behavior. See https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ - * where <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 - * would be '1-23'. - */ -@Fluent -public final class ContainerServiceNetworkProfileKubeProxyConfig - implements JsonSerializable { - /* - * Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, kube-proxy is enabled in AKS by - * default without these customizations). - */ - private Boolean enabled; - - /* - * Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES') - */ - private Mode mode; - - /* - * Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. - */ - private ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig; - - /** - * Creates an instance of ContainerServiceNetworkProfileKubeProxyConfig class. - */ - public ContainerServiceNetworkProfileKubeProxyConfig() { - } - - /** - * Get the enabled property: Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, - * kube-proxy is enabled in AKS by default without these customizations). - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, - * kube-proxy is enabled in AKS by default without these customizations). - * - * @param enabled the enabled value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfig withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the mode property: Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). - * - * @return the mode value. - */ - public Mode mode() { - return this.mode; - } - - /** - * Set the mode property: Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). - * - * @param mode the mode value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfig withMode(Mode mode) { - this.mode = mode; - return this; - } - - /** - * Get the ipvsConfig property: Holds configuration customizations for IPVS. May only be specified if 'mode' is set - * to 'IPVS'. - * - * @return the ipvsConfig value. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig() { - return this.ipvsConfig; - } - - /** - * Set the ipvsConfig property: Holds configuration customizations for IPVS. May only be specified if 'mode' is set - * to 'IPVS'. - * - * @param ipvsConfig the ipvsConfig value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfig - withIpvsConfig(ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig) { - this.ipvsConfig = ipvsConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ipvsConfig() != null) { - ipvsConfig().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("enabled", this.enabled); - jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); - jsonWriter.writeJsonField("ipvsConfig", this.ipvsConfig); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ContainerServiceNetworkProfileKubeProxyConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ContainerServiceNetworkProfileKubeProxyConfig 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 ContainerServiceNetworkProfileKubeProxyConfig. - */ - public static ContainerServiceNetworkProfileKubeProxyConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ContainerServiceNetworkProfileKubeProxyConfig deserializedContainerServiceNetworkProfileKubeProxyConfig - = new ContainerServiceNetworkProfileKubeProxyConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfig.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("mode".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfig.mode - = Mode.fromString(reader.getString()); - } else if ("ipvsConfig".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfig.ipvsConfig - = ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedContainerServiceNetworkProfileKubeProxyConfig; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java deleted file mode 100644 index 6a626ffea889..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java +++ /dev/null @@ -1,193 +0,0 @@ -// 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; - -/** - * Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. - */ -@Fluent -public final class ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - implements JsonSerializable { - /* - * IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. - */ - private IpvsScheduler scheduler; - - /* - * The timeout value used for idle IPVS TCP sessions in seconds. Must be a positive integer value. - */ - private Integer tcpTimeoutSeconds; - - /* - * The timeout value used for IPVS TCP sessions after receiving a FIN in seconds. Must be a positive integer value. - */ - private Integer tcpFinTimeoutSeconds; - - /* - * The timeout value used for IPVS UDP packets in seconds. Must be a positive integer value. - */ - private Integer udpTimeoutSeconds; - - /** - * Creates an instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig class. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig() { - } - - /** - * Get the scheduler property: IPVS scheduler, for more information please see - * http://www.linuxvirtualserver.org/docs/scheduling.html. - * - * @return the scheduler value. - */ - public IpvsScheduler scheduler() { - return this.scheduler; - } - - /** - * Set the scheduler property: IPVS scheduler, for more information please see - * http://www.linuxvirtualserver.org/docs/scheduling.html. - * - * @param scheduler the scheduler value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withScheduler(IpvsScheduler scheduler) { - this.scheduler = scheduler; - return this; - } - - /** - * Get the tcpTimeoutSeconds property: The timeout value used for idle IPVS TCP sessions in seconds. Must be a - * positive integer value. - * - * @return the tcpTimeoutSeconds value. - */ - public Integer tcpTimeoutSeconds() { - return this.tcpTimeoutSeconds; - } - - /** - * Set the tcpTimeoutSeconds property: The timeout value used for idle IPVS TCP sessions in seconds. Must be a - * positive integer value. - * - * @param tcpTimeoutSeconds the tcpTimeoutSeconds value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withTcpTimeoutSeconds(Integer tcpTimeoutSeconds) { - this.tcpTimeoutSeconds = tcpTimeoutSeconds; - return this; - } - - /** - * Get the tcpFinTimeoutSeconds property: The timeout value used for IPVS TCP sessions after receiving a FIN in - * seconds. Must be a positive integer value. - * - * @return the tcpFinTimeoutSeconds value. - */ - public Integer tcpFinTimeoutSeconds() { - return this.tcpFinTimeoutSeconds; - } - - /** - * Set the tcpFinTimeoutSeconds property: The timeout value used for IPVS TCP sessions after receiving a FIN in - * seconds. Must be a positive integer value. - * - * @param tcpFinTimeoutSeconds the tcpFinTimeoutSeconds value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - withTcpFinTimeoutSeconds(Integer tcpFinTimeoutSeconds) { - this.tcpFinTimeoutSeconds = tcpFinTimeoutSeconds; - return this; - } - - /** - * Get the udpTimeoutSeconds property: The timeout value used for IPVS UDP packets in seconds. Must be a positive - * integer value. - * - * @return the udpTimeoutSeconds value. - */ - public Integer udpTimeoutSeconds() { - return this.udpTimeoutSeconds; - } - - /** - * Set the udpTimeoutSeconds property: The timeout value used for IPVS UDP packets in seconds. Must be a positive - * integer value. - * - * @param udpTimeoutSeconds the udpTimeoutSeconds value to set. - * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. - */ - public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withUdpTimeoutSeconds(Integer udpTimeoutSeconds) { - this.udpTimeoutSeconds = udpTimeoutSeconds; - 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("scheduler", this.scheduler == null ? null : this.scheduler.toString()); - jsonWriter.writeNumberField("tcpTimeoutSeconds", this.tcpTimeoutSeconds); - jsonWriter.writeNumberField("tcpFinTimeoutSeconds", this.tcpFinTimeoutSeconds); - jsonWriter.writeNumberField("udpTimeoutSeconds", this.udpTimeoutSeconds); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig 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 ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig. - */ - public static ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig - = new ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("scheduler".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.scheduler - = IpvsScheduler.fromString(reader.getString()); - } else if ("tcpTimeoutSeconds".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.tcpTimeoutSeconds - = reader.getNullable(JsonReader::getInt); - } else if ("tcpFinTimeoutSeconds".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.tcpFinTimeoutSeconds - = reader.getNullable(JsonReader::getInt); - } else if ("udpTimeoutSeconds".equals(fieldName)) { - deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.udpTimeoutSeconds - = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java deleted file mode 100644 index 19e1aa682e34..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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 drift action of the machine. Indicates whether a machine has deviated from its expected state due to changes in - * managed cluster properties, requiring corrective action. - */ -public final class DriftAction extends ExpandableStringEnum { - /** - * Static value Synced for DriftAction. - */ - public static final DriftAction SYNCED = fromString("Synced"); - - /** - * Static value Recreate for DriftAction. - */ - public static final DriftAction RECREATE = fromString("Recreate"); - - /** - * Creates a new instance of DriftAction value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DriftAction() { - } - - /** - * Creates or finds a DriftAction from its string representation. - * - * @param name a name to look for. - * @return the corresponding DriftAction. - */ - public static DriftAction fromString(String name) { - return fromString(name, DriftAction.class); - } - - /** - * Gets known DriftAction values. - * - * @return known DriftAction values. - */ - public static Collection values() { - return values(DriftAction.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java deleted file mode 100644 index 0ab2856f2d4c..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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; - -/** - * Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the driver - * based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be set on - * Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility. - */ -public final class DriverType extends ExpandableStringEnum { - /** - * Static value GRID for DriverType. - */ - public static final DriverType GRID = fromString("GRID"); - - /** - * Static value CUDA for DriverType. - */ - public static final DriverType CUDA = fromString("CUDA"); - - /** - * Creates a new instance of DriverType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DriverType() { - } - - /** - * Creates or finds a DriverType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DriverType. - */ - public static DriverType fromString(String name) { - return fromString(name, DriverType.class); - } - - /** - * Gets known DriverType values. - * - * @return known DriverType values. - */ - public static Collection values() { - return values(DriverType.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java index 0c2abaef4d28..83dd030aabe6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * The GpuProfile model. + * GPU settings for the Agent Pool. */ @Fluent public final class GpuProfile implements JsonSerializable { @@ -21,13 +21,6 @@ public final class GpuProfile implements JsonSerializable { */ private GpuDriver driver; - /* - * Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the - * driver based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be - * set on Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility. - */ - private DriverType driverType; - /** * Creates an instance of GpuProfile class. */ @@ -54,32 +47,6 @@ public GpuProfile withDriver(GpuDriver driver) { return this; } - /** - * Get the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not - * provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has - * been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on - * system compatibility. - * - * @return the driverType value. - */ - public DriverType driverType() { - return this.driverType; - } - - /** - * Set the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not - * provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has - * been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on - * system compatibility. - * - * @param driverType the driverType value to set. - * @return the GpuProfile object itself. - */ - public GpuProfile withDriverType(DriverType driverType) { - this.driverType = driverType; - return this; - } - /** * Validates the instance. * @@ -95,7 +62,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("driver", this.driver == null ? null : this.driver.toString()); - jsonWriter.writeStringField("driverType", this.driverType == null ? null : this.driverType.toString()); return jsonWriter.writeEndObject(); } @@ -116,8 +82,6 @@ public static GpuProfile fromJson(JsonReader jsonReader) throws IOException { if ("driver".equals(fieldName)) { deserializedGpuProfile.driver = GpuDriver.fromString(reader.getString()); - } else if ("driverType".equals(fieldName)) { - deserializedGpuProfile.driverType = DriverType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsList.java deleted file mode 100644 index d1aa02d9846b..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsList.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; -import java.io.IOException; -import java.util.List; - -/** - * Hold values properties, which is array of GuardrailsVersions. - */ -@Fluent -public final class GuardrailsAvailableVersionsList implements JsonSerializable { - /* - * Array of AKS supported Guardrails versions. - */ - private List value; - - /* - * The URL to get the next Guardrails available version. - */ - private String nextLink; - - /** - * Creates an instance of GuardrailsAvailableVersionsList class. - */ - public GuardrailsAvailableVersionsList() { - } - - /** - * Get the value property: Array of AKS supported Guardrails versions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: Array of AKS supported Guardrails versions. - * - * @param value the value value to set. - * @return the GuardrailsAvailableVersionsList object itself. - */ - public GuardrailsAvailableVersionsList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next Guardrails available version. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of GuardrailsAvailableVersionsList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of GuardrailsAvailableVersionsList 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 GuardrailsAvailableVersionsList. - */ - public static GuardrailsAvailableVersionsList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - GuardrailsAvailableVersionsList deserializedGuardrailsAvailableVersionsList - = new GuardrailsAvailableVersionsList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> GuardrailsAvailableVersionInner.fromJson(reader1)); - deserializedGuardrailsAvailableVersionsList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedGuardrailsAvailableVersionsList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedGuardrailsAvailableVersionsList; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java deleted file mode 100644 index 11df96a784bb..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java +++ /dev/null @@ -1,101 +0,0 @@ -// 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.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Whether the version is default or not and support info. - */ -@Immutable -public final class GuardrailsAvailableVersionsProperties - implements JsonSerializable { - /* - * The isDefaultVersion property. - */ - private Boolean isDefaultVersion; - - /* - * Whether the version is preview or stable. - */ - private GuardrailsSupport support; - - /** - * Creates an instance of GuardrailsAvailableVersionsProperties class. - */ - public GuardrailsAvailableVersionsProperties() { - } - - /** - * Get the isDefaultVersion property: The isDefaultVersion property. - * - * @return the isDefaultVersion value. - */ - public Boolean isDefaultVersion() { - return this.isDefaultVersion; - } - - /** - * Get the support property: Whether the version is preview or stable. - * - * @return the support value. - */ - public GuardrailsSupport support() { - return this.support; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of GuardrailsAvailableVersionsProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of GuardrailsAvailableVersionsProperties 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 GuardrailsAvailableVersionsProperties. - */ - public static GuardrailsAvailableVersionsProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - GuardrailsAvailableVersionsProperties deserializedGuardrailsAvailableVersionsProperties - = new GuardrailsAvailableVersionsProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("isDefaultVersion".equals(fieldName)) { - deserializedGuardrailsAvailableVersionsProperties.isDefaultVersion - = reader.getNullable(JsonReader::getBoolean); - } else if ("support".equals(fieldName)) { - deserializedGuardrailsAvailableVersionsProperties.support - = GuardrailsSupport.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedGuardrailsAvailableVersionsProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java deleted file mode 100644 index bdd969c4bfc0..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Whether the version is preview or stable. - */ -public final class GuardrailsSupport extends ExpandableStringEnum { - /** - * Static value Preview for GuardrailsSupport. - */ - public static final GuardrailsSupport PREVIEW = fromString("Preview"); - - /** - * Static value Stable for GuardrailsSupport. - */ - public static final GuardrailsSupport STABLE = fromString("Stable"); - - /** - * Creates a new instance of GuardrailsSupport value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public GuardrailsSupport() { - } - - /** - * Creates or finds a GuardrailsSupport from its string representation. - * - * @param name a name to look for. - * @return the corresponding GuardrailsSupport. - */ - public static GuardrailsSupport fromString(String name) { - return fromString(name, GuardrailsSupport.class); - } - - /** - * Gets known GuardrailsSupport values. - * - * @return known GuardrailsSupport values. - */ - public static Collection values() { - return values(GuardrailsSupport.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingListResult.java deleted file mode 100644 index 974a7b23f9ad..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingListResult.java +++ /dev/null @@ -1,136 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.fluent.models.IdentityBindingInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a IdentityBinding list operation. - */ -@Fluent -public final class IdentityBindingListResult implements JsonSerializable { - /* - * The IdentityBinding items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of IdentityBindingListResult class. - */ - public IdentityBindingListResult() { - } - - /** - * Get the value property: The IdentityBinding items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The IdentityBinding items on this page. - * - * @param value the value value to set. - * @return the IdentityBindingListResult object itself. - */ - public IdentityBindingListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the IdentityBindingListResult object itself. - */ - public IdentityBindingListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property value in model IdentityBindingListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IdentityBindingListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IdentityBindingListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IdentityBindingListResult if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IdentityBindingListResult. - */ - public static IdentityBindingListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IdentityBindingListResult deserializedIdentityBindingListResult = new IdentityBindingListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> IdentityBindingInner.fromJson(reader1)); - deserializedIdentityBindingListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedIdentityBindingListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIdentityBindingListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingManagedIdentityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingManagedIdentityProfile.java deleted file mode 100644 index 5171bc2b615f..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingManagedIdentityProfile.java +++ /dev/null @@ -1,152 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Managed identity profile for the identity binding. - */ -@Fluent -public final class IdentityBindingManagedIdentityProfile - implements JsonSerializable { - /* - * The resource ID of the managed identity. - */ - private String resourceId; - - /* - * The object ID of the managed identity. - */ - private String objectId; - - /* - * The client ID of the managed identity. - */ - private String clientId; - - /* - * The tenant ID of the managed identity. - */ - private String tenantId; - - /** - * Creates an instance of IdentityBindingManagedIdentityProfile class. - */ - public IdentityBindingManagedIdentityProfile() { - } - - /** - * Get the resourceId property: The resource ID of the managed identity. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: The resource ID of the managed identity. - * - * @param resourceId the resourceId value to set. - * @return the IdentityBindingManagedIdentityProfile object itself. - */ - public IdentityBindingManagedIdentityProfile withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the objectId property: The object ID of the managed identity. - * - * @return the objectId value. - */ - public String objectId() { - return this.objectId; - } - - /** - * Get the clientId property: The client ID of the managed identity. - * - * @return the clientId value. - */ - public String clientId() { - return this.clientId; - } - - /** - * Get the tenantId property: The tenant ID of the managed identity. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (resourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property resourceId in model IdentityBindingManagedIdentityProfile")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IdentityBindingManagedIdentityProfile.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", this.resourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IdentityBindingManagedIdentityProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IdentityBindingManagedIdentityProfile if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IdentityBindingManagedIdentityProfile. - */ - public static IdentityBindingManagedIdentityProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IdentityBindingManagedIdentityProfile deserializedIdentityBindingManagedIdentityProfile - = new IdentityBindingManagedIdentityProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedIdentityBindingManagedIdentityProfile.resourceId = reader.getString(); - } else if ("objectId".equals(fieldName)) { - deserializedIdentityBindingManagedIdentityProfile.objectId = reader.getString(); - } else if ("clientId".equals(fieldName)) { - deserializedIdentityBindingManagedIdentityProfile.clientId = reader.getString(); - } else if ("tenantId".equals(fieldName)) { - deserializedIdentityBindingManagedIdentityProfile.tenantId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIdentityBindingManagedIdentityProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingOidcIssuerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingOidcIssuerProfile.java deleted file mode 100644 index 12ad4215b8f6..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingOidcIssuerProfile.java +++ /dev/null @@ -1,82 +0,0 @@ -// 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.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * IdentityBinding OIDC issuer profile. - */ -@Immutable -public final class IdentityBindingOidcIssuerProfile implements JsonSerializable { - /* - * The OIDC issuer URL of the IdentityBinding. - */ - private String oidcIssuerUrl; - - /** - * Creates an instance of IdentityBindingOidcIssuerProfile class. - */ - public IdentityBindingOidcIssuerProfile() { - } - - /** - * Get the oidcIssuerUrl property: The OIDC issuer URL of the IdentityBinding. - * - * @return the oidcIssuerUrl value. - */ - public String oidcIssuerUrl() { - return this.oidcIssuerUrl; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IdentityBindingOidcIssuerProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IdentityBindingOidcIssuerProfile 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 IdentityBindingOidcIssuerProfile. - */ - public static IdentityBindingOidcIssuerProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IdentityBindingOidcIssuerProfile deserializedIdentityBindingOidcIssuerProfile - = new IdentityBindingOidcIssuerProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("oidcIssuerUrl".equals(fieldName)) { - deserializedIdentityBindingOidcIssuerProfile.oidcIssuerUrl = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedIdentityBindingOidcIssuerProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java deleted file mode 100644 index e10fa1bce2cc..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java +++ /dev/null @@ -1,142 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * IdentityBinding properties. - */ -@Fluent -public final class IdentityBindingProperties implements JsonSerializable { - /* - * Managed identity profile for the identity binding. - */ - private IdentityBindingManagedIdentityProfile managedIdentity; - - /* - * The OIDC issuer URL of the IdentityBinding. - */ - private IdentityBindingOidcIssuerProfile oidcIssuer; - - /* - * The status of the last operation. - */ - private IdentityBindingProvisioningState provisioningState; - - /** - * Creates an instance of IdentityBindingProperties class. - */ - public IdentityBindingProperties() { - } - - /** - * Get the managedIdentity property: Managed identity profile for the identity binding. - * - * @return the managedIdentity value. - */ - public IdentityBindingManagedIdentityProfile managedIdentity() { - return this.managedIdentity; - } - - /** - * Set the managedIdentity property: Managed identity profile for the identity binding. - * - * @param managedIdentity the managedIdentity value to set. - * @return the IdentityBindingProperties object itself. - */ - public IdentityBindingProperties withManagedIdentity(IdentityBindingManagedIdentityProfile managedIdentity) { - this.managedIdentity = managedIdentity; - return this; - } - - /** - * Get the oidcIssuer property: The OIDC issuer URL of the IdentityBinding. - * - * @return the oidcIssuer value. - */ - public IdentityBindingOidcIssuerProfile oidcIssuer() { - return this.oidcIssuer; - } - - /** - * Get the provisioningState property: The status of the last operation. - * - * @return the provisioningState value. - */ - public IdentityBindingProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (managedIdentity() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property managedIdentity in model IdentityBindingProperties")); - } else { - managedIdentity().validate(); - } - if (oidcIssuer() != null) { - oidcIssuer().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(IdentityBindingProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("managedIdentity", this.managedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IdentityBindingProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IdentityBindingProperties if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the IdentityBindingProperties. - */ - public static IdentityBindingProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IdentityBindingProperties deserializedIdentityBindingProperties = new IdentityBindingProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("managedIdentity".equals(fieldName)) { - deserializedIdentityBindingProperties.managedIdentity - = IdentityBindingManagedIdentityProfile.fromJson(reader); - } else if ("oidcIssuer".equals(fieldName)) { - deserializedIdentityBindingProperties.oidcIssuer - = IdentityBindingOidcIssuerProfile.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedIdentityBindingProperties.provisioningState - = IdentityBindingProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedIdentityBindingProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProvisioningState.java deleted file mode 100644 index 5f5494ac523c..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProvisioningState.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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 provisioning state of the last accepted operation. - */ -public final class IdentityBindingProvisioningState extends ExpandableStringEnum { - /** - * Static value Succeeded for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Canceled for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState CANCELED = fromString("Canceled"); - - /** - * Static value Creating for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Updating for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for IdentityBindingProvisioningState. - */ - public static final IdentityBindingProvisioningState DELETING = fromString("Deleting"); - - /** - * Creates a new instance of IdentityBindingProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public IdentityBindingProvisioningState() { - } - - /** - * Creates or finds a IdentityBindingProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding IdentityBindingProvisioningState. - */ - public static IdentityBindingProvisioningState fromString(String name) { - return fromString(name, IdentityBindingProvisioningState.class); - } - - /** - * Gets known IdentityBindingProvisioningState values. - * - * @return known IdentityBindingProvisioningState values. - */ - public static Collection values() { - return values(IdentityBindingProvisioningState.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/InfrastructureEncryption.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/InfrastructureEncryption.java deleted file mode 100644 index c92e56b6341e..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/InfrastructureEncryption.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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; - -/** - * Whether to enable encryption at rest of Kubernetes resource objects using service-managed keys. More information on - * this can be found under https://aka.ms/aks/kubernetesResourceObjectEncryption. - */ -public final class InfrastructureEncryption extends ExpandableStringEnum { - /** - * Static value Enabled for InfrastructureEncryption. - */ - public static final InfrastructureEncryption ENABLED = fromString("Enabled"); - - /** - * Static value Disabled for InfrastructureEncryption. - */ - public static final InfrastructureEncryption DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of InfrastructureEncryption value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public InfrastructureEncryption() { - } - - /** - * Creates or finds a InfrastructureEncryption from its string representation. - * - * @param name a name to look for. - * @return the corresponding InfrastructureEncryption. - */ - public static InfrastructureEncryption fromString(String name) { - return fromString(name, InfrastructureEncryption.class); - } - - /** - * Gets known InfrastructureEncryption values. - * - * @return known InfrastructureEncryption values. - */ - public static Collection values() { - return values(InfrastructureEncryption.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java index e780c371e177..60e8215db582 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * To determine if address belongs IPv4 or IPv6 family. + * The IP version to use for cluster networking and IP assignment. */ public final class IpFamily extends ExpandableStringEnum { /** diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java deleted file mode 100644 index 34ecb3f572ba..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. - */ -public final class IpvsScheduler extends ExpandableStringEnum { - /** - * Static value RoundRobin for IpvsScheduler. - */ - public static final IpvsScheduler ROUND_ROBIN = fromString("RoundRobin"); - - /** - * Static value LeastConnection for IpvsScheduler. - */ - public static final IpvsScheduler LEAST_CONNECTION = fromString("LeastConnection"); - - /** - * Creates a new instance of IpvsScheduler value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public IpvsScheduler() { - } - - /** - * Creates or finds a IpvsScheduler from its string representation. - * - * @param name a name to look for. - * @return the corresponding IpvsScheduler. - */ - public static IpvsScheduler fromString(String name) { - return fromString(name, IpvsScheduler.class); - } - - /** - * Gets known IpvsScheduler values. - * - * @return known IpvsScheduler values. - */ - public static Collection values() { - return values(IpvsScheduler.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java index d43de4400145..0dc7eb7ddb66 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java @@ -27,11 +27,6 @@ public final class IstioComponents implements JsonSerializable */ private List egressGateways; - /* - * Mode of traffic redirection. - */ - private ProxyRedirectionMechanism proxyRedirectionMechanism; - /** * Creates an instance of IstioComponents class. */ @@ -78,26 +73,6 @@ public IstioComponents withEgressGateways(List egressGateway return this; } - /** - * Get the proxyRedirectionMechanism property: Mode of traffic redirection. - * - * @return the proxyRedirectionMechanism value. - */ - public ProxyRedirectionMechanism proxyRedirectionMechanism() { - return this.proxyRedirectionMechanism; - } - - /** - * Set the proxyRedirectionMechanism property: Mode of traffic redirection. - * - * @param proxyRedirectionMechanism the proxyRedirectionMechanism value to set. - * @return the IstioComponents object itself. - */ - public IstioComponents withProxyRedirectionMechanism(ProxyRedirectionMechanism proxyRedirectionMechanism) { - this.proxyRedirectionMechanism = proxyRedirectionMechanism; - return this; - } - /** * Validates the instance. * @@ -122,8 +97,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("egressGateways", this.egressGateways, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("proxyRedirectionMechanism", - this.proxyRedirectionMechanism == null ? null : this.proxyRedirectionMechanism.toString()); return jsonWriter.writeEndObject(); } @@ -150,9 +123,6 @@ public static IstioComponents fromJson(JsonReader jsonReader) throws IOException List egressGateways = reader.readArray(reader1 -> IstioEgressGateway.fromJson(reader1)); deserializedIstioComponents.egressGateways = egressGateways; - } else if ("proxyRedirectionMechanism".equals(fieldName)) { - deserializedIstioComponents.proxyRedirectionMechanism - = ProxyRedirectionMechanism.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappingExpression.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappingExpression.java deleted file mode 100644 index e4d10995f864..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappingExpression.java +++ /dev/null @@ -1,104 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The claim mapping expression for JWTAuthenticator. - */ -@Fluent -public final class JwtAuthenticatorClaimMappingExpression - implements JsonSerializable { - /* - * The CEL expression used to access token claims. - */ - private String expression; - - /** - * Creates an instance of JwtAuthenticatorClaimMappingExpression class. - */ - public JwtAuthenticatorClaimMappingExpression() { - } - - /** - * Get the expression property: The CEL expression used to access token claims. - * - * @return the expression value. - */ - public String expression() { - return this.expression; - } - - /** - * Set the expression property: The CEL expression used to access token claims. - * - * @param expression the expression value to set. - * @return the JwtAuthenticatorClaimMappingExpression object itself. - */ - public JwtAuthenticatorClaimMappingExpression withExpression(String expression) { - this.expression = expression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property expression in model JwtAuthenticatorClaimMappingExpression")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorClaimMappingExpression.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("expression", this.expression); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorClaimMappingExpression from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorClaimMappingExpression if the JsonReader was pointing to an instance of - * it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorClaimMappingExpression. - */ - public static JwtAuthenticatorClaimMappingExpression fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorClaimMappingExpression deserializedJwtAuthenticatorClaimMappingExpression - = new JwtAuthenticatorClaimMappingExpression(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("expression".equals(fieldName)) { - deserializedJwtAuthenticatorClaimMappingExpression.expression = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorClaimMappingExpression; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappings.java deleted file mode 100644 index b1239568bd8c..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorClaimMappings.java +++ /dev/null @@ -1,213 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The claim mappings for JWTAuthenticator. - */ -@Fluent -public final class JwtAuthenticatorClaimMappings implements JsonSerializable { - /* - * The expression to extract username attribute from the token claims. - */ - private JwtAuthenticatorClaimMappingExpression username; - - /* - * The expression to extract groups attribute from the token claims. When not provided, no groups are extracted from - * the token claims. - */ - private JwtAuthenticatorClaimMappingExpression groups; - - /* - * The expression to extract uid attribute from the token claims. When not provided, no uid is extracted from the - * token claims. - */ - private JwtAuthenticatorClaimMappingExpression uid; - - /* - * The expression to extract extra attribute from the token claims. When not provided, no extra attributes are - * extracted from the token claims. - */ - private List extra; - - /** - * Creates an instance of JwtAuthenticatorClaimMappings class. - */ - public JwtAuthenticatorClaimMappings() { - } - - /** - * Get the username property: The expression to extract username attribute from the token claims. - * - * @return the username value. - */ - public JwtAuthenticatorClaimMappingExpression username() { - return this.username; - } - - /** - * Set the username property: The expression to extract username attribute from the token claims. - * - * @param username the username value to set. - * @return the JwtAuthenticatorClaimMappings object itself. - */ - public JwtAuthenticatorClaimMappings withUsername(JwtAuthenticatorClaimMappingExpression username) { - this.username = username; - return this; - } - - /** - * Get the groups property: The expression to extract groups attribute from the token claims. When not provided, no - * groups are extracted from the token claims. - * - * @return the groups value. - */ - public JwtAuthenticatorClaimMappingExpression groups() { - return this.groups; - } - - /** - * Set the groups property: The expression to extract groups attribute from the token claims. When not provided, no - * groups are extracted from the token claims. - * - * @param groups the groups value to set. - * @return the JwtAuthenticatorClaimMappings object itself. - */ - public JwtAuthenticatorClaimMappings withGroups(JwtAuthenticatorClaimMappingExpression groups) { - this.groups = groups; - return this; - } - - /** - * Get the uid property: The expression to extract uid attribute from the token claims. When not provided, no uid is - * extracted from the token claims. - * - * @return the uid value. - */ - public JwtAuthenticatorClaimMappingExpression uid() { - return this.uid; - } - - /** - * Set the uid property: The expression to extract uid attribute from the token claims. When not provided, no uid is - * extracted from the token claims. - * - * @param uid the uid value to set. - * @return the JwtAuthenticatorClaimMappings object itself. - */ - public JwtAuthenticatorClaimMappings withUid(JwtAuthenticatorClaimMappingExpression uid) { - this.uid = uid; - return this; - } - - /** - * Get the extra property: The expression to extract extra attribute from the token claims. When not provided, no - * extra attributes are extracted from the token claims. - * - * @return the extra value. - */ - public List extra() { - return this.extra; - } - - /** - * Set the extra property: The expression to extract extra attribute from the token claims. When not provided, no - * extra attributes are extracted from the token claims. - * - * @param extra the extra value to set. - * @return the JwtAuthenticatorClaimMappings object itself. - */ - public JwtAuthenticatorClaimMappings withExtra(List extra) { - this.extra = extra; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (username() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property username in model JwtAuthenticatorClaimMappings")); - } else { - username().validate(); - } - if (groups() != null) { - groups().validate(); - } - if (uid() != null) { - uid().validate(); - } - if (extra() != null) { - extra().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorClaimMappings.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("username", this.username); - jsonWriter.writeJsonField("groups", this.groups); - jsonWriter.writeJsonField("uid", this.uid); - jsonWriter.writeArrayField("extra", this.extra, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorClaimMappings from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorClaimMappings if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorClaimMappings. - */ - public static JwtAuthenticatorClaimMappings fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorClaimMappings deserializedJwtAuthenticatorClaimMappings - = new JwtAuthenticatorClaimMappings(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("username".equals(fieldName)) { - deserializedJwtAuthenticatorClaimMappings.username - = JwtAuthenticatorClaimMappingExpression.fromJson(reader); - } else if ("groups".equals(fieldName)) { - deserializedJwtAuthenticatorClaimMappings.groups - = JwtAuthenticatorClaimMappingExpression.fromJson(reader); - } else if ("uid".equals(fieldName)) { - deserializedJwtAuthenticatorClaimMappings.uid - = JwtAuthenticatorClaimMappingExpression.fromJson(reader); - } else if ("extra".equals(fieldName)) { - List extra - = reader.readArray(reader1 -> JwtAuthenticatorExtraClaimMappingExpression.fromJson(reader1)); - deserializedJwtAuthenticatorClaimMappings.extra = extra; - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorClaimMappings; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorExtraClaimMappingExpression.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorExtraClaimMappingExpression.java deleted file mode 100644 index bdccfe69d44b..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorExtraClaimMappingExpression.java +++ /dev/null @@ -1,137 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The extra claim mapping expression for JWTAuthenticator. - */ -@Fluent -public final class JwtAuthenticatorExtraClaimMappingExpression - implements JsonSerializable { - /* - * The key of the extra attribute. - */ - private String key; - - /* - * The CEL expression used to extract the value of the extra attribute. - */ - private String valueExpression; - - /** - * Creates an instance of JwtAuthenticatorExtraClaimMappingExpression class. - */ - public JwtAuthenticatorExtraClaimMappingExpression() { - } - - /** - * Get the key property: The key of the extra attribute. - * - * @return the key value. - */ - public String key() { - return this.key; - } - - /** - * Set the key property: The key of the extra attribute. - * - * @param key the key value to set. - * @return the JwtAuthenticatorExtraClaimMappingExpression object itself. - */ - public JwtAuthenticatorExtraClaimMappingExpression withKey(String key) { - this.key = key; - return this; - } - - /** - * Get the valueExpression property: The CEL expression used to extract the value of the extra attribute. - * - * @return the valueExpression value. - */ - public String valueExpression() { - return this.valueExpression; - } - - /** - * Set the valueExpression property: The CEL expression used to extract the value of the extra attribute. - * - * @param valueExpression the valueExpression value to set. - * @return the JwtAuthenticatorExtraClaimMappingExpression object itself. - */ - public JwtAuthenticatorExtraClaimMappingExpression withValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (key() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property key in model JwtAuthenticatorExtraClaimMappingExpression")); - } - if (valueExpression() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property valueExpression in model JwtAuthenticatorExtraClaimMappingExpression")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorExtraClaimMappingExpression.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("key", this.key); - jsonWriter.writeStringField("valueExpression", this.valueExpression); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorExtraClaimMappingExpression from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorExtraClaimMappingExpression if the JsonReader was pointing to an instance - * of it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorExtraClaimMappingExpression. - */ - public static JwtAuthenticatorExtraClaimMappingExpression fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorExtraClaimMappingExpression deserializedJwtAuthenticatorExtraClaimMappingExpression - = new JwtAuthenticatorExtraClaimMappingExpression(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("key".equals(fieldName)) { - deserializedJwtAuthenticatorExtraClaimMappingExpression.key = reader.getString(); - } else if ("valueExpression".equals(fieldName)) { - deserializedJwtAuthenticatorExtraClaimMappingExpression.valueExpression = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorExtraClaimMappingExpression; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorIssuer.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorIssuer.java deleted file mode 100644 index eb38b0dd43e9..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorIssuer.java +++ /dev/null @@ -1,142 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The OIDC issuer details for JWTAuthenticator. - */ -@Fluent -public final class JwtAuthenticatorIssuer implements JsonSerializable { - /* - * The issuer URL. The URL must begin with the scheme https and cannot contain a query string or fragment. This must - * match the "iss" claim in the presented JWT, and the issuer returned from discovery. - */ - private String url; - - /* - * The set of acceptable audiences the JWT must be issued to. At least one is required. When multiple is set, - * AudienceMatchPolicy is used in API Server configuration. - */ - private List audiences; - - /** - * Creates an instance of JwtAuthenticatorIssuer class. - */ - public JwtAuthenticatorIssuer() { - } - - /** - * Get the url property: The issuer URL. The URL must begin with the scheme https and cannot contain a query string - * or fragment. This must match the "iss" claim in the presented JWT, and the issuer returned from discovery. - * - * @return the url value. - */ - public String url() { - return this.url; - } - - /** - * Set the url property: The issuer URL. The URL must begin with the scheme https and cannot contain a query string - * or fragment. This must match the "iss" claim in the presented JWT, and the issuer returned from discovery. - * - * @param url the url value to set. - * @return the JwtAuthenticatorIssuer object itself. - */ - public JwtAuthenticatorIssuer withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the audiences property: The set of acceptable audiences the JWT must be issued to. At least one is required. - * When multiple is set, AudienceMatchPolicy is used in API Server configuration. - * - * @return the audiences value. - */ - public List audiences() { - return this.audiences; - } - - /** - * Set the audiences property: The set of acceptable audiences the JWT must be issued to. At least one is required. - * When multiple is set, AudienceMatchPolicy is used in API Server configuration. - * - * @param audiences the audiences value to set. - * @return the JwtAuthenticatorIssuer object itself. - */ - public JwtAuthenticatorIssuer withAudiences(List audiences) { - this.audiences = audiences; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property url in model JwtAuthenticatorIssuer")); - } - if (audiences() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property audiences in model JwtAuthenticatorIssuer")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorIssuer.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("url", this.url); - jsonWriter.writeArrayField("audiences", this.audiences, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorIssuer from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorIssuer if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorIssuer. - */ - public static JwtAuthenticatorIssuer fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorIssuer deserializedJwtAuthenticatorIssuer = new JwtAuthenticatorIssuer(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("url".equals(fieldName)) { - deserializedJwtAuthenticatorIssuer.url = reader.getString(); - } else if ("audiences".equals(fieldName)) { - List audiences = reader.readArray(reader1 -> reader1.getString()); - deserializedJwtAuthenticatorIssuer.audiences = audiences; - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorIssuer; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorListResult.java deleted file mode 100644 index 2a5077ab9566..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorListResult.java +++ /dev/null @@ -1,124 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.fluent.models.JwtAuthenticatorInner; -import java.io.IOException; -import java.util.List; - -/** - * The response from the List JWT authenticator operation. - */ -@Fluent -public final class JwtAuthenticatorListResult implements JsonSerializable { - /* - * The list of JWT authenticators. - */ - private List value; - - /* - * The URL to get the next set of JWT authenticator results. - */ - private String nextLink; - - /** - * Creates an instance of JwtAuthenticatorListResult class. - */ - public JwtAuthenticatorListResult() { - } - - /** - * Get the value property: The list of JWT authenticators. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of JWT authenticators. - * - * @param value the value value to set. - * @return the JwtAuthenticatorListResult object itself. - */ - public JwtAuthenticatorListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of JWT authenticator results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model JwtAuthenticatorListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorListResult if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorListResult. - */ - public static JwtAuthenticatorListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorListResult deserializedJwtAuthenticatorListResult = new JwtAuthenticatorListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> JwtAuthenticatorInner.fromJson(reader1)); - deserializedJwtAuthenticatorListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedJwtAuthenticatorListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProperties.java deleted file mode 100644 index 7d36f2acf2c4..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProperties.java +++ /dev/null @@ -1,238 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The properties of JWTAuthenticator. For details on how to configure the properties of a JWT authenticator, please - * refer to the Kubernetes documentation: - * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. Please - * note that not all fields available in the Kubernetes documentation are supported by AKS. For troubleshooting, please - * see https://aka.ms/aks-external-issuers-docs. - */ -@Fluent -public final class JwtAuthenticatorProperties implements JsonSerializable { - /* - * The current provisioning state of the JWT authenticator. - */ - private JwtAuthenticatorProvisioningState provisioningState; - - /* - * The JWT OIDC issuer details. - */ - private JwtAuthenticatorIssuer issuer; - - /* - * The rules that are applied to validate token claims to authenticate users. All the expressions must evaluate to - * true for validation to succeed. - */ - private List claimValidationRules; - - /* - * The mappings that define how user attributes are extracted from the token claims. - */ - private JwtAuthenticatorClaimMappings claimMappings; - - /* - * The rules that are applied to the mapped user before completing authentication. All the expressions must evaluate - * to true for validation to succeed. - */ - private List userValidationRules; - - /** - * Creates an instance of JwtAuthenticatorProperties class. - */ - public JwtAuthenticatorProperties() { - } - - /** - * Get the provisioningState property: The current provisioning state of the JWT authenticator. - * - * @return the provisioningState value. - */ - public JwtAuthenticatorProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the issuer property: The JWT OIDC issuer details. - * - * @return the issuer value. - */ - public JwtAuthenticatorIssuer issuer() { - return this.issuer; - } - - /** - * Set the issuer property: The JWT OIDC issuer details. - * - * @param issuer the issuer value to set. - * @return the JwtAuthenticatorProperties object itself. - */ - public JwtAuthenticatorProperties withIssuer(JwtAuthenticatorIssuer issuer) { - this.issuer = issuer; - return this; - } - - /** - * Get the claimValidationRules property: The rules that are applied to validate token claims to authenticate users. - * All the expressions must evaluate to true for validation to succeed. - * - * @return the claimValidationRules value. - */ - public List claimValidationRules() { - return this.claimValidationRules; - } - - /** - * Set the claimValidationRules property: The rules that are applied to validate token claims to authenticate users. - * All the expressions must evaluate to true for validation to succeed. - * - * @param claimValidationRules the claimValidationRules value to set. - * @return the JwtAuthenticatorProperties object itself. - */ - public JwtAuthenticatorProperties - withClaimValidationRules(List claimValidationRules) { - this.claimValidationRules = claimValidationRules; - return this; - } - - /** - * Get the claimMappings property: The mappings that define how user attributes are extracted from the token claims. - * - * @return the claimMappings value. - */ - public JwtAuthenticatorClaimMappings claimMappings() { - return this.claimMappings; - } - - /** - * Set the claimMappings property: The mappings that define how user attributes are extracted from the token claims. - * - * @param claimMappings the claimMappings value to set. - * @return the JwtAuthenticatorProperties object itself. - */ - public JwtAuthenticatorProperties withClaimMappings(JwtAuthenticatorClaimMappings claimMappings) { - this.claimMappings = claimMappings; - return this; - } - - /** - * Get the userValidationRules property: The rules that are applied to the mapped user before completing - * authentication. All the expressions must evaluate to true for validation to succeed. - * - * @return the userValidationRules value. - */ - public List userValidationRules() { - return this.userValidationRules; - } - - /** - * Set the userValidationRules property: The rules that are applied to the mapped user before completing - * authentication. All the expressions must evaluate to true for validation to succeed. - * - * @param userValidationRules the userValidationRules value to set. - * @return the JwtAuthenticatorProperties object itself. - */ - public JwtAuthenticatorProperties - withUserValidationRules(List userValidationRules) { - this.userValidationRules = userValidationRules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (issuer() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property issuer in model JwtAuthenticatorProperties")); - } else { - issuer().validate(); - } - if (claimValidationRules() != null) { - claimValidationRules().forEach(e -> e.validate()); - } - if (claimMappings() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property claimMappings in model JwtAuthenticatorProperties")); - } else { - claimMappings().validate(); - } - if (userValidationRules() != null) { - userValidationRules().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("issuer", this.issuer); - jsonWriter.writeJsonField("claimMappings", this.claimMappings); - jsonWriter.writeArrayField("claimValidationRules", this.claimValidationRules, - (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("userValidationRules", this.userValidationRules, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorProperties if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorProperties. - */ - public static JwtAuthenticatorProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorProperties deserializedJwtAuthenticatorProperties = new JwtAuthenticatorProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("issuer".equals(fieldName)) { - deserializedJwtAuthenticatorProperties.issuer = JwtAuthenticatorIssuer.fromJson(reader); - } else if ("claimMappings".equals(fieldName)) { - deserializedJwtAuthenticatorProperties.claimMappings - = JwtAuthenticatorClaimMappings.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedJwtAuthenticatorProperties.provisioningState - = JwtAuthenticatorProvisioningState.fromString(reader.getString()); - } else if ("claimValidationRules".equals(fieldName)) { - List claimValidationRules - = reader.readArray(reader1 -> JwtAuthenticatorValidationRule.fromJson(reader1)); - deserializedJwtAuthenticatorProperties.claimValidationRules = claimValidationRules; - } else if ("userValidationRules".equals(fieldName)) { - List userValidationRules - = reader.readArray(reader1 -> JwtAuthenticatorValidationRule.fromJson(reader1)); - deserializedJwtAuthenticatorProperties.userValidationRules = userValidationRules; - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProvisioningState.java deleted file mode 100644 index fa06b1956c99..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorProvisioningState.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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 provisioning state of the last accepted operation. - */ -public final class JwtAuthenticatorProvisioningState extends ExpandableStringEnum { - /** - * Static value Succeeded for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Canceled for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState CANCELED = fromString("Canceled"); - - /** - * Static value Creating for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Updating for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for JwtAuthenticatorProvisioningState. - */ - public static final JwtAuthenticatorProvisioningState DELETING = fromString("Deleting"); - - /** - * Creates a new instance of JwtAuthenticatorProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public JwtAuthenticatorProvisioningState() { - } - - /** - * Creates or finds a JwtAuthenticatorProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding JwtAuthenticatorProvisioningState. - */ - public static JwtAuthenticatorProvisioningState fromString(String name) { - return fromString(name, JwtAuthenticatorProvisioningState.class); - } - - /** - * Gets known JwtAuthenticatorProvisioningState values. - * - * @return known JwtAuthenticatorProvisioningState values. - */ - public static Collection values() { - return values(JwtAuthenticatorProvisioningState.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorValidationRule.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorValidationRule.java deleted file mode 100644 index c470baf052ee..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JwtAuthenticatorValidationRule.java +++ /dev/null @@ -1,131 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The validation rule for JWTAuthenticator. - */ -@Fluent -public final class JwtAuthenticatorValidationRule implements JsonSerializable { - /* - * The CEL expression used to validate the claim or attribute. - */ - private String expression; - - /* - * The validation error message. - */ - private String message; - - /** - * Creates an instance of JwtAuthenticatorValidationRule class. - */ - public JwtAuthenticatorValidationRule() { - } - - /** - * Get the expression property: The CEL expression used to validate the claim or attribute. - * - * @return the expression value. - */ - public String expression() { - return this.expression; - } - - /** - * Set the expression property: The CEL expression used to validate the claim or attribute. - * - * @param expression the expression value to set. - * @return the JwtAuthenticatorValidationRule object itself. - */ - public JwtAuthenticatorValidationRule withExpression(String expression) { - this.expression = expression; - return this; - } - - /** - * Get the message property: The validation error message. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Set the message property: The validation error message. - * - * @param message the message value to set. - * @return the JwtAuthenticatorValidationRule object itself. - */ - public JwtAuthenticatorValidationRule withMessage(String message) { - this.message = message; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property expression in model JwtAuthenticatorValidationRule")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(JwtAuthenticatorValidationRule.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("expression", this.expression); - jsonWriter.writeStringField("message", this.message); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of JwtAuthenticatorValidationRule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of JwtAuthenticatorValidationRule if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the JwtAuthenticatorValidationRule. - */ - public static JwtAuthenticatorValidationRule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - JwtAuthenticatorValidationRule deserializedJwtAuthenticatorValidationRule - = new JwtAuthenticatorValidationRule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("expression".equals(fieldName)) { - deserializedJwtAuthenticatorValidationRule.expression = reader.getString(); - } else if ("message".equals(fieldName)) { - deserializedJwtAuthenticatorValidationRule.message = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedJwtAuthenticatorValidationRule; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java index c06b22dd47ea..a14c1ea5937b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java @@ -81,12 +81,6 @@ public final class KubeletConfig implements JsonSerializable { */ private Integer podMaxPids; - /* - * Specifies the default seccomp profile applied to all workloads. If not specified, 'Unconfined' will be used by - * default. - */ - private SeccompDefault seccompDefault; - /** * Creates an instance of KubeletConfig class. */ @@ -337,28 +331,6 @@ public KubeletConfig withPodMaxPids(Integer podMaxPids) { return this; } - /** - * Get the seccompDefault property: Specifies the default seccomp profile applied to all workloads. If not - * specified, 'Unconfined' will be used by default. - * - * @return the seccompDefault value. - */ - public SeccompDefault seccompDefault() { - return this.seccompDefault; - } - - /** - * Set the seccompDefault property: Specifies the default seccomp profile applied to all workloads. If not - * specified, 'Unconfined' will be used by default. - * - * @param seccompDefault the seccompDefault value to set. - * @return the KubeletConfig object itself. - */ - public KubeletConfig withSeccompDefault(SeccompDefault seccompDefault) { - this.seccompDefault = seccompDefault; - return this; - } - /** * Validates the instance. * @@ -385,8 +357,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("containerLogMaxSizeMB", this.containerLogMaxSizeMB); jsonWriter.writeNumberField("containerLogMaxFiles", this.containerLogMaxFiles); jsonWriter.writeNumberField("podMaxPids", this.podMaxPids); - jsonWriter.writeStringField("seccompDefault", - this.seccompDefault == null ? null : this.seccompDefault.toString()); return jsonWriter.writeEndObject(); } @@ -428,8 +398,6 @@ public static KubeletConfig fromJson(JsonReader jsonReader) throws IOException { deserializedKubeletConfig.containerLogMaxFiles = reader.getNullable(JsonReader::getInt); } else if ("podMaxPids".equals(fieldName)) { deserializedKubeletConfig.podMaxPids = reader.getNullable(JsonReader::getInt); - } else if ("seccompDefault".equals(fieldName)) { - deserializedKubeletConfig.seccompDefault = SeccompDefault.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesResourceObjectEncryptionProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesResourceObjectEncryptionProfile.java deleted file mode 100644 index 32f5ad6a3c47..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesResourceObjectEncryptionProfile.java +++ /dev/null @@ -1,104 +0,0 @@ -// 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; - -/** - * Encryption at rest of Kubernetes resource objects using service-managed keys. More information on this can be found - * under https://aka.ms/aks/kubernetesResourceObjectEncryption. - */ -@Fluent -public final class KubernetesResourceObjectEncryptionProfile - implements JsonSerializable { - /* - * Whether to enable encryption at rest of Kubernetes resource objects using service-managed keys. More information - * on this can be found under https://aka.ms/aks/kubernetesResourceObjectEncryption. - */ - private InfrastructureEncryption infrastructureEncryption; - - /** - * Creates an instance of KubernetesResourceObjectEncryptionProfile class. - */ - public KubernetesResourceObjectEncryptionProfile() { - } - - /** - * Get the infrastructureEncryption property: Whether to enable encryption at rest of Kubernetes resource objects - * using service-managed keys. More information on this can be found under - * https://aka.ms/aks/kubernetesResourceObjectEncryption. - * - * @return the infrastructureEncryption value. - */ - public InfrastructureEncryption infrastructureEncryption() { - return this.infrastructureEncryption; - } - - /** - * Set the infrastructureEncryption property: Whether to enable encryption at rest of Kubernetes resource objects - * using service-managed keys. More information on this can be found under - * https://aka.ms/aks/kubernetesResourceObjectEncryption. - * - * @param infrastructureEncryption the infrastructureEncryption value to set. - * @return the KubernetesResourceObjectEncryptionProfile object itself. - */ - public KubernetesResourceObjectEncryptionProfile - withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption) { - this.infrastructureEncryption = infrastructureEncryption; - 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("infrastructureEncryption", - this.infrastructureEncryption == null ? null : this.infrastructureEncryption.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KubernetesResourceObjectEncryptionProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KubernetesResourceObjectEncryptionProfile 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 KubernetesResourceObjectEncryptionProfile. - */ - public static KubernetesResourceObjectEncryptionProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KubernetesResourceObjectEncryptionProfile deserializedKubernetesResourceObjectEncryptionProfile - = new KubernetesResourceObjectEncryptionProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("infrastructureEncryption".equals(fieldName)) { - deserializedKubernetesResourceObjectEncryptionProfile.infrastructureEncryption - = InfrastructureEncryption.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedKubernetesResourceObjectEncryptionProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java deleted file mode 100644 index 687fc5c092d1..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java +++ /dev/null @@ -1,138 +0,0 @@ -// 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; -import java.util.List; - -/** - * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. - * An empty label selector matches all objects. A null label selector matches no objects. - */ -@Fluent -public final class LabelSelector implements JsonSerializable { - /* - * matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an - * element of matchExpressions, whose key field is `key`, the operator is `In`, and the values array contains only - * `value`. The requirements are ANDed. - */ - private List matchLabels; - - /* - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - */ - private List matchExpressions; - - /** - * Creates an instance of LabelSelector class. - */ - public LabelSelector() { - } - - /** - * Get the matchLabels property: matchLabels is an array of {key=value} pairs. A single {key=value} in the - * matchLabels map is equivalent to an element of matchExpressions, whose key field is `key`, the operator is `In`, - * and the values array contains only `value`. The requirements are ANDed. - * - * @return the matchLabels value. - */ - public List matchLabels() { - return this.matchLabels; - } - - /** - * Set the matchLabels property: matchLabels is an array of {key=value} pairs. A single {key=value} in the - * matchLabels map is equivalent to an element of matchExpressions, whose key field is `key`, the operator is `In`, - * and the values array contains only `value`. The requirements are ANDed. - * - * @param matchLabels the matchLabels value to set. - * @return the LabelSelector object itself. - */ - public LabelSelector withMatchLabels(List matchLabels) { - this.matchLabels = matchLabels; - return this; - } - - /** - * Get the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements - * are ANDed. - * - * @return the matchExpressions value. - */ - public List matchExpressions() { - return this.matchExpressions; - } - - /** - * Set the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements - * are ANDed. - * - * @param matchExpressions the matchExpressions value to set. - * @return the LabelSelector object itself. - */ - public LabelSelector withMatchExpressions(List matchExpressions) { - this.matchExpressions = matchExpressions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (matchExpressions() != null) { - matchExpressions().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("matchLabels", this.matchLabels, (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("matchExpressions", this.matchExpressions, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LabelSelector from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LabelSelector 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 LabelSelector. - */ - public static LabelSelector fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LabelSelector deserializedLabelSelector = new LabelSelector(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("matchLabels".equals(fieldName)) { - List matchLabels = reader.readArray(reader1 -> reader1.getString()); - deserializedLabelSelector.matchLabels = matchLabels; - } else if ("matchExpressions".equals(fieldName)) { - List matchExpressions - = reader.readArray(reader1 -> LabelSelectorRequirement.fromJson(reader1)); - deserializedLabelSelector.matchExpressions = matchExpressions; - } else { - reader.skipChildren(); - } - } - - return deserializedLabelSelector; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java deleted file mode 100644 index 02ccd0525bdb..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java +++ /dev/null @@ -1,154 +0,0 @@ -// 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; -import java.util.List; - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and - * values. - */ -@Fluent -public final class LabelSelectorRequirement implements JsonSerializable { - /* - * key is the label key that the selector applies to. - */ - private String key; - - /* - * operator represents a key's relationship to a set of values. Valid operators are In and NotIn - */ - private Operator operator; - - /* - * values is an array of string values, the values array must be non-empty. - */ - private List values; - - /** - * Creates an instance of LabelSelectorRequirement class. - */ - public LabelSelectorRequirement() { - } - - /** - * Get the key property: key is the label key that the selector applies to. - * - * @return the key value. - */ - public String key() { - return this.key; - } - - /** - * Set the key property: key is the label key that the selector applies to. - * - * @param key the key value to set. - * @return the LabelSelectorRequirement object itself. - */ - public LabelSelectorRequirement withKey(String key) { - this.key = key; - return this; - } - - /** - * Get the operator property: operator represents a key's relationship to a set of values. Valid operators are In - * and NotIn. - * - * @return the operator value. - */ - public Operator operator() { - return this.operator; - } - - /** - * Set the operator property: operator represents a key's relationship to a set of values. Valid operators are In - * and NotIn. - * - * @param operator the operator value to set. - * @return the LabelSelectorRequirement object itself. - */ - public LabelSelectorRequirement withOperator(Operator operator) { - this.operator = operator; - return this; - } - - /** - * Get the values property: values is an array of string values, the values array must be non-empty. - * - * @return the values value. - */ - public List values() { - return this.values; - } - - /** - * Set the values property: values is an array of string values, the values array must be non-empty. - * - * @param values the values value to set. - * @return the LabelSelectorRequirement object itself. - */ - public LabelSelectorRequirement withValues(List values) { - this.values = values; - 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("key", this.key); - jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); - jsonWriter.writeArrayField("values", this.values, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LabelSelectorRequirement from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LabelSelectorRequirement 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 LabelSelectorRequirement. - */ - public static LabelSelectorRequirement fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LabelSelectorRequirement deserializedLabelSelectorRequirement = new LabelSelectorRequirement(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("key".equals(fieldName)) { - deserializedLabelSelectorRequirement.key = reader.getString(); - } else if ("operator".equals(fieldName)) { - deserializedLabelSelectorRequirement.operator = Operator.fromString(reader.getString()); - } else if ("values".equals(fieldName)) { - List values = reader.readArray(reader1 -> reader1.getString()); - deserializedLabelSelectorRequirement.values = values; - } else { - reader.skipChildren(); - } - } - - return deserializedLabelSelectorRequirement; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerListResult.java deleted file mode 100644 index 6314fdcd178a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; -import java.io.IOException; -import java.util.List; - -/** - * The response from the List Load Balancers operation. - */ -@Fluent -public final class LoadBalancerListResult implements JsonSerializable { - /* - * The list of Load Balancers. - */ - private List value; - - /* - * The URL to get the next set of load balancer results. - */ - private String nextLink; - - /** - * Creates an instance of LoadBalancerListResult class. - */ - public LoadBalancerListResult() { - } - - /** - * Get the value property: The list of Load Balancers. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of Load Balancers. - * - * @param value the value value to set. - * @return the LoadBalancerListResult object itself. - */ - public LoadBalancerListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of load balancer results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of LoadBalancerListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of LoadBalancerListResult 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 LoadBalancerListResult. - */ - public static LoadBalancerListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - LoadBalancerListResult deserializedLoadBalancerListResult = new LoadBalancerListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> LoadBalancerInner.fromJson(reader1)); - deserializedLoadBalancerListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedLoadBalancerListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedLoadBalancerListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java deleted file mode 100644 index 5f2ac475ad1a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java +++ /dev/null @@ -1,162 +0,0 @@ -// 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; - -/** - * The hardware and GPU settings of the machine. - */ -@Fluent -public final class MachineHardwareProfile implements JsonSerializable { - /* - * The size of the VM. VM size availability varies by region. If a node contains insufficient compute resources - * (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: - * https://docs.microsoft.com/azure/aks/quotas-skus-regions - */ - private String vmSize; - - /* - * GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. - */ - private GpuInstanceProfile gpuInstanceProfile; - - /* - * The GPU settings of the machine. - */ - private GpuProfile gpuProfile; - - /** - * Creates an instance of MachineHardwareProfile class. - */ - public MachineHardwareProfile() { - } - - /** - * Get the vmSize property: The size of the VM. VM size availability varies by region. If a node contains - * insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on - * restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions. - * - * @return the vmSize value. - */ - public String vmSize() { - return this.vmSize; - } - - /** - * Set the vmSize property: The size of the VM. VM size availability varies by region. If a node contains - * insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on - * restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions. - * - * @param vmSize the vmSize value to set. - * @return the MachineHardwareProfile object itself. - */ - public MachineHardwareProfile withVmSize(String vmSize) { - this.vmSize = vmSize; - return this; - } - - /** - * Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for - * supported GPU VM SKU. - * - * @return the gpuInstanceProfile value. - */ - public GpuInstanceProfile gpuInstanceProfile() { - return this.gpuInstanceProfile; - } - - /** - * Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for - * supported GPU VM SKU. - * - * @param gpuInstanceProfile the gpuInstanceProfile value to set. - * @return the MachineHardwareProfile object itself. - */ - public MachineHardwareProfile withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile) { - this.gpuInstanceProfile = gpuInstanceProfile; - return this; - } - - /** - * Get the gpuProfile property: The GPU settings of the machine. - * - * @return the gpuProfile value. - */ - public GpuProfile gpuProfile() { - return this.gpuProfile; - } - - /** - * Set the gpuProfile property: The GPU settings of the machine. - * - * @param gpuProfile the gpuProfile value to set. - * @return the MachineHardwareProfile object itself. - */ - public MachineHardwareProfile withGpuProfile(GpuProfile gpuProfile) { - this.gpuProfile = gpuProfile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (gpuProfile() != null) { - gpuProfile().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("vmSize", this.vmSize); - jsonWriter.writeStringField("gpuInstanceProfile", - this.gpuInstanceProfile == null ? null : this.gpuInstanceProfile.toString()); - jsonWriter.writeJsonField("gpuProfile", this.gpuProfile); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MachineHardwareProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MachineHardwareProfile 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 MachineHardwareProfile. - */ - public static MachineHardwareProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MachineHardwareProfile deserializedMachineHardwareProfile = new MachineHardwareProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("vmSize".equals(fieldName)) { - deserializedMachineHardwareProfile.vmSize = reader.getString(); - } else if ("gpuInstanceProfile".equals(fieldName)) { - deserializedMachineHardwareProfile.gpuInstanceProfile - = GpuInstanceProfile.fromString(reader.getString()); - } else if ("gpuProfile".equals(fieldName)) { - deserializedMachineHardwareProfile.gpuProfile = GpuProfile.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedMachineHardwareProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java deleted file mode 100644 index 77af2b6e776f..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java +++ /dev/null @@ -1,390 +0,0 @@ -// 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; -import java.util.List; -import java.util.Map; - -/** - * The Kubernetes configurations used by the machine. - */ -@Fluent -public final class MachineKubernetesProfile implements JsonSerializable { - /* - * The node labels on the machine. - */ - private Map nodeLabels; - - /* - * The version of Kubernetes specified by the user. Both patch version and are - * supported. When is specified, the latest supported patch version is chosen automatically. - */ - private String orchestratorVersion; - - /* - * The version of Kubernetes running on the machine. If orchestratorVersion was a fully specified version - * , this field will be exactly equal to it. If orchestratorVersion was , this field - * will contain the full version being used. - */ - private String currentOrchestratorVersion; - - /* - * Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. - */ - private KubeletDiskType kubeletDiskType; - - /* - * The Kubelet configuration on the machine. - */ - private KubeletConfig kubeletConfig; - - /* - * Taints added on the node during creation that will not be reconciled by AKS. These taints will not be reconciled - * by AKS and can be removed with a kubectl call. These taints allow for required configuration to run before the - * node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with `kubectl - * taint nodes node1 key1=value1:NoSchedule-` - */ - private List nodeInitializationTaints; - - /* - * The taints added to new node during machine create. For example, key=value:NoSchedule. - */ - private List nodeTaints; - - /* - * The maximum number of pods that can run on a node. - */ - private Integer maxPods; - - /* - * The node name in the Kubernetes cluster. - */ - private String nodeName; - - /* - * Determines the type of workload a node can run. - */ - private WorkloadRuntime workloadRuntime; - - /* - * Configuration for using artifact streaming on AKS. - */ - private AgentPoolArtifactStreamingProfile artifactStreamingProfile; - - /** - * Creates an instance of MachineKubernetesProfile class. - */ - public MachineKubernetesProfile() { - } - - /** - * Get the nodeLabels property: The node labels on the machine. - * - * @return the nodeLabels value. - */ - public Map nodeLabels() { - return this.nodeLabels; - } - - /** - * Set the nodeLabels property: The node labels on the machine. - * - * @param nodeLabels the nodeLabels value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withNodeLabels(Map nodeLabels) { - this.nodeLabels = nodeLabels; - return this; - } - - /** - * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. - * - * @return the orchestratorVersion value. - */ - public String orchestratorVersion() { - return this.orchestratorVersion; - } - - /** - * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version - * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the - * latest supported patch version is chosen automatically. - * - * @param orchestratorVersion the orchestratorVersion value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withOrchestratorVersion(String orchestratorVersion) { - this.orchestratorVersion = orchestratorVersion; - return this; - } - - /** - * Get the currentOrchestratorVersion property: The version of Kubernetes running on the machine. If - * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to - * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> - * version being used. - * - * @return the currentOrchestratorVersion value. - */ - public String currentOrchestratorVersion() { - return this.currentOrchestratorVersion; - } - - /** - * Get the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and - * Kubelet ephemeral storage. - * - * @return the kubeletDiskType value. - */ - public KubeletDiskType kubeletDiskType() { - return this.kubeletDiskType; - } - - /** - * Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and - * Kubelet ephemeral storage. - * - * @param kubeletDiskType the kubeletDiskType value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withKubeletDiskType(KubeletDiskType kubeletDiskType) { - this.kubeletDiskType = kubeletDiskType; - return this; - } - - /** - * Get the kubeletConfig property: The Kubelet configuration on the machine. - * - * @return the kubeletConfig value. - */ - public KubeletConfig kubeletConfig() { - return this.kubeletConfig; - } - - /** - * Set the kubeletConfig property: The Kubelet configuration on the machine. - * - * @param kubeletConfig the kubeletConfig value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withKubeletConfig(KubeletConfig kubeletConfig) { - this.kubeletConfig = kubeletConfig; - return this; - } - - /** - * Get the nodeInitializationTaints property: Taints added on the node during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. These taints allow for - * required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' - * that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @return the nodeInitializationTaints value. - */ - public List nodeInitializationTaints() { - return this.nodeInitializationTaints; - } - - /** - * Set the nodeInitializationTaints property: Taints added on the node during creation that will not be reconciled - * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. These taints allow for - * required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' - * that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-`. - * - * @param nodeInitializationTaints the nodeInitializationTaints value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withNodeInitializationTaints(List nodeInitializationTaints) { - this.nodeInitializationTaints = nodeInitializationTaints; - return this; - } - - /** - * Get the nodeTaints property: The taints added to new node during machine create. For example, - * key=value:NoSchedule. - * - * @return the nodeTaints value. - */ - public List nodeTaints() { - return this.nodeTaints; - } - - /** - * Set the nodeTaints property: The taints added to new node during machine create. For example, - * key=value:NoSchedule. - * - * @param nodeTaints the nodeTaints value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withNodeTaints(List nodeTaints) { - this.nodeTaints = nodeTaints; - return this; - } - - /** - * Get the maxPods property: The maximum number of pods that can run on a node. - * - * @return the maxPods value. - */ - public Integer maxPods() { - return this.maxPods; - } - - /** - * Set the maxPods property: The maximum number of pods that can run on a node. - * - * @param maxPods the maxPods value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withMaxPods(Integer maxPods) { - this.maxPods = maxPods; - return this; - } - - /** - * Get the nodeName property: The node name in the Kubernetes cluster. - * - * @return the nodeName value. - */ - public String nodeName() { - return this.nodeName; - } - - /** - * Get the workloadRuntime property: Determines the type of workload a node can run. - * - * @return the workloadRuntime value. - */ - public WorkloadRuntime workloadRuntime() { - return this.workloadRuntime; - } - - /** - * Set the workloadRuntime property: Determines the type of workload a node can run. - * - * @param workloadRuntime the workloadRuntime value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile withWorkloadRuntime(WorkloadRuntime workloadRuntime) { - this.workloadRuntime = workloadRuntime; - return this; - } - - /** - * Get the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. - * - * @return the artifactStreamingProfile value. - */ - public AgentPoolArtifactStreamingProfile artifactStreamingProfile() { - return this.artifactStreamingProfile; - } - - /** - * Set the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. - * - * @param artifactStreamingProfile the artifactStreamingProfile value to set. - * @return the MachineKubernetesProfile object itself. - */ - public MachineKubernetesProfile - withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile artifactStreamingProfile) { - this.artifactStreamingProfile = artifactStreamingProfile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (kubeletConfig() != null) { - kubeletConfig().validate(); - } - if (artifactStreamingProfile() != null) { - artifactStreamingProfile().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("nodeLabels", this.nodeLabels, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("orchestratorVersion", this.orchestratorVersion); - jsonWriter.writeStringField("kubeletDiskType", - this.kubeletDiskType == null ? null : this.kubeletDiskType.toString()); - jsonWriter.writeJsonField("kubeletConfig", this.kubeletConfig); - jsonWriter.writeArrayField("nodeInitializationTaints", this.nodeInitializationTaints, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("nodeTaints", this.nodeTaints, (writer, element) -> writer.writeString(element)); - jsonWriter.writeNumberField("maxPods", this.maxPods); - jsonWriter.writeStringField("workloadRuntime", - this.workloadRuntime == null ? null : this.workloadRuntime.toString()); - jsonWriter.writeJsonField("artifactStreamingProfile", this.artifactStreamingProfile); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MachineKubernetesProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MachineKubernetesProfile 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 MachineKubernetesProfile. - */ - public static MachineKubernetesProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MachineKubernetesProfile deserializedMachineKubernetesProfile = new MachineKubernetesProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("nodeLabels".equals(fieldName)) { - Map nodeLabels = reader.readMap(reader1 -> reader1.getString()); - deserializedMachineKubernetesProfile.nodeLabels = nodeLabels; - } else if ("orchestratorVersion".equals(fieldName)) { - deserializedMachineKubernetesProfile.orchestratorVersion = reader.getString(); - } else if ("currentOrchestratorVersion".equals(fieldName)) { - deserializedMachineKubernetesProfile.currentOrchestratorVersion = reader.getString(); - } else if ("kubeletDiskType".equals(fieldName)) { - deserializedMachineKubernetesProfile.kubeletDiskType - = KubeletDiskType.fromString(reader.getString()); - } else if ("kubeletConfig".equals(fieldName)) { - deserializedMachineKubernetesProfile.kubeletConfig = KubeletConfig.fromJson(reader); - } else if ("nodeInitializationTaints".equals(fieldName)) { - List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); - deserializedMachineKubernetesProfile.nodeInitializationTaints = nodeInitializationTaints; - } else if ("nodeTaints".equals(fieldName)) { - List nodeTaints = reader.readArray(reader1 -> reader1.getString()); - deserializedMachineKubernetesProfile.nodeTaints = nodeTaints; - } else if ("maxPods".equals(fieldName)) { - deserializedMachineKubernetesProfile.maxPods = reader.getNullable(JsonReader::getInt); - } else if ("nodeName".equals(fieldName)) { - deserializedMachineKubernetesProfile.nodeName = reader.getString(); - } else if ("workloadRuntime".equals(fieldName)) { - deserializedMachineKubernetesProfile.workloadRuntime - = WorkloadRuntime.fromString(reader.getString()); - } else if ("artifactStreamingProfile".equals(fieldName)) { - deserializedMachineKubernetesProfile.artifactStreamingProfile - = AgentPoolArtifactStreamingProfile.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedMachineKubernetesProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineListResult.java index 6425faad04a1..b81e97eb41a2 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineListResult.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineListResult.java @@ -19,14 +19,14 @@ @Fluent public final class MachineListResult implements JsonSerializable { /* - * The list of Machines in cluster. + * The URL to get the next set of machine results. */ - private List value; + private String nextLink; /* - * The URL to get the next set of machine results. + * The list of Machines in cluster. */ - private String nextLink; + private List value; /** * Creates an instance of MachineListResult class. @@ -34,6 +34,15 @@ public final class MachineListResult implements JsonSerializable value) { return this; } - /** - * Get the nextLink property: The URL to get the next set of machine results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - /** * Validates the instance. * @@ -99,11 +99,11 @@ public static MachineListResult fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("value".equals(fieldName)) { + if ("nextLink".equals(fieldName)) { + deserializedMachineListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> MachineInner.fromJson(reader1)); deserializedMachineListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedMachineListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java index 0997fe247d0a..5a3c9f305386 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.containerservice.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -13,51 +13,15 @@ import java.util.List; /** - * The network properties of the machine. + * network properties of the machine. */ -@Fluent +@Immutable public final class MachineNetworkProperties implements JsonSerializable { /* * IPv4, IPv6 addresses of the machine */ private List ipAddresses; - /* - * The ID of the subnet which node and optionally pods will join on startup. If this is not specified, a VNET and - * subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it - * applies to just nodes. This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{ - * virtualNetworkName}/subnets/{subnetName} - */ - private String vnetSubnetId; - - /* - * The ID of the subnet which pods will join when launched. If omitted, pod IPs are statically assigned on the node - * subnet (see vnetSubnetID for more details). This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{ - * virtualNetworkName}/subnets/{subnetName} - */ - private String podSubnetId; - - /* - * Whether the machine is allocated its own public IP. Some scenarios may require the machine to receive their own - * dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct - * connection to a cloud virtual machine to minimize hops. The default is false. - */ - private Boolean enableNodePublicIp; - - /* - * The public IP prefix ID which VM node should use IPs from. This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{ - * publicIPPrefixName} - */ - private String nodePublicIpPrefixId; - - /* - * IPTags of instance-level public IPs. - */ - private List nodePublicIpTags; - /** * Creates an instance of MachineNetworkProperties class. */ @@ -73,126 +37,6 @@ public List ipAddresses() { return this.ipAddresses; } - /** - * Get the vnetSubnetId property: The ID of the subnet which node and optionally pods will join on startup. If this - * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to - * nodes and pods, otherwise it applies to just nodes. This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. - * - * @return the vnetSubnetId value. - */ - public String vnetSubnetId() { - return this.vnetSubnetId; - } - - /** - * Set the vnetSubnetId property: The ID of the subnet which node and optionally pods will join on startup. If this - * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to - * nodes and pods, otherwise it applies to just nodes. This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. - * - * @param vnetSubnetId the vnetSubnetId value to set. - * @return the MachineNetworkProperties object itself. - */ - public MachineNetworkProperties withVnetSubnetId(String vnetSubnetId) { - this.vnetSubnetId = vnetSubnetId; - return this; - } - - /** - * Get the podSubnetId property: The ID of the subnet which pods will join when launched. If omitted, pod IPs are - * statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. - * - * @return the podSubnetId value. - */ - public String podSubnetId() { - return this.podSubnetId; - } - - /** - * Set the podSubnetId property: The ID of the subnet which pods will join when launched. If omitted, pod IPs are - * statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. - * - * @param podSubnetId the podSubnetId value to set. - * @return the MachineNetworkProperties object itself. - */ - public MachineNetworkProperties withPodSubnetId(String podSubnetId) { - this.podSubnetId = podSubnetId; - return this; - } - - /** - * Get the enableNodePublicIp property: Whether the machine is allocated its own public IP. Some scenarios may - * require the machine to receive their own dedicated public IP addresses. A common scenario is for gaming - * workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. The - * default is false. - * - * @return the enableNodePublicIp value. - */ - public Boolean enableNodePublicIp() { - return this.enableNodePublicIp; - } - - /** - * Set the enableNodePublicIp property: Whether the machine is allocated its own public IP. Some scenarios may - * require the machine to receive their own dedicated public IP addresses. A common scenario is for gaming - * workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. The - * default is false. - * - * @param enableNodePublicIp the enableNodePublicIp value to set. - * @return the MachineNetworkProperties object itself. - */ - public MachineNetworkProperties withEnableNodePublicIp(Boolean enableNodePublicIp) { - this.enableNodePublicIp = enableNodePublicIp; - return this; - } - - /** - * Get the nodePublicIpPrefixId property: The public IP prefix ID which VM node should use IPs from. This is of the - * form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. - * - * @return the nodePublicIpPrefixId value. - */ - public String nodePublicIpPrefixId() { - return this.nodePublicIpPrefixId; - } - - /** - * Set the nodePublicIpPrefixId property: The public IP prefix ID which VM node should use IPs from. This is of the - * form: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. - * - * @param nodePublicIpPrefixId the nodePublicIpPrefixId value to set. - * @return the MachineNetworkProperties object itself. - */ - public MachineNetworkProperties withNodePublicIpPrefixId(String nodePublicIpPrefixId) { - this.nodePublicIpPrefixId = nodePublicIpPrefixId; - return this; - } - - /** - * Get the nodePublicIpTags property: IPTags of instance-level public IPs. - * - * @return the nodePublicIpTags value. - */ - public List nodePublicIpTags() { - return this.nodePublicIpTags; - } - - /** - * Set the nodePublicIpTags property: IPTags of instance-level public IPs. - * - * @param nodePublicIpTags the nodePublicIpTags value to set. - * @return the MachineNetworkProperties object itself. - */ - public MachineNetworkProperties withNodePublicIpTags(List nodePublicIpTags) { - this.nodePublicIpTags = nodePublicIpTags; - return this; - } - /** * Validates the instance. * @@ -202,9 +46,6 @@ public void validate() { if (ipAddresses() != null) { ipAddresses().forEach(e -> e.validate()); } - if (nodePublicIpTags() != null) { - nodePublicIpTags().forEach(e -> e.validate()); - } } /** @@ -213,12 +54,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("vnetSubnetID", this.vnetSubnetId); - jsonWriter.writeStringField("podSubnetID", this.podSubnetId); - jsonWriter.writeBooleanField("enableNodePublicIP", this.enableNodePublicIp); - jsonWriter.writeStringField("nodePublicIPPrefixID", this.nodePublicIpPrefixId); - jsonWriter.writeArrayField("nodePublicIPTags", this.nodePublicIpTags, - (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -241,18 +76,6 @@ public static MachineNetworkProperties fromJson(JsonReader jsonReader) throws IO List ipAddresses = reader.readArray(reader1 -> MachineIpAddress.fromJson(reader1)); deserializedMachineNetworkProperties.ipAddresses = ipAddresses; - } else if ("vnetSubnetID".equals(fieldName)) { - deserializedMachineNetworkProperties.vnetSubnetId = reader.getString(); - } else if ("podSubnetID".equals(fieldName)) { - deserializedMachineNetworkProperties.podSubnetId = reader.getString(); - } else if ("enableNodePublicIP".equals(fieldName)) { - deserializedMachineNetworkProperties.enableNodePublicIp - = reader.getNullable(JsonReader::getBoolean); - } else if ("nodePublicIPPrefixID".equals(fieldName)) { - deserializedMachineNetworkProperties.nodePublicIpPrefixId = reader.getString(); - } else if ("nodePublicIPTags".equals(fieldName)) { - List nodePublicIpTags = reader.readArray(reader1 -> IpTag.fromJson(reader1)); - deserializedMachineNetworkProperties.nodePublicIpTags = nodePublicIpTags; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java deleted file mode 100644 index 57d9a30b45a9..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java +++ /dev/null @@ -1,285 +0,0 @@ -// 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; - -/** - * The operating system and disk used by the machine. - */ -@Fluent -public final class MachineOSProfile implements JsonSerializable { - /* - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - */ - private OSType osType; - - /* - * Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or - * Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is - * deprecated. - */ - private OSSku osSku; - - /* - * OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify - * 0, it will apply the default osDisk size according to the vmSize specified. - */ - private Integer osDiskSizeGB; - - /* - * The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and - * has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed - * after creation. For more information see [Ephemeral - * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). - */ - private OSDiskType osDiskType; - - /* - * Whether to use a FIPS-enabled OS. - */ - private Boolean enableFips; - - /* - * The Linux machine's specific profile. - */ - private MachineOSProfileLinuxProfile linuxProfile; - - /* - * The Windows machine's specific profile. - */ - private AgentPoolWindowsProfile windowsProfile; - - /** - * Creates an instance of MachineOSProfile class. - */ - public MachineOSProfile() { - } - - /** - * Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * - * @return the osType value. - */ - public OSType osType() { - return this.osType; - } - - /** - * Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * - * @param osType the osType value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withOsType(OSType osType) { - this.osType = osType; - return this; - } - - /** - * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. - * - * @return the osSku value. - */ - public OSSku osSku() { - return this.osSku; - } - - /** - * Set the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if - * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after - * Windows2019 is deprecated. - * - * @param osSku the osSku value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withOsSku(OSSku osSku) { - this.osSku = osSku; - return this; - } - - /** - * Get the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the - * master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. - * - * @return the osDiskSizeGB value. - */ - public Integer osDiskSizeGB() { - return this.osDiskSizeGB; - } - - /** - * Set the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the - * master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. - * - * @param osDiskSizeGB the osDiskSizeGB value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withOsDiskSizeGB(Integer osDiskSizeGB) { - this.osDiskSizeGB = osDiskSizeGB; - return this; - } - - /** - * Get the osDiskType property: The OS disk type to be used for machines in the agent pool. The default is - * 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, - * defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral - * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). - * - * @return the osDiskType value. - */ - public OSDiskType osDiskType() { - return this.osDiskType; - } - - /** - * Set the osDiskType property: The OS disk type to be used for machines in the agent pool. The default is - * 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, - * defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral - * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). - * - * @param osDiskType the osDiskType value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withOsDiskType(OSDiskType osDiskType) { - this.osDiskType = osDiskType; - return this; - } - - /** - * Get the enableFips property: Whether to use a FIPS-enabled OS. - * - * @return the enableFips value. - */ - public Boolean enableFips() { - return this.enableFips; - } - - /** - * Set the enableFips property: Whether to use a FIPS-enabled OS. - * - * @param enableFips the enableFips value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withEnableFips(Boolean enableFips) { - this.enableFips = enableFips; - return this; - } - - /** - * Get the linuxProfile property: The Linux machine's specific profile. - * - * @return the linuxProfile value. - */ - public MachineOSProfileLinuxProfile linuxProfile() { - return this.linuxProfile; - } - - /** - * Set the linuxProfile property: The Linux machine's specific profile. - * - * @param linuxProfile the linuxProfile value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withLinuxProfile(MachineOSProfileLinuxProfile linuxProfile) { - this.linuxProfile = linuxProfile; - return this; - } - - /** - * Get the windowsProfile property: The Windows machine's specific profile. - * - * @return the windowsProfile value. - */ - public AgentPoolWindowsProfile windowsProfile() { - return this.windowsProfile; - } - - /** - * Set the windowsProfile property: The Windows machine's specific profile. - * - * @param windowsProfile the windowsProfile value to set. - * @return the MachineOSProfile object itself. - */ - public MachineOSProfile withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { - this.windowsProfile = windowsProfile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linuxProfile() != null) { - linuxProfile().validate(); - } - if (windowsProfile() != null) { - windowsProfile().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); - jsonWriter.writeStringField("osSKU", this.osSku == null ? null : this.osSku.toString()); - jsonWriter.writeNumberField("osDiskSizeGB", this.osDiskSizeGB); - jsonWriter.writeStringField("osDiskType", this.osDiskType == null ? null : this.osDiskType.toString()); - jsonWriter.writeBooleanField("enableFIPS", this.enableFips); - jsonWriter.writeJsonField("linuxProfile", this.linuxProfile); - jsonWriter.writeJsonField("windowsProfile", this.windowsProfile); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MachineOSProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MachineOSProfile 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 MachineOSProfile. - */ - public static MachineOSProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MachineOSProfile deserializedMachineOSProfile = new MachineOSProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("osType".equals(fieldName)) { - deserializedMachineOSProfile.osType = OSType.fromString(reader.getString()); - } else if ("osSKU".equals(fieldName)) { - deserializedMachineOSProfile.osSku = OSSku.fromString(reader.getString()); - } else if ("osDiskSizeGB".equals(fieldName)) { - deserializedMachineOSProfile.osDiskSizeGB = reader.getNullable(JsonReader::getInt); - } else if ("osDiskType".equals(fieldName)) { - deserializedMachineOSProfile.osDiskType = OSDiskType.fromString(reader.getString()); - } else if ("enableFIPS".equals(fieldName)) { - deserializedMachineOSProfile.enableFips = reader.getNullable(JsonReader::getBoolean); - } else if ("linuxProfile".equals(fieldName)) { - deserializedMachineOSProfile.linuxProfile = MachineOSProfileLinuxProfile.fromJson(reader); - } else if ("windowsProfile".equals(fieldName)) { - deserializedMachineOSProfile.windowsProfile = AgentPoolWindowsProfile.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedMachineOSProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java deleted file mode 100644 index ef7ad45400b8..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java +++ /dev/null @@ -1,132 +0,0 @@ -// 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; - -/** - * The Linux machine's specific profile. - */ -@Fluent -public final class MachineOSProfileLinuxProfile implements JsonSerializable { - /* - * The OS configuration of Linux machine. - */ - private LinuxOSConfig linuxOSConfig; - - /* - * Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd - * after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for - * Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). - */ - private String messageOfTheDay; - - /** - * Creates an instance of MachineOSProfileLinuxProfile class. - */ - public MachineOSProfileLinuxProfile() { - } - - /** - * Get the linuxOSConfig property: The OS configuration of Linux machine. - * - * @return the linuxOSConfig value. - */ - public LinuxOSConfig linuxOSConfig() { - return this.linuxOSConfig; - } - - /** - * Set the linuxOSConfig property: The OS configuration of Linux machine. - * - * @param linuxOSConfig the linuxOSConfig value to set. - * @return the MachineOSProfileLinuxProfile object itself. - */ - public MachineOSProfileLinuxProfile withLinuxOSConfig(LinuxOSConfig linuxOSConfig) { - this.linuxOSConfig = linuxOSConfig; - return this; - } - - /** - * Get the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string - * which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux - * nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not - * be executed as a script). - * - * @return the messageOfTheDay value. - */ - public String messageOfTheDay() { - return this.messageOfTheDay; - } - - /** - * Set the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string - * which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux - * nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not - * be executed as a script). - * - * @param messageOfTheDay the messageOfTheDay value to set. - * @return the MachineOSProfileLinuxProfile object itself. - */ - public MachineOSProfileLinuxProfile withMessageOfTheDay(String messageOfTheDay) { - this.messageOfTheDay = messageOfTheDay; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linuxOSConfig() != null) { - linuxOSConfig().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("linuxOSConfig", this.linuxOSConfig); - jsonWriter.writeStringField("messageOfTheDay", this.messageOfTheDay); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MachineOSProfileLinuxProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MachineOSProfileLinuxProfile 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 MachineOSProfileLinuxProfile. - */ - public static MachineOSProfileLinuxProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MachineOSProfileLinuxProfile deserializedMachineOSProfileLinuxProfile = new MachineOSProfileLinuxProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("linuxOSConfig".equals(fieldName)) { - deserializedMachineOSProfileLinuxProfile.linuxOSConfig = LinuxOSConfig.fromJson(reader); - } else if ("messageOfTheDay".equals(fieldName)) { - deserializedMachineOSProfileLinuxProfile.messageOfTheDay = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedMachineOSProfileLinuxProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java index 2fa217d81c35..2f167587df26 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java @@ -4,86 +4,28 @@ package com.azure.resourcemanager.containerservice.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.Map; /** * The properties of the machine. */ -@Fluent +@Immutable public final class MachineProperties implements JsonSerializable { /* - * The network properties of the machine + * network properties of the machine */ private MachineNetworkProperties network; /* - * Arm resource id of the machine. It can be used to GET underlying VM Instance + * Azure resource id of the machine. It can be used to GET underlying VM Instance */ private String resourceId; - /* - * The hardware and GPU settings of the machine. - */ - private MachineHardwareProfile hardware; - - /* - * The operating system and disk used by the machine. - */ - private MachineOSProfile operatingSystem; - - /* - * The Kubernetes configurations used by the machine. - */ - private MachineKubernetesProfile kubernetes; - - /* - * Machine only allows 'System' and 'User' mode. - */ - private AgentPoolMode mode; - - /* - * The security settings of the machine. - */ - private AgentPoolSecurityProfile security; - - /* - * The priority for the machine. If not specified, the default is 'Regular'. - */ - private ScaleSetPriority priority; - - /* - * The version of node image. - */ - private String nodeImageVersion; - - /* - * The current deployment or provisioning state. - */ - private String provisioningState; - - /* - * The tags to be persisted on the machine. - */ - private Map tags; - - /* - * 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; - - /* - * Contains read-only information about the machine. - */ - private MachineStatus status; - /** * Creates an instance of MachineProperties class. */ @@ -91,7 +33,7 @@ public MachineProperties() { } /** - * Get the network property: The network properties of the machine. + * Get the network property: network properties of the machine. * * @return the network value. */ @@ -100,18 +42,7 @@ public MachineNetworkProperties network() { } /** - * Set the network property: The network properties of the machine. - * - * @param network the network value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withNetwork(MachineNetworkProperties network) { - this.network = network; - return this; - } - - /** - * Get the resourceId property: Arm resource id of the machine. It can be used to GET underlying VM Instance. + * Get the resourceId property: Azure resource id of the machine. It can be used to GET underlying VM Instance. * * @return the resourceId value. */ @@ -119,184 +50,6 @@ public String resourceId() { return this.resourceId; } - /** - * Get the hardware property: The hardware and GPU settings of the machine. - * - * @return the hardware value. - */ - public MachineHardwareProfile hardware() { - return this.hardware; - } - - /** - * Set the hardware property: The hardware and GPU settings of the machine. - * - * @param hardware the hardware value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withHardware(MachineHardwareProfile hardware) { - this.hardware = hardware; - return this; - } - - /** - * Get the operatingSystem property: The operating system and disk used by the machine. - * - * @return the operatingSystem value. - */ - public MachineOSProfile operatingSystem() { - return this.operatingSystem; - } - - /** - * Set the operatingSystem property: The operating system and disk used by the machine. - * - * @param operatingSystem the operatingSystem value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withOperatingSystem(MachineOSProfile operatingSystem) { - this.operatingSystem = operatingSystem; - return this; - } - - /** - * Get the kubernetes property: The Kubernetes configurations used by the machine. - * - * @return the kubernetes value. - */ - public MachineKubernetesProfile kubernetes() { - return this.kubernetes; - } - - /** - * Set the kubernetes property: The Kubernetes configurations used by the machine. - * - * @param kubernetes the kubernetes value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withKubernetes(MachineKubernetesProfile kubernetes) { - this.kubernetes = kubernetes; - return this; - } - - /** - * Get the mode property: Machine only allows 'System' and 'User' mode. - * - * @return the mode value. - */ - public AgentPoolMode mode() { - return this.mode; - } - - /** - * Set the mode property: Machine only allows 'System' and 'User' mode. - * - * @param mode the mode value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withMode(AgentPoolMode mode) { - this.mode = mode; - return this; - } - - /** - * Get the security property: The security settings of the machine. - * - * @return the security value. - */ - public AgentPoolSecurityProfile security() { - return this.security; - } - - /** - * Set the security property: The security settings of the machine. - * - * @param security the security value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withSecurity(AgentPoolSecurityProfile security) { - this.security = security; - return this; - } - - /** - * Get the priority property: The priority for the machine. If not specified, the default is 'Regular'. - * - * @return the priority value. - */ - public ScaleSetPriority priority() { - return this.priority; - } - - /** - * Set the priority property: The priority for the machine. If not specified, the default is 'Regular'. - * - * @param priority the priority value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withPriority(ScaleSetPriority priority) { - this.priority = priority; - return this; - } - - /** - * Get the nodeImageVersion property: The version of node image. - * - * @return the nodeImageVersion value. - */ - public String nodeImageVersion() { - return this.nodeImageVersion; - } - - /** - * Get the provisioningState property: The current deployment or provisioning state. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the tags property: The tags to be persisted on the machine. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: The tags to be persisted on the machine. - * - * @param tags the tags value to set. - * @return the MachineProperties object itself. - */ - public MachineProperties withTags(Map tags) { - this.tags = tags; - 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.etag; - } - - /** - * Get the status property: Contains read-only information about the machine. - * - * @return the status value. - */ - public MachineStatus status() { - return this.status; - } - /** * Validates the instance. * @@ -306,21 +59,6 @@ public void validate() { if (network() != null) { network().validate(); } - if (hardware() != null) { - hardware().validate(); - } - if (operatingSystem() != null) { - operatingSystem().validate(); - } - if (kubernetes() != null) { - kubernetes().validate(); - } - if (security() != null) { - security().validate(); - } - if (status() != null) { - status().validate(); - } } /** @@ -329,14 +67,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("network", this.network); - jsonWriter.writeJsonField("hardware", this.hardware); - jsonWriter.writeJsonField("operatingSystem", this.operatingSystem); - jsonWriter.writeJsonField("kubernetes", this.kubernetes); - jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); - jsonWriter.writeJsonField("security", this.security); - jsonWriter.writeStringField("priority", this.priority == null ? null : this.priority.toString()); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -359,29 +89,6 @@ public static MachineProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedMachineProperties.network = MachineNetworkProperties.fromJson(reader); } else if ("resourceId".equals(fieldName)) { deserializedMachineProperties.resourceId = reader.getString(); - } else if ("hardware".equals(fieldName)) { - deserializedMachineProperties.hardware = MachineHardwareProfile.fromJson(reader); - } else if ("operatingSystem".equals(fieldName)) { - deserializedMachineProperties.operatingSystem = MachineOSProfile.fromJson(reader); - } else if ("kubernetes".equals(fieldName)) { - deserializedMachineProperties.kubernetes = MachineKubernetesProfile.fromJson(reader); - } else if ("mode".equals(fieldName)) { - deserializedMachineProperties.mode = AgentPoolMode.fromString(reader.getString()); - } else if ("security".equals(fieldName)) { - deserializedMachineProperties.security = AgentPoolSecurityProfile.fromJson(reader); - } else if ("priority".equals(fieldName)) { - deserializedMachineProperties.priority = ScaleSetPriority.fromString(reader.getString()); - } else if ("nodeImageVersion".equals(fieldName)) { - deserializedMachineProperties.nodeImageVersion = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedMachineProperties.provisioningState = reader.getString(); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedMachineProperties.tags = tags; - } else if ("eTag".equals(fieldName)) { - deserializedMachineProperties.etag = reader.getString(); - } else if ("status".equals(fieldName)) { - deserializedMachineProperties.status = MachineStatus.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java deleted file mode 100644 index 5f0bfabe70fa..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java +++ /dev/null @@ -1,155 +0,0 @@ -// 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.Immutable; -import com.azure.core.management.exception.ManagementError; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Contains read-only information about the machine. - */ -@Immutable -public final class MachineStatus implements JsonSerializable { - /* - * The error details information of the machine. Preserves the detailed info of failure. If there was no error, this - * field is omitted. - */ - private ManagementError provisioningError; - - /* - * Specifies the time at which the machine was created. - */ - private OffsetDateTime creationTimestamp; - - /* - * The drift action of the machine. Indicates whether a machine has deviated from its expected state due to changes - * in managed cluster properties, requiring corrective action. - */ - private DriftAction driftAction; - - /* - * Reason for machine drift. Provides detailed information on why the machine has drifted. This field is omitted if - * the machine is up to date. - */ - private String driftReason; - - /* - * Virtual machine state. Indicates the current state of the underlying virtual machine. - */ - private VmState vmState; - - /** - * Creates an instance of MachineStatus class. - */ - public MachineStatus() { - } - - /** - * Get the provisioningError property: The error details information of the machine. Preserves the detailed info of - * failure. If there was no error, this field is omitted. - * - * @return the provisioningError value. - */ - public ManagementError provisioningError() { - return this.provisioningError; - } - - /** - * Get the creationTimestamp property: Specifies the time at which the machine was created. - * - * @return the creationTimestamp value. - */ - public OffsetDateTime creationTimestamp() { - return this.creationTimestamp; - } - - /** - * Get the driftAction property: The drift action of the machine. Indicates whether a machine has deviated from its - * expected state due to changes in managed cluster properties, requiring corrective action. - * - * @return the driftAction value. - */ - public DriftAction driftAction() { - return this.driftAction; - } - - /** - * Get the driftReason property: Reason for machine drift. Provides detailed information on why the machine has - * drifted. This field is omitted if the machine is up to date. - * - * @return the driftReason value. - */ - public String driftReason() { - return this.driftReason; - } - - /** - * Get the vmState property: Virtual machine state. Indicates the current state of the underlying virtual machine. - * - * @return the vmState value. - */ - public VmState vmState() { - return this.vmState; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MachineStatus from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MachineStatus 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 MachineStatus. - */ - public static MachineStatus fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MachineStatus deserializedMachineStatus = new MachineStatus(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningError".equals(fieldName)) { - deserializedMachineStatus.provisioningError = ManagementError.fromJson(reader); - } else if ("creationTimestamp".equals(fieldName)) { - deserializedMachineStatus.creationTimestamp = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("driftAction".equals(fieldName)) { - deserializedMachineStatus.driftAction = DriftAction.fromString(reader.getString()); - } else if ("driftReason".equals(fieldName)) { - deserializedMachineStatus.driftReason = reader.getString(); - } else if ("vmState".equals(fieldName)) { - deserializedMachineStatus.vmState = VmState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedMachineStatus; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java index 55c754ef20ea..b5b236a5b5cc 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java @@ -31,8 +31,13 @@ public final class ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoo private String provisioningState; /* - * The version of Kubernetes running on the Agent Pool. If orchestratorVersion was a fully specified version - * , this field will be exactly equal to it. If orchestratorVersion was , this field + * The version of node image + */ + private String nodeImageVersion; + + /* + * The version of Kubernetes the Agent Pool is running. If orchestratorVersion is a fully specified version + * , this field will be exactly equal to it. If orchestratorVersion is , this field * will contain the full version being used. */ private String currentOrchestratorVersion; @@ -83,9 +88,19 @@ public String provisioningState() { } /** - * Get the currentOrchestratorVersion property: The version of Kubernetes running on the Agent Pool. If - * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to - * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> + * Get the nodeImageVersion property: The version of node image. + * + * @return the nodeImageVersion value. + */ + @Override + public String nodeImageVersion() { + return this.nodeImageVersion; + } + + /** + * Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> * version being used. * * @return the currentOrchestratorVersion value. @@ -287,24 +302,6 @@ public ManagedClusterAgentPoolProfile withOrchestratorVersion(String orchestrato return this; } - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile withNodeImageVersion(String nodeImageVersion) { - super.withNodeImageVersion(nodeImageVersion); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { - super.withUpgradeStrategy(upgradeStrategy); - return this; - } - /** * {@inheritDoc} */ @@ -314,16 +311,6 @@ public ManagedClusterAgentPoolProfile withUpgradeSettings(AgentPoolUpgradeSettin return this; } - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile - withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { - super.withUpgradeSettingsBlueGreen(upgradeSettingsBlueGreen); - return this; - } - /** * {@inheritDoc} */ @@ -414,15 +401,6 @@ public ManagedClusterAgentPoolProfile withNodeTaints(List nodeTaints) { return this; } - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile withNodeInitializationTaints(List nodeInitializationTaints) { - super.withNodeInitializationTaints(nodeInitializationTaints); - return this; - } - /** * {@inheritDoc} */ @@ -517,8 +495,8 @@ public ManagedClusterAgentPoolProfile withHostGroupId(String hostGroupId) { * {@inheritDoc} */ @Override - public ManagedClusterAgentPoolProfile withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { - super.withWindowsProfile(windowsProfile); + public ManagedClusterAgentPoolProfile withNetworkProfile(AgentPoolNetworkProfile networkProfile) { + super.withNetworkProfile(networkProfile); return this; } @@ -526,8 +504,8 @@ public ManagedClusterAgentPoolProfile withWindowsProfile(AgentPoolWindowsProfile * {@inheritDoc} */ @Override - public ManagedClusterAgentPoolProfile withNetworkProfile(AgentPoolNetworkProfile networkProfile) { - super.withNetworkProfile(networkProfile); + public ManagedClusterAgentPoolProfile withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { + super.withWindowsProfile(windowsProfile); return this; } @@ -553,9 +531,8 @@ public ManagedClusterAgentPoolProfile withGpuProfile(GpuProfile gpuProfile) { * {@inheritDoc} */ @Override - public ManagedClusterAgentPoolProfile - withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile artifactStreamingProfile) { - super.withArtifactStreamingProfile(artifactStreamingProfile); + public ManagedClusterAgentPoolProfile withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { + super.withGatewayProfile(gatewayProfile); return this; } @@ -578,15 +555,6 @@ public ManagedClusterAgentPoolProfile withVirtualMachinesProfile(VirtualMachines return this; } - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) { - super.withGatewayProfile(gatewayProfile); - return this; - } - /** * {@inheritDoc} */ @@ -605,16 +573,6 @@ public ManagedClusterAgentPoolProfile withLocalDnsProfile(LocalDnsProfile localD return this; } - /** - * {@inheritDoc} - */ - @Override - public ManagedClusterAgentPoolProfile - withNodeCustomizationProfile(NodeCustomizationProfile nodeCustomizationProfile) { - super.withNodeCustomizationProfile(nodeCustomizationProfile); - return this; - } - /** * Validates the instance. * @@ -630,9 +588,6 @@ public void validate() { if (upgradeSettings() != null) { upgradeSettings().validate(); } - if (upgradeSettingsBlueGreen() != null) { - upgradeSettingsBlueGreen().validate(); - } if (powerState() != null) { powerState().validate(); } @@ -645,20 +600,20 @@ public void validate() { if (creationData() != null) { creationData().validate(); } - if (windowsProfile() != null) { - windowsProfile().validate(); - } if (networkProfile() != null) { networkProfile().validate(); } + if (windowsProfile() != null) { + windowsProfile().validate(); + } if (securityProfile() != null) { securityProfile().validate(); } if (gpuProfile() != null) { gpuProfile().validate(); } - if (artifactStreamingProfile() != null) { - artifactStreamingProfile().validate(); + if (gatewayProfile() != null) { + gatewayProfile().validate(); } if (virtualMachinesProfile() != null) { virtualMachinesProfile().validate(); @@ -666,18 +621,12 @@ public void validate() { if (virtualMachineNodesStatus() != null) { virtualMachineNodesStatus().forEach(e -> e.validate()); } - if (gatewayProfile() != null) { - gatewayProfile().validate(); - } if (status() != null) { status().validate(); } if (localDnsProfile() != null) { localDnsProfile().validate(); } - if (nodeCustomizationProfile() != null) { - nodeCustomizationProfile().validate(); - } } private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterAgentPoolProfile.class); @@ -709,10 +658,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("type", type() == null ? null : type().toString()); jsonWriter.writeStringField("mode", mode() == null ? null : mode().toString()); jsonWriter.writeStringField("orchestratorVersion", orchestratorVersion()); - jsonWriter.writeStringField("nodeImageVersion", nodeImageVersion()); - jsonWriter.writeStringField("upgradeStrategy", upgradeStrategy() == null ? null : upgradeStrategy().toString()); jsonWriter.writeJsonField("upgradeSettings", upgradeSettings()); - jsonWriter.writeJsonField("upgradeSettingsBlueGreen", upgradeSettingsBlueGreen()); jsonWriter.writeJsonField("powerState", powerState()); jsonWriter.writeArrayField("availabilityZones", availabilityZones(), (writer, element) -> writer.writeString(element)); @@ -726,8 +672,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("nodeLabels", nodeLabels(), (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("nodeTaints", nodeTaints(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("nodeInitializationTaints", nodeInitializationTaints(), - (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("proximityPlacementGroupID", proximityPlacementGroupId()); jsonWriter.writeJsonField("kubeletConfig", kubeletConfig()); jsonWriter.writeJsonField("linuxOSConfig", linuxOSConfig()); @@ -739,18 +683,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("creationData", creationData()); jsonWriter.writeStringField("capacityReservationGroupID", capacityReservationGroupId()); jsonWriter.writeStringField("hostGroupID", hostGroupId()); - jsonWriter.writeJsonField("windowsProfile", windowsProfile()); jsonWriter.writeJsonField("networkProfile", networkProfile()); + jsonWriter.writeJsonField("windowsProfile", windowsProfile()); jsonWriter.writeJsonField("securityProfile", securityProfile()); jsonWriter.writeJsonField("gpuProfile", gpuProfile()); - jsonWriter.writeJsonField("artifactStreamingProfile", artifactStreamingProfile()); + jsonWriter.writeJsonField("gatewayProfile", gatewayProfile()); jsonWriter.writeJsonField("virtualMachinesProfile", virtualMachinesProfile()); jsonWriter.writeArrayField("virtualMachineNodesStatus", virtualMachineNodesStatus(), (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("gatewayProfile", gatewayProfile()); jsonWriter.writeJsonField("status", status()); jsonWriter.writeJsonField("localDNSProfile", localDnsProfile()); - jsonWriter.writeJsonField("nodeCustomizationProfile", nodeCustomizationProfile()); jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -823,16 +765,10 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr } else if ("currentOrchestratorVersion".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.currentOrchestratorVersion = reader.getString(); } else if ("nodeImageVersion".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile.withNodeImageVersion(reader.getString()); - } else if ("upgradeStrategy".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile - .withUpgradeStrategy(UpgradeStrategy.fromString(reader.getString())); + deserializedManagedClusterAgentPoolProfile.nodeImageVersion = reader.getString(); } else if ("upgradeSettings".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile .withUpgradeSettings(AgentPoolUpgradeSettings.fromJson(reader)); - } else if ("upgradeSettingsBlueGreen".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile - .withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings.fromJson(reader)); } else if ("provisioningState".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { @@ -863,9 +799,6 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr } else if ("nodeTaints".equals(fieldName)) { List nodeTaints = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterAgentPoolProfile.withNodeTaints(nodeTaints); - } else if ("nodeInitializationTaints".equals(fieldName)) { - List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); - deserializedManagedClusterAgentPoolProfile.withNodeInitializationTaints(nodeInitializationTaints); } else if ("proximityPlacementGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withProximityPlacementGroupId(reader.getString()); } else if ("kubeletConfig".equals(fieldName)) { @@ -890,20 +823,20 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr deserializedManagedClusterAgentPoolProfile.withCapacityReservationGroupId(reader.getString()); } else if ("hostGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withHostGroupId(reader.getString()); - } else if ("windowsProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile - .withWindowsProfile(AgentPoolWindowsProfile.fromJson(reader)); } else if ("networkProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile .withNetworkProfile(AgentPoolNetworkProfile.fromJson(reader)); + } else if ("windowsProfile".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile + .withWindowsProfile(AgentPoolWindowsProfile.fromJson(reader)); } else if ("securityProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile .withSecurityProfile(AgentPoolSecurityProfile.fromJson(reader)); } else if ("gpuProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withGpuProfile(GpuProfile.fromJson(reader)); - } else if ("artifactStreamingProfile".equals(fieldName)) { + } else if ("gatewayProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile - .withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile.fromJson(reader)); + .withGatewayProfile(AgentPoolGatewayProfile.fromJson(reader)); } else if ("virtualMachinesProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile .withVirtualMachinesProfile(VirtualMachinesProfile.fromJson(reader)); @@ -911,16 +844,10 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr List virtualMachineNodesStatus = reader.readArray(reader1 -> VirtualMachineNodes.fromJson(reader1)); deserializedManagedClusterAgentPoolProfile.withVirtualMachineNodesStatus(virtualMachineNodesStatus); - } else if ("gatewayProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile - .withGatewayProfile(AgentPoolGatewayProfile.fromJson(reader)); } else if ("status".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withStatus(AgentPoolStatus.fromJson(reader)); } else if ("localDNSProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withLocalDnsProfile(LocalDnsProfile.fromJson(reader)); - } else if ("nodeCustomizationProfile".equals(fieldName)) { - deserializedManagedClusterAgentPoolProfile - .withNodeCustomizationProfile(NodeCustomizationProfile.fromJson(reader)); } else if ("name".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.name = reader.getString(); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java index d069c9903b07..b1ba9d300a4e 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java @@ -50,13 +50,14 @@ public final class ManagedClusterApiServerAccessProfile private Boolean disableRunCommand; /* - * Whether to enable apiserver vnet integration for the cluster or not. + * Whether to enable apiserver vnet integration for the cluster or not. See aka.ms/AksVnetIntegration for more + * details. */ private Boolean enableVnetIntegration; /* - * The subnet to be used when apiserver vnet integration is enabled. It is required when: 1. creating a new cluster - * with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. + * The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new cluster with + * BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration. */ private String subnetId; @@ -184,7 +185,8 @@ public ManagedClusterApiServerAccessProfile withDisableRunCommand(Boolean disabl } /** - * Get the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. + * Get the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. See + * aka.ms/AksVnetIntegration for more details. * * @return the enableVnetIntegration value. */ @@ -193,7 +195,8 @@ public Boolean enableVnetIntegration() { } /** - * Set the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. + * Set the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. See + * aka.ms/AksVnetIntegration for more details. * * @param enableVnetIntegration the enableVnetIntegration value to set. * @return the ManagedClusterApiServerAccessProfile object itself. @@ -204,8 +207,8 @@ public ManagedClusterApiServerAccessProfile withEnableVnetIntegration(Boolean en } /** - * Get the subnetId property: The subnet to be used when apiserver vnet integration is enabled. It is required when: - * 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. + * Get the subnetId property: The subnet to be used when apiserver vnet integration is enabled. It is required when + * creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration. * * @return the subnetId value. */ @@ -214,8 +217,8 @@ public String subnetId() { } /** - * Set the subnetId property: The subnet to be used when apiserver vnet integration is enabled. It is required when: - * 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. + * Set the subnetId property: The subnet to be used when apiserver vnet integration is enabled. It is required when + * creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration. * * @param subnetId the subnetId value to set. * @return the ManagedClusterApiServerAccessProfile object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java index d7546883b228..cf6a236cb42e 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java @@ -23,8 +23,7 @@ public final class ManagedClusterAutoUpgradeProfile implements JsonSerializable< private UpgradeChannel upgradeChannel; /* - * Manner in which the OS on your nodes is updated. The default is Unmanaged, but may change to either NodeImage or - * SecurityPatch at GA. + * Node OS Upgrade Channel. Manner in which the OS on your nodes is updated. The default is NodeImage. */ private NodeOSUpgradeChannel nodeOSUpgradeChannel; @@ -59,8 +58,8 @@ public ManagedClusterAutoUpgradeProfile withUpgradeChannel(UpgradeChannel upgrad } /** - * Get the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated. The default is Unmanaged, - * but may change to either NodeImage or SecurityPatch at GA. + * Get the nodeOSUpgradeChannel property: Node OS Upgrade Channel. Manner in which the OS on your nodes is updated. + * The default is NodeImage. * * @return the nodeOSUpgradeChannel value. */ @@ -69,8 +68,8 @@ public NodeOSUpgradeChannel nodeOSUpgradeChannel() { } /** - * Set the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated. The default is Unmanaged, - * but may change to either NodeImage or SecurityPatch at GA. + * Set the nodeOSUpgradeChannel property: Node OS Upgrade Channel. Manner in which the OS on your nodes is updated. + * The default is NodeImage. * * @param nodeOSUpgradeChannel the nodeOSUpgradeChannel value to set. * @return the ManagedClusterAutoUpgradeProfile object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java index 43d1c487b0df..929046a73d98 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java @@ -12,28 +12,17 @@ import java.io.IOException; /** - * Prometheus addon profile for the container service cluster. + * Azure Monitor addon profiles for monitoring the managed cluster. */ @Fluent public final class ManagedClusterAzureMonitorProfile implements JsonSerializable { /* - * Metrics profile for the prometheus service addon + * Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes + * infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom + * targets. See aka.ms/AzureManagedPrometheus for an overview. */ private ManagedClusterAzureMonitorProfileMetrics metrics; - /* - * Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. - * See aka.ms/AzureMonitorContainerInsights for an overview. - */ - private ManagedClusterAzureMonitorProfileContainerInsights containerInsights; - - /* - * Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and - * traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ - private ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring; - /** * Creates an instance of ManagedClusterAzureMonitorProfile class. */ @@ -41,7 +30,9 @@ public ManagedClusterAzureMonitorProfile() { } /** - * Get the metrics property: Metrics profile for the prometheus service addon. + * Get the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect + * out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional + * scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. * * @return the metrics value. */ @@ -50,7 +41,9 @@ public ManagedClusterAzureMonitorProfileMetrics metrics() { } /** - * Set the metrics property: Metrics profile for the prometheus service addon. + * Set the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect + * out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional + * scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview. * * @param metrics the metrics value to set. * @return the ManagedClusterAzureMonitorProfile object itself. @@ -60,54 +53,6 @@ public ManagedClusterAzureMonitorProfile withMetrics(ManagedClusterAzureMonitorP return this; } - /** - * Get the containerInsights property: Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and - * Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. - * - * @return the containerInsights value. - */ - public ManagedClusterAzureMonitorProfileContainerInsights containerInsights() { - return this.containerInsights; - } - - /** - * Set the containerInsights property: Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and - * Container stdout & stderr logs etc. See aka.ms/AzureMonitorContainerInsights for an overview. - * - * @param containerInsights the containerInsights value to set. - * @return the ManagedClusterAzureMonitorProfile object itself. - */ - public ManagedClusterAzureMonitorProfile - withContainerInsights(ManagedClusterAzureMonitorProfileContainerInsights containerInsights) { - this.containerInsights = containerInsights; - return this; - } - - /** - * Get the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container. Collects - * application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor - * OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @return the appMonitoring value. - */ - public ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring() { - return this.appMonitoring; - } - - /** - * Set the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container. Collects - * application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor - * OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @param appMonitoring the appMonitoring value to set. - * @return the ManagedClusterAzureMonitorProfile object itself. - */ - public ManagedClusterAzureMonitorProfile - withAppMonitoring(ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring) { - this.appMonitoring = appMonitoring; - return this; - } - /** * Validates the instance. * @@ -117,12 +62,6 @@ public void validate() { if (metrics() != null) { metrics().validate(); } - if (containerInsights() != null) { - containerInsights().validate(); - } - if (appMonitoring() != null) { - appMonitoring().validate(); - } } /** @@ -132,8 +71,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("metrics", this.metrics); - jsonWriter.writeJsonField("containerInsights", this.containerInsights); - jsonWriter.writeJsonField("appMonitoring", this.appMonitoring); return jsonWriter.writeEndObject(); } @@ -156,12 +93,6 @@ public static ManagedClusterAzureMonitorProfile fromJson(JsonReader jsonReader) if ("metrics".equals(fieldName)) { deserializedManagedClusterAzureMonitorProfile.metrics = ManagedClusterAzureMonitorProfileMetrics.fromJson(reader); - } else if ("containerInsights".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfile.containerInsights - = ManagedClusterAzureMonitorProfileContainerInsights.fromJson(reader); - } else if ("appMonitoring".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfile.appMonitoring - = ManagedClusterAzureMonitorProfileAppMonitoring.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoring.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoring.java deleted file mode 100644 index 2d0b6ad861c8..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoring.java +++ /dev/null @@ -1,186 +0,0 @@ -// 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; - -/** - * Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces - * through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ -@Fluent -public final class ManagedClusterAzureMonitorProfileAppMonitoring - implements JsonSerializable { - /* - * Application Monitoring Auto Instrumentation for Kubernetes Application Container. Deploys web hook to - * auto-instrument Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry metrics, logs and traces of the - * application. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ - private ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation autoInstrumentation; - - /* - * Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects - * OpenTelemetry metrics of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ - private ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics openTelemetryMetrics; - - /* - * Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Logs and Traces. - * Collects OpenTelemetry logs and traces of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ - private ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs openTelemetryLogs; - - /** - * Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoring class. - */ - public ManagedClusterAzureMonitorProfileAppMonitoring() { - } - - /** - * Get the autoInstrumentation property: Application Monitoring Auto Instrumentation for Kubernetes Application - * Container. Deploys web hook to auto-instrument Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry - * metrics, logs and traces of the application. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @return the autoInstrumentation value. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation autoInstrumentation() { - return this.autoInstrumentation; - } - - /** - * Set the autoInstrumentation property: Application Monitoring Auto Instrumentation for Kubernetes Application - * Container. Deploys web hook to auto-instrument Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry - * metrics, logs and traces of the application. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @param autoInstrumentation the autoInstrumentation value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoring object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoring - withAutoInstrumentation(ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation autoInstrumentation) { - this.autoInstrumentation = autoInstrumentation; - return this; - } - - /** - * Get the openTelemetryMetrics property: Application Monitoring Open Telemetry Metrics Profile for Kubernetes - * Application Container Metrics. Collects OpenTelemetry metrics of the application using Azure Monitor - * OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @return the openTelemetryMetrics value. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics openTelemetryMetrics() { - return this.openTelemetryMetrics; - } - - /** - * Set the openTelemetryMetrics property: Application Monitoring Open Telemetry Metrics Profile for Kubernetes - * Application Container Metrics. Collects OpenTelemetry metrics of the application using Azure Monitor - * OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @param openTelemetryMetrics the openTelemetryMetrics value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoring object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoring withOpenTelemetryMetrics( - ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics openTelemetryMetrics) { - this.openTelemetryMetrics = openTelemetryMetrics; - return this; - } - - /** - * Get the openTelemetryLogs property: Application Monitoring Open Telemetry Metrics Profile for Kubernetes - * Application Container Logs and Traces. Collects OpenTelemetry logs and traces of the application using Azure - * Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @return the openTelemetryLogs value. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs openTelemetryLogs() { - return this.openTelemetryLogs; - } - - /** - * Set the openTelemetryLogs property: Application Monitoring Open Telemetry Metrics Profile for Kubernetes - * Application Container Logs and Traces. Collects OpenTelemetry logs and traces of the application using Azure - * Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview. - * - * @param openTelemetryLogs the openTelemetryLogs value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoring object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoring - withOpenTelemetryLogs(ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs openTelemetryLogs) { - this.openTelemetryLogs = openTelemetryLogs; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (autoInstrumentation() != null) { - autoInstrumentation().validate(); - } - if (openTelemetryMetrics() != null) { - openTelemetryMetrics().validate(); - } - if (openTelemetryLogs() != null) { - openTelemetryLogs().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("autoInstrumentation", this.autoInstrumentation); - jsonWriter.writeJsonField("openTelemetryMetrics", this.openTelemetryMetrics); - jsonWriter.writeJsonField("openTelemetryLogs", this.openTelemetryLogs); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoring from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterAzureMonitorProfileAppMonitoring 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 ManagedClusterAzureMonitorProfileAppMonitoring. - */ - public static ManagedClusterAzureMonitorProfileAppMonitoring fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterAzureMonitorProfileAppMonitoring deserializedManagedClusterAzureMonitorProfileAppMonitoring - = new ManagedClusterAzureMonitorProfileAppMonitoring(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("autoInstrumentation".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoring.autoInstrumentation - = ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.fromJson(reader); - } else if ("openTelemetryMetrics".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoring.openTelemetryMetrics - = ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.fromJson(reader); - } else if ("openTelemetryLogs".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoring.openTelemetryLogs - = ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterAzureMonitorProfileAppMonitoring; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.java deleted file mode 100644 index cc7353d304d3..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.java +++ /dev/null @@ -1,100 +0,0 @@ -// 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; - -/** - * Application Monitoring Auto Instrumentation for Kubernetes Application Container. Deploys web hook to auto-instrument - * Azure Monitor OpenTelemetry based SDKs to collect OpenTelemetry metrics, logs and traces of the application. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ -@Fluent -public final class ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation - implements JsonSerializable { - /* - * Indicates if Application Monitoring Auto Instrumentation is enabled or not. - */ - private Boolean enabled; - - /** - * Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation class. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation() { - } - - /** - * Get the enabled property: Indicates if Application Monitoring Auto Instrumentation is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Indicates if Application Monitoring Auto Instrumentation is enabled or not. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation 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 ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation 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 - * ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation. - */ - public static ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation deserializedManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation - = new ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.enabled - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.java deleted file mode 100644 index fedaf77910f4..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.java +++ /dev/null @@ -1,131 +0,0 @@ -// 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; - -/** - * Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Logs and Traces. Collects - * OpenTelemetry logs and traces of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ -@Fluent -public final class ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs - implements JsonSerializable { - /* - * Indicates if Application Monitoring Open Telemetry Logs and traces is enabled or not. - */ - private Boolean enabled; - - /* - * The Open Telemetry host port for Open Telemetry logs and traces. If not specified, the default port is 28331. - */ - private Long port; - - /** - * Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs class. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs() { - } - - /** - * Get the enabled property: Indicates if Application Monitoring Open Telemetry Logs and traces is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Indicates if Application Monitoring Open Telemetry Logs and traces is enabled or not. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the port property: The Open Telemetry host port for Open Telemetry logs and traces. If not specified, the - * default port is 28331. - * - * @return the port value. - */ - public Long port() { - return this.port; - } - - /** - * Set the port property: The Open Telemetry host port for Open Telemetry logs and traces. If not specified, the - * default port is 28331. - * - * @param port the port value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs withPort(Long port) { - this.port = port; - 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); - jsonWriter.writeNumberField("port", this.port); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs 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 - * ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs. - */ - public static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs - = new ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("port".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs.port - = reader.getNullable(JsonReader::getLong); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.java deleted file mode 100644 index 8c942507ff7d..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.java +++ /dev/null @@ -1,131 +0,0 @@ -// 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; - -/** - * Application Monitoring Open Telemetry Metrics Profile for Kubernetes Application Container Metrics. Collects - * OpenTelemetry metrics of the application using Azure Monitor OpenTelemetry based SDKs. See - * aka.ms/AzureMonitorApplicationMonitoring for an overview. - */ -@Fluent -public final class ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics - implements JsonSerializable { - /* - * Indicates if Application Monitoring Open Telemetry Metrics is enabled or not. - */ - private Boolean enabled; - - /* - * The Open Telemetry host port for Open Telemetry metrics. If not specified, the default port is 28333. - */ - private Long port; - - /** - * Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics class. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics() { - } - - /** - * Get the enabled property: Indicates if Application Monitoring Open Telemetry Metrics is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Indicates if Application Monitoring Open Telemetry Metrics is enabled or not. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the port property: The Open Telemetry host port for Open Telemetry metrics. If not specified, the default - * port is 28333. - * - * @return the port value. - */ - public Long port() { - return this.port; - } - - /** - * Set the port property: The Open Telemetry host port for Open Telemetry metrics. If not specified, the default - * port is 28333. - * - * @param port the port value to set. - * @return the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics object itself. - */ - public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withPort(Long port) { - this.port = port; - 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); - jsonWriter.writeNumberField("port", this.port); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics 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 - * ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics. - */ - public static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics - = new ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("port".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.port - = reader.getNullable(JsonReader::getLong); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileContainerInsights.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileContainerInsights.java deleted file mode 100644 index 66c81f746a55..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileContainerInsights.java +++ /dev/null @@ -1,229 +0,0 @@ -// 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; - -/** - * Azure Monitor Container Insights Profile for Kubernetes Events, Inventory and Container stdout & stderr logs etc. - * See aka.ms/AzureMonitorContainerInsights for an overview. - */ -@Fluent -public final class ManagedClusterAzureMonitorProfileContainerInsights - implements JsonSerializable { - /* - * Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. - */ - private Boolean enabled; - - /* - * Fully Qualified ARM Resource Id of Azure Log Analytics Workspace for storing Azure Monitor Container Insights - * Logs. - */ - private String logAnalyticsWorkspaceResourceId; - - /* - * The syslog host port. If not specified, the default port is 28330. - */ - private Long syslogPort; - - /* - * Indicates whether custom metrics collection has to be disabled or not. If not specified the default is false. No - * custom metrics will be emitted if this field is false but the container insights enabled field is false - */ - private Boolean disableCustomMetrics; - - /* - * Indicates whether prometheus metrics scraping is disabled or not. If not specified the default is false. No - * prometheus metrics will be emitted if this field is false but the container insights enabled field is false - */ - private Boolean disablePrometheusMetricsScraping; - - /** - * Creates an instance of ManagedClusterAzureMonitorProfileContainerInsights class. - */ - public ManagedClusterAzureMonitorProfileContainerInsights() { - } - - /** - * Get the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Indicates if Azure Monitor Container Insights Logs Addon is enabled or not. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterAzureMonitorProfileContainerInsights object itself. - */ - public ManagedClusterAzureMonitorProfileContainerInsights withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics - * Workspace for storing Azure Monitor Container Insights Logs. - * - * @return the logAnalyticsWorkspaceResourceId value. - */ - public String logAnalyticsWorkspaceResourceId() { - return this.logAnalyticsWorkspaceResourceId; - } - - /** - * Set the logAnalyticsWorkspaceResourceId property: Fully Qualified ARM Resource Id of Azure Log Analytics - * Workspace for storing Azure Monitor Container Insights Logs. - * - * @param logAnalyticsWorkspaceResourceId the logAnalyticsWorkspaceResourceId value to set. - * @return the ManagedClusterAzureMonitorProfileContainerInsights object itself. - */ - public ManagedClusterAzureMonitorProfileContainerInsights - withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId) { - this.logAnalyticsWorkspaceResourceId = logAnalyticsWorkspaceResourceId; - return this; - } - - /** - * Get the syslogPort property: The syslog host port. If not specified, the default port is 28330. - * - * @return the syslogPort value. - */ - public Long syslogPort() { - return this.syslogPort; - } - - /** - * Set the syslogPort property: The syslog host port. If not specified, the default port is 28330. - * - * @param syslogPort the syslogPort value to set. - * @return the ManagedClusterAzureMonitorProfileContainerInsights object itself. - */ - public ManagedClusterAzureMonitorProfileContainerInsights withSyslogPort(Long syslogPort) { - this.syslogPort = syslogPort; - return this; - } - - /** - * Get the disableCustomMetrics property: Indicates whether custom metrics collection has to be disabled or not. If - * not specified the default is false. No custom metrics will be emitted if this field is false but the container - * insights enabled field is false. - * - * @return the disableCustomMetrics value. - */ - public Boolean disableCustomMetrics() { - return this.disableCustomMetrics; - } - - /** - * Set the disableCustomMetrics property: Indicates whether custom metrics collection has to be disabled or not. If - * not specified the default is false. No custom metrics will be emitted if this field is false but the container - * insights enabled field is false. - * - * @param disableCustomMetrics the disableCustomMetrics value to set. - * @return the ManagedClusterAzureMonitorProfileContainerInsights object itself. - */ - public ManagedClusterAzureMonitorProfileContainerInsights withDisableCustomMetrics(Boolean disableCustomMetrics) { - this.disableCustomMetrics = disableCustomMetrics; - return this; - } - - /** - * Get the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or - * not. If not specified the default is false. No prometheus metrics will be emitted if this field is false but the - * container insights enabled field is false. - * - * @return the disablePrometheusMetricsScraping value. - */ - public Boolean disablePrometheusMetricsScraping() { - return this.disablePrometheusMetricsScraping; - } - - /** - * Set the disablePrometheusMetricsScraping property: Indicates whether prometheus metrics scraping is disabled or - * not. If not specified the default is false. No prometheus metrics will be emitted if this field is false but the - * container insights enabled field is false. - * - * @param disablePrometheusMetricsScraping the disablePrometheusMetricsScraping value to set. - * @return the ManagedClusterAzureMonitorProfileContainerInsights object itself. - */ - public ManagedClusterAzureMonitorProfileContainerInsights - withDisablePrometheusMetricsScraping(Boolean disablePrometheusMetricsScraping) { - this.disablePrometheusMetricsScraping = disablePrometheusMetricsScraping; - 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); - jsonWriter.writeStringField("logAnalyticsWorkspaceResourceId", this.logAnalyticsWorkspaceResourceId); - jsonWriter.writeNumberField("syslogPort", this.syslogPort); - jsonWriter.writeBooleanField("disableCustomMetrics", this.disableCustomMetrics); - jsonWriter.writeBooleanField("disablePrometheusMetricsScraping", this.disablePrometheusMetricsScraping); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterAzureMonitorProfileContainerInsights from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterAzureMonitorProfileContainerInsights 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 ManagedClusterAzureMonitorProfileContainerInsights. - */ - public static ManagedClusterAzureMonitorProfileContainerInsights fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterAzureMonitorProfileContainerInsights deserializedManagedClusterAzureMonitorProfileContainerInsights - = new ManagedClusterAzureMonitorProfileContainerInsights(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileContainerInsights.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("logAnalyticsWorkspaceResourceId".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileContainerInsights.logAnalyticsWorkspaceResourceId - = reader.getString(); - } else if ("syslogPort".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileContainerInsights.syslogPort - = reader.getNullable(JsonReader::getLong); - } else if ("disableCustomMetrics".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileContainerInsights.disableCustomMetrics - = reader.getNullable(JsonReader::getBoolean); - } else if ("disablePrometheusMetricsScraping".equals(fieldName)) { - deserializedManagedClusterAzureMonitorProfileContainerInsights.disablePrometheusMetricsScraping - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterAzureMonitorProfileContainerInsights; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java index 4112892296bf..c6fd51a2703f 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java @@ -12,18 +12,24 @@ import java.io.IOException; /** - * Kube State Metrics for prometheus addon profile for the container service cluster. + * Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the + * kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for + * details. */ @Fluent public final class ManagedClusterAzureMonitorProfileKubeStateMetrics implements JsonSerializable { /* - * Comma-separated list of Kubernetes annotations keys that will be used in the resource's labels metric. + * Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric + * (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only + * resource name and namespace labels. */ private String metricLabelsAllowlist; /* - * Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric. + * Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: + * 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only + * resource name and namespace labels. */ private String metricAnnotationsAllowList; @@ -34,8 +40,9 @@ public ManagedClusterAzureMonitorProfileKubeStateMetrics() { } /** - * Get the metricLabelsAllowlist property: Comma-separated list of Kubernetes annotations keys that will be used in - * the resource's labels metric. + * Get the metricLabelsAllowlist property: Comma-separated list of additional Kubernetes label keys that will be + * used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By + * default the metric contains only resource name and namespace labels. * * @return the metricLabelsAllowlist value. */ @@ -44,8 +51,9 @@ public String metricLabelsAllowlist() { } /** - * Set the metricLabelsAllowlist property: Comma-separated list of Kubernetes annotations keys that will be used in - * the resource's labels metric. + * Set the metricLabelsAllowlist property: Comma-separated list of additional Kubernetes label keys that will be + * used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By + * default the metric contains only resource name and namespace labels. * * @param metricLabelsAllowlist the metricLabelsAllowlist value to set. * @return the ManagedClusterAzureMonitorProfileKubeStateMetrics object itself. @@ -56,8 +64,9 @@ public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricLabelsAllowli } /** - * Get the metricAnnotationsAllowList property: Comma-separated list of additional Kubernetes label keys that will - * be used in the resource's labels metric. + * Get the metricAnnotationsAllowList property: Comma-separated list of Kubernetes annotation keys that will be used + * in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). + * By default the metric contains only resource name and namespace labels. * * @return the metricAnnotationsAllowList value. */ @@ -66,8 +75,9 @@ public String metricAnnotationsAllowList() { } /** - * Set the metricAnnotationsAllowList property: Comma-separated list of additional Kubernetes label keys that will - * be used in the resource's labels metric. + * Set the metricAnnotationsAllowList property: Comma-separated list of Kubernetes annotation keys that will be used + * in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). + * By default the metric contains only resource name and namespace labels. * * @param metricAnnotationsAllowList the metricAnnotationsAllowList value to set. * @return the ManagedClusterAzureMonitorProfileKubeStateMetrics object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java index 1192651a08dc..c429294b7ad5 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java @@ -12,18 +12,23 @@ import java.io.IOException; /** - * Metrics profile for the prometheus service addon. + * Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes + * infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. + * See aka.ms/AzureManagedPrometheus for an overview. */ @Fluent public final class ManagedClusterAzureMonitorProfileMetrics implements JsonSerializable { /* - * Whether to enable the Prometheus collector + * Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See + * aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling. */ private boolean enabled; /* - * Kube State Metrics for prometheus addon profile for the container service cluster + * Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the + * kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for + * details. */ private ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics; @@ -34,7 +39,8 @@ public ManagedClusterAzureMonitorProfileMetrics() { } /** - * Get the enabled property: Whether to enable the Prometheus collector. + * Get the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus + * monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling. * * @return the enabled value. */ @@ -43,7 +49,8 @@ public boolean enabled() { } /** - * Set the enabled property: Whether to enable the Prometheus collector. + * Set the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus + * monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling. * * @param enabled the enabled value to set. * @return the ManagedClusterAzureMonitorProfileMetrics object itself. @@ -54,8 +61,9 @@ public ManagedClusterAzureMonitorProfileMetrics withEnabled(boolean enabled) { } /** - * Get the kubeStateMetrics property: Kube State Metrics for prometheus addon profile for the container service - * cluster. + * Get the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon. These + * optional settings are for the kube-state-metrics pod that is deployed with the addon. See + * aka.ms/AzureManagedPrometheus-optional-parameters for details. * * @return the kubeStateMetrics value. */ @@ -64,8 +72,9 @@ public ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics() { } /** - * Set the kubeStateMetrics property: Kube State Metrics for prometheus addon profile for the container service - * cluster. + * Set the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon. These + * optional settings are for the kube-state-metrics pod that is deployed with the addon. See + * aka.ms/AzureManagedPrometheus-optional-parameters for details. * * @param kubeStateMetrics the kubeStateMetrics value to set. * @return the ManagedClusterAzureMonitorProfileMetrics object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHostedSystemProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHostedSystemProfile.java deleted file mode 100644 index 10238c97d81f..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHostedSystemProfile.java +++ /dev/null @@ -1,94 +0,0 @@ -// 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; - -/** - * Settings for hosted system addons. - */ -@Fluent -public final class ManagedClusterHostedSystemProfile implements JsonSerializable { - /* - * Whether to enable hosted system addons for the cluster. - */ - private Boolean enabled; - - /** - * Creates an instance of ManagedClusterHostedSystemProfile class. - */ - public ManagedClusterHostedSystemProfile() { - } - - /** - * Get the enabled property: Whether to enable hosted system addons for the cluster. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable hosted system addons for the cluster. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterHostedSystemProfile object itself. - */ - public ManagedClusterHostedSystemProfile 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 ManagedClusterHostedSystemProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterHostedSystemProfile 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 ManagedClusterHostedSystemProfile. - */ - public static ManagedClusterHostedSystemProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterHostedSystemProfile deserializedManagedClusterHostedSystemProfile - = new ManagedClusterHostedSystemProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterHostedSystemProfile.enabled = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterHostedSystemProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java index 92ebe06e2255..24bb81b69756 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java @@ -32,23 +32,11 @@ public final class ManagedClusterHttpProxyConfig implements JsonSerializable noProxy; - /* - * A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of - * noProxy and values injected by AKS. - */ - private List effectiveNoProxy; - /* * Alternative CA cert to use for connecting to proxy servers. */ private String trustedCa; - /* - * Whether to enable HTTP proxy. When disabled, the specified proxy configuration will be not be set on pods and - * nodes. - */ - private Boolean enabled; - /** * Creates an instance of ManagedClusterHttpProxyConfig class. */ @@ -115,16 +103,6 @@ public ManagedClusterHttpProxyConfig withNoProxy(List noProxy) { return this; } - /** - * Get the effectiveNoProxy property: A read-only list of all endpoints for which traffic should not be sent to the - * proxy. This list is a superset of noProxy and values injected by AKS. - * - * @return the effectiveNoProxy value. - */ - public List effectiveNoProxy() { - return this.effectiveNoProxy; - } - /** * Get the trustedCa property: Alternative CA cert to use for connecting to proxy servers. * @@ -145,28 +123,6 @@ public ManagedClusterHttpProxyConfig withTrustedCa(String trustedCa) { return this; } - /** - * Get the enabled property: Whether to enable HTTP proxy. When disabled, the specified proxy configuration will be - * not be set on pods and nodes. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable HTTP proxy. When disabled, the specified proxy configuration will be - * not be set on pods and nodes. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterHttpProxyConfig object itself. - */ - public ManagedClusterHttpProxyConfig withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - /** * Validates the instance. * @@ -185,7 +141,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("httpsProxy", this.httpsProxy); jsonWriter.writeArrayField("noProxy", this.noProxy, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("trustedCa", this.trustedCa); - jsonWriter.writeBooleanField("enabled", this.enabled); return jsonWriter.writeEndObject(); } @@ -212,13 +167,8 @@ public static ManagedClusterHttpProxyConfig fromJson(JsonReader jsonReader) thro } else if ("noProxy".equals(fieldName)) { List noProxy = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterHttpProxyConfig.noProxy = noProxy; - } else if ("effectiveNoProxy".equals(fieldName)) { - List effectiveNoProxy = reader.readArray(reader1 -> reader1.getString()); - deserializedManagedClusterHttpProxyConfig.effectiveNoProxy = effectiveNoProxy; } else if ("trustedCa".equals(fieldName)) { deserializedManagedClusterHttpProxyConfig.trustedCa = reader.getString(); - } else if ("enabled".equals(fieldName)) { - deserializedManagedClusterHttpProxyConfig.enabled = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java deleted file mode 100644 index eba21319e109..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java +++ /dev/null @@ -1,114 +0,0 @@ -// 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; - -/** - * The ManagedClusterIngressDefaultDomainProfile model. - */ -@Fluent -public final class ManagedClusterIngressDefaultDomainProfile - implements JsonSerializable { - /* - * Whether to enable Default Domain. - */ - private Boolean enabled; - - /* - * The unique fully qualified domain name assigned to the cluster. This will not change even if disabled then - * reenabled. - */ - private String domainName; - - /** - * Creates an instance of ManagedClusterIngressDefaultDomainProfile class. - */ - public ManagedClusterIngressDefaultDomainProfile() { - } - - /** - * Get the enabled property: Whether to enable Default Domain. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable Default Domain. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterIngressDefaultDomainProfile object itself. - */ - public ManagedClusterIngressDefaultDomainProfile withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the domainName property: The unique fully qualified domain name assigned to the cluster. This will not change - * even if disabled then reenabled. - * - * @return the domainName value. - */ - public String domainName() { - return this.domainName; - } - - /** - * 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 ManagedClusterIngressDefaultDomainProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterIngressDefaultDomainProfile 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 ManagedClusterIngressDefaultDomainProfile. - */ - public static ManagedClusterIngressDefaultDomainProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterIngressDefaultDomainProfile deserializedManagedClusterIngressDefaultDomainProfile - = new ManagedClusterIngressDefaultDomainProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterIngressDefaultDomainProfile.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("domainName".equals(fieldName)) { - deserializedManagedClusterIngressDefaultDomainProfile.domainName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterIngressDefaultDomainProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java index 520a17b83eab..ce50126d08fe 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java @@ -17,20 +17,11 @@ @Fluent public final class ManagedClusterIngressProfile implements JsonSerializable { /* - * Settings for the managed Gateway API installation - */ - private ManagedClusterIngressProfileGatewayConfiguration gatewayApi; - - /* - * Web App Routing settings for the ingress profile. + * App Routing settings for the ingress profile. You can find an overview and onboarding guide for this feature at + * https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default. */ private ManagedClusterIngressProfileWebAppRouting webAppRouting; - /* - * Settings for the managed Application Load Balancer installation - */ - private ManagedClusterIngressProfileApplicationLoadBalancer applicationLoadBalancer; - /** * Creates an instance of ManagedClusterIngressProfile class. */ @@ -38,27 +29,9 @@ public ManagedClusterIngressProfile() { } /** - * Get the gatewayApi property: Settings for the managed Gateway API installation. - * - * @return the gatewayApi value. - */ - public ManagedClusterIngressProfileGatewayConfiguration gatewayApi() { - return this.gatewayApi; - } - - /** - * Set the gatewayApi property: Settings for the managed Gateway API installation. - * - * @param gatewayApi the gatewayApi value to set. - * @return the ManagedClusterIngressProfile object itself. - */ - public ManagedClusterIngressProfile withGatewayApi(ManagedClusterIngressProfileGatewayConfiguration gatewayApi) { - this.gatewayApi = gatewayApi; - return this; - } - - /** - * Get the webAppRouting property: Web App Routing settings for the ingress profile. + * Get the webAppRouting property: App Routing settings for the ingress profile. You can find an overview and + * onboarding guide for this feature at + * https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default. * * @return the webAppRouting value. */ @@ -67,7 +40,9 @@ public ManagedClusterIngressProfileWebAppRouting webAppRouting() { } /** - * Set the webAppRouting property: Web App Routing settings for the ingress profile. + * Set the webAppRouting property: App Routing settings for the ingress profile. You can find an overview and + * onboarding guide for this feature at + * https://learn.microsoft.com/en-us/azure/aks/app-routing?tabs=default%2Cdeploy-app-default. * * @param webAppRouting the webAppRouting value to set. * @return the ManagedClusterIngressProfile object itself. @@ -77,42 +52,15 @@ public ManagedClusterIngressProfile withWebAppRouting(ManagedClusterIngressProfi return this; } - /** - * Get the applicationLoadBalancer property: Settings for the managed Application Load Balancer installation. - * - * @return the applicationLoadBalancer value. - */ - public ManagedClusterIngressProfileApplicationLoadBalancer applicationLoadBalancer() { - return this.applicationLoadBalancer; - } - - /** - * Set the applicationLoadBalancer property: Settings for the managed Application Load Balancer installation. - * - * @param applicationLoadBalancer the applicationLoadBalancer value to set. - * @return the ManagedClusterIngressProfile object itself. - */ - public ManagedClusterIngressProfile - withApplicationLoadBalancer(ManagedClusterIngressProfileApplicationLoadBalancer applicationLoadBalancer) { - this.applicationLoadBalancer = applicationLoadBalancer; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (gatewayApi() != null) { - gatewayApi().validate(); - } if (webAppRouting() != null) { webAppRouting().validate(); } - if (applicationLoadBalancer() != null) { - applicationLoadBalancer().validate(); - } } /** @@ -121,9 +69,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("gatewayAPI", this.gatewayApi); jsonWriter.writeJsonField("webAppRouting", this.webAppRouting); - jsonWriter.writeJsonField("applicationLoadBalancer", this.applicationLoadBalancer); return jsonWriter.writeEndObject(); } @@ -142,15 +88,9 @@ public static ManagedClusterIngressProfile fromJson(JsonReader jsonReader) throw String fieldName = reader.getFieldName(); reader.nextToken(); - if ("gatewayAPI".equals(fieldName)) { - deserializedManagedClusterIngressProfile.gatewayApi - = ManagedClusterIngressProfileGatewayConfiguration.fromJson(reader); - } else if ("webAppRouting".equals(fieldName)) { + if ("webAppRouting".equals(fieldName)) { deserializedManagedClusterIngressProfile.webAppRouting = ManagedClusterIngressProfileWebAppRouting.fromJson(reader); - } else if ("applicationLoadBalancer".equals(fieldName)) { - deserializedManagedClusterIngressProfile.applicationLoadBalancer - = ManagedClusterIngressProfileApplicationLoadBalancer.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileApplicationLoadBalancer.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileApplicationLoadBalancer.java deleted file mode 100644 index a39ec9318922..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileApplicationLoadBalancer.java +++ /dev/null @@ -1,119 +0,0 @@ -// 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; - -/** - * Application Load Balancer settings for the ingress profile. - */ -@Fluent -public final class ManagedClusterIngressProfileApplicationLoadBalancer - implements JsonSerializable { - /* - * Whether to enable Application Load Balancer. - */ - private Boolean enabled; - - /* - * Managed identity of the Application Load Balancer add-on. This is the identity that should be granted permissions - * to manage the associated Application Gateway for Containers resource. - */ - private UserAssignedIdentity identity; - - /** - * Creates an instance of ManagedClusterIngressProfileApplicationLoadBalancer class. - */ - public ManagedClusterIngressProfileApplicationLoadBalancer() { - } - - /** - * Get the enabled property: Whether to enable Application Load Balancer. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable Application Load Balancer. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterIngressProfileApplicationLoadBalancer object itself. - */ - public ManagedClusterIngressProfileApplicationLoadBalancer withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the identity property: Managed identity of the Application Load Balancer add-on. This is the identity that - * should be granted permissions to manage the associated Application Gateway for Containers resource. - * - * @return the identity value. - */ - public UserAssignedIdentity identity() { - return this.identity; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("enabled", this.enabled); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterIngressProfileApplicationLoadBalancer from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterIngressProfileApplicationLoadBalancer 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 ManagedClusterIngressProfileApplicationLoadBalancer. - */ - public static ManagedClusterIngressProfileApplicationLoadBalancer fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterIngressProfileApplicationLoadBalancer deserializedManagedClusterIngressProfileApplicationLoadBalancer - = new ManagedClusterIngressProfileApplicationLoadBalancer(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterIngressProfileApplicationLoadBalancer.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("identity".equals(fieldName)) { - deserializedManagedClusterIngressProfileApplicationLoadBalancer.identity - = UserAssignedIdentity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterIngressProfileApplicationLoadBalancer; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileGatewayConfiguration.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileGatewayConfiguration.java deleted file mode 100644 index d76887801802..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileGatewayConfiguration.java +++ /dev/null @@ -1,99 +0,0 @@ -// 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; - -/** - * The ManagedClusterIngressProfileGatewayConfiguration model. - */ -@Fluent -public final class ManagedClusterIngressProfileGatewayConfiguration - implements JsonSerializable { - /* - * Configuration for the managed Gateway API installation. If not specified, the default is 'Disabled'. See - * https://aka.ms/k8s-gateway-api for more details. - */ - private ManagedGatewayType installation; - - /** - * Creates an instance of ManagedClusterIngressProfileGatewayConfiguration class. - */ - public ManagedClusterIngressProfileGatewayConfiguration() { - } - - /** - * Get the installation property: Configuration for the managed Gateway API installation. If not specified, the - * default is 'Disabled'. See https://aka.ms/k8s-gateway-api for more details. - * - * @return the installation value. - */ - public ManagedGatewayType installation() { - return this.installation; - } - - /** - * Set the installation property: Configuration for the managed Gateway API installation. If not specified, the - * default is 'Disabled'. See https://aka.ms/k8s-gateway-api for more details. - * - * @param installation the installation value to set. - * @return the ManagedClusterIngressProfileGatewayConfiguration object itself. - */ - public ManagedClusterIngressProfileGatewayConfiguration withInstallation(ManagedGatewayType installation) { - this.installation = installation; - 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("installation", this.installation == null ? null : this.installation.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterIngressProfileGatewayConfiguration from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterIngressProfileGatewayConfiguration 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 ManagedClusterIngressProfileGatewayConfiguration. - */ - public static ManagedClusterIngressProfileGatewayConfiguration fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterIngressProfileGatewayConfiguration deserializedManagedClusterIngressProfileGatewayConfiguration - = new ManagedClusterIngressProfileGatewayConfiguration(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("installation".equals(fieldName)) { - deserializedManagedClusterIngressProfileGatewayConfiguration.installation - = ManagedGatewayType.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterIngressProfileGatewayConfiguration; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java index 26711124b9ab..7c7ac44b3702 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java @@ -13,20 +13,20 @@ import java.util.List; /** - * Web App Routing settings for the ingress profile. + * Application Routing add-on settings for the ingress profile. */ @Fluent public final class ManagedClusterIngressProfileWebAppRouting implements JsonSerializable { /* - * Whether to enable Web App Routing. + * Whether to enable the Application Routing add-on. */ private Boolean enabled; /* - * Resource IDs of the DNS zones to be associated with the Web App Routing add-on. Used only when Web App Routing is - * enabled. Public and private DNS zones can be in different resource groups, but all public DNS zones must be in - * the same resource group and all private DNS zones must be in the same resource group. + * Resource IDs of the DNS zones to be associated with the Application Routing add-on. Used only when Application + * Routing add-on is enabled. Public and private DNS zones can be in different resource groups, but all public DNS + * zones must be in the same resource group and all private DNS zones must be in the same resource group. */ private List dnsZoneResourceIds; @@ -37,15 +37,8 @@ public final class ManagedClusterIngressProfileWebAppRouting private ManagedClusterIngressProfileNginx nginx; /* - * Configuration for the Default Domain. This is a unique, autogenerated domain that comes with a signed TLS - * Certificate allowing for secure HTTPS. See [the Default Domain documentation](https://aka.ms/aks/defaultdomain) - * for more instructions. - */ - private ManagedClusterIngressDefaultDomainProfile defaultDomain; - - /* - * Managed identity of the Web Application Routing add-on. This is the identity that should be granted permissions, - * for example, to manage the associated Azure DNS resource and get certificates from Azure Key Vault. See [this + * Managed identity of the Application Routing add-on. This is the identity that should be granted permissions, for + * example, to manage the associated Azure DNS resource and get certificates from Azure Key Vault. See [this * overview of the add-on](https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=with-osm) for more * instructions. */ @@ -58,7 +51,7 @@ public ManagedClusterIngressProfileWebAppRouting() { } /** - * Get the enabled property: Whether to enable Web App Routing. + * Get the enabled property: Whether to enable the Application Routing add-on. * * @return the enabled value. */ @@ -67,7 +60,7 @@ public Boolean enabled() { } /** - * Set the enabled property: Whether to enable Web App Routing. + * Set the enabled property: Whether to enable the Application Routing add-on. * * @param enabled the enabled value to set. * @return the ManagedClusterIngressProfileWebAppRouting object itself. @@ -78,10 +71,10 @@ public ManagedClusterIngressProfileWebAppRouting withEnabled(Boolean enabled) { } /** - * Get the dnsZoneResourceIds property: Resource IDs of the DNS zones to be associated with the Web App Routing - * add-on. Used only when Web App Routing is enabled. Public and private DNS zones can be in different resource - * groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in the same - * resource group. + * Get the dnsZoneResourceIds property: Resource IDs of the DNS zones to be associated with the Application Routing + * add-on. Used only when Application Routing add-on is enabled. Public and private DNS zones can be in different + * resource groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in + * the same resource group. * * @return the dnsZoneResourceIds value. */ @@ -90,10 +83,10 @@ public List dnsZoneResourceIds() { } /** - * Set the dnsZoneResourceIds property: Resource IDs of the DNS zones to be associated with the Web App Routing - * add-on. Used only when Web App Routing is enabled. Public and private DNS zones can be in different resource - * groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in the same - * resource group. + * Set the dnsZoneResourceIds property: Resource IDs of the DNS zones to be associated with the Application Routing + * add-on. Used only when Application Routing add-on is enabled. Public and private DNS zones can be in different + * resource groups, but all public DNS zones must be in the same resource group and all private DNS zones must be in + * the same resource group. * * @param dnsZoneResourceIds the dnsZoneResourceIds value to set. * @return the ManagedClusterIngressProfileWebAppRouting object itself. @@ -126,34 +119,9 @@ public ManagedClusterIngressProfileWebAppRouting withNginx(ManagedClusterIngress } /** - * Get the defaultDomain property: Configuration for the Default Domain. This is a unique, autogenerated domain that - * comes with a signed TLS Certificate allowing for secure HTTPS. See [the Default Domain - * documentation](https://aka.ms/aks/defaultdomain) for more instructions. - * - * @return the defaultDomain value. - */ - public ManagedClusterIngressDefaultDomainProfile defaultDomain() { - return this.defaultDomain; - } - - /** - * Set the defaultDomain property: Configuration for the Default Domain. This is a unique, autogenerated domain that - * comes with a signed TLS Certificate allowing for secure HTTPS. See [the Default Domain - * documentation](https://aka.ms/aks/defaultdomain) for more instructions. - * - * @param defaultDomain the defaultDomain value to set. - * @return the ManagedClusterIngressProfileWebAppRouting object itself. - */ - public ManagedClusterIngressProfileWebAppRouting - withDefaultDomain(ManagedClusterIngressDefaultDomainProfile defaultDomain) { - this.defaultDomain = defaultDomain; - return this; - } - - /** - * Get the identity property: Managed identity of the Web Application Routing add-on. This is the identity that - * should be granted permissions, for example, to manage the associated Azure DNS resource and get certificates from - * Azure Key Vault. See [this overview of the + * Get the identity property: Managed identity of the Application Routing add-on. This is the identity that should + * be granted permissions, for example, to manage the associated Azure DNS resource and get certificates from Azure + * Key Vault. See [this overview of the * add-on](https://learn.microsoft.com/en-us/azure/aks/web-app-routing?tabs=with-osm) for more instructions. * * @return the identity value. @@ -171,9 +139,6 @@ public void validate() { if (nginx() != null) { nginx().validate(); } - if (defaultDomain() != null) { - defaultDomain().validate(); - } if (identity() != null) { identity().validate(); } @@ -189,7 +154,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("dnsZoneResourceIds", this.dnsZoneResourceIds, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("nginx", this.nginx); - jsonWriter.writeJsonField("defaultDomain", this.defaultDomain); return jsonWriter.writeEndObject(); } @@ -218,9 +182,6 @@ public static ManagedClusterIngressProfileWebAppRouting fromJson(JsonReader json } else if ("nginx".equals(fieldName)) { deserializedManagedClusterIngressProfileWebAppRouting.nginx = ManagedClusterIngressProfileNginx.fromJson(reader); - } else if ("defaultDomain".equals(fieldName)) { - deserializedManagedClusterIngressProfileWebAppRouting.defaultDomain - = ManagedClusterIngressDefaultDomainProfile.fromJson(reader); } else if ("identity".equals(fieldName)) { deserializedManagedClusterIngressProfileWebAppRouting.identity = UserAssignedIdentity.fromJson(reader); diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java index baf286e7877c..b01a7427e97b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java @@ -59,11 +59,6 @@ public final class ManagedClusterLoadBalancerProfile implements JsonSerializable */ private BackendPoolType backendPoolType; - /* - * The health probing behavior for External Traffic Policy Cluster services. - */ - private ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode; - /** * Creates an instance of ManagedClusterLoadBalancerProfile class. */ @@ -228,29 +223,6 @@ public ManagedClusterLoadBalancerProfile withBackendPoolType(BackendPoolType bac return this; } - /** - * Get the clusterServiceLoadBalancerHealthProbeMode property: The health probing behavior for External Traffic - * Policy Cluster services. - * - * @return the clusterServiceLoadBalancerHealthProbeMode value. - */ - public ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode() { - return this.clusterServiceLoadBalancerHealthProbeMode; - } - - /** - * Set the clusterServiceLoadBalancerHealthProbeMode property: The health probing behavior for External Traffic - * Policy Cluster services. - * - * @param clusterServiceLoadBalancerHealthProbeMode the clusterServiceLoadBalancerHealthProbeMode value to set. - * @return the ManagedClusterLoadBalancerProfile object itself. - */ - public ManagedClusterLoadBalancerProfile withClusterServiceLoadBalancerHealthProbeMode( - ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode) { - this.clusterServiceLoadBalancerHealthProbeMode = clusterServiceLoadBalancerHealthProbeMode; - return this; - } - /** * Validates the instance. * @@ -285,10 +257,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("enableMultipleStandardLoadBalancers", this.enableMultipleStandardLoadBalancers); jsonWriter.writeStringField("backendPoolType", this.backendPoolType == null ? null : this.backendPoolType.toString()); - jsonWriter.writeStringField("clusterServiceLoadBalancerHealthProbeMode", - this.clusterServiceLoadBalancerHealthProbeMode == null - ? null - : this.clusterServiceLoadBalancerHealthProbeMode.toString()); return jsonWriter.writeEndObject(); } @@ -333,9 +301,6 @@ public static ManagedClusterLoadBalancerProfile fromJson(JsonReader jsonReader) } else if ("backendPoolType".equals(fieldName)) { deserializedManagedClusterLoadBalancerProfile.backendPoolType = BackendPoolType.fromString(reader.getString()); - } else if ("clusterServiceLoadBalancerHealthProbeMode".equals(fieldName)) { - deserializedManagedClusterLoadBalancerProfile.clusterServiceLoadBalancerHealthProbeMode - = ClusterServiceLoadBalancerHealthProbeMode.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java index f2f87355b2c3..e3485eccdee3 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java @@ -18,7 +18,8 @@ public final class ManagedClusterNodeResourceGroupProfile implements JsonSerializable { /* - * The restriction level applied to the cluster's node resource group + * The restriction level applied to the cluster's node resource group. If not specified, the default is + * 'Unrestricted' */ private RestrictionLevel restrictionLevel; @@ -29,7 +30,8 @@ public ManagedClusterNodeResourceGroupProfile() { } /** - * Get the restrictionLevel property: The restriction level applied to the cluster's node resource group. + * 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. */ @@ -38,7 +40,8 @@ public RestrictionLevel restrictionLevel() { } /** - * Set the restrictionLevel property: The restriction level applied to the cluster's node resource group. + * 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. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java index eae4c357b603..433b50af7fe1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java @@ -38,11 +38,6 @@ public final class ManagedClusterPoolUpgradeProfile implements JsonSerializable< */ private List upgrades; - /* - * List of components grouped by kubernetes major.minor version. - */ - private List componentsByReleases; - /** * Creates an instance of ManagedClusterPoolUpgradeProfile class. */ @@ -129,26 +124,6 @@ public ManagedClusterPoolUpgradeProfile withUpgrades(List componentsByReleases() { - return this.componentsByReleases; - } - - /** - * Set the componentsByReleases property: List of components grouped by kubernetes major.minor version. - * - * @param componentsByReleases the componentsByReleases value to set. - * @return the ManagedClusterPoolUpgradeProfile object itself. - */ - public ManagedClusterPoolUpgradeProfile withComponentsByReleases(List componentsByReleases) { - this.componentsByReleases = componentsByReleases; - return this; - } - /** * Validates the instance. * @@ -168,9 +143,6 @@ public void validate() { if (upgrades() != null) { upgrades().forEach(e -> e.validate()); } - if (componentsByReleases() != null) { - componentsByReleases().forEach(e -> e.validate()); - } } private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterPoolUpgradeProfile.class); @@ -185,8 +157,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); jsonWriter.writeStringField("name", this.name); jsonWriter.writeArrayField("upgrades", this.upgrades, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("componentsByReleases", this.componentsByReleases, - (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -217,10 +187,6 @@ public static ManagedClusterPoolUpgradeProfile fromJson(JsonReader jsonReader) t List upgrades = reader.readArray(reader1 -> ManagedClusterPoolUpgradeProfileUpgradesItem.fromJson(reader1)); deserializedManagedClusterPoolUpgradeProfile.upgrades = upgrades; - } else if ("componentsByReleases".equals(fieldName)) { - List componentsByReleases - = reader.readArray(reader1 -> ComponentsByRelease.fromJson(reader1)); - deserializedManagedClusterPoolUpgradeProfile.componentsByReleases = componentsByReleases; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java index 4d37910b753d..57acd9ecdb9e 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java @@ -27,11 +27,6 @@ public final class ManagedClusterPoolUpgradeProfileUpgradesItem */ private Boolean isPreview; - /* - * Whether the Kubernetes version is out of support. - */ - private Boolean isOutOfSupport; - /** * Creates an instance of ManagedClusterPoolUpgradeProfileUpgradesItem class. */ @@ -78,26 +73,6 @@ public ManagedClusterPoolUpgradeProfileUpgradesItem withIsPreview(Boolean isPrev return this; } - /** - * Get the isOutOfSupport property: Whether the Kubernetes version is out of support. - * - * @return the isOutOfSupport value. - */ - public Boolean isOutOfSupport() { - return this.isOutOfSupport; - } - - /** - * Set the isOutOfSupport property: Whether the Kubernetes version is out of support. - * - * @param isOutOfSupport the isOutOfSupport value to set. - * @return the ManagedClusterPoolUpgradeProfileUpgradesItem object itself. - */ - public ManagedClusterPoolUpgradeProfileUpgradesItem withIsOutOfSupport(Boolean isOutOfSupport) { - this.isOutOfSupport = isOutOfSupport; - return this; - } - /** * Validates the instance. * @@ -114,7 +89,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeBooleanField("isPreview", this.isPreview); - jsonWriter.writeBooleanField("isOutOfSupport", this.isOutOfSupport); return jsonWriter.writeEndObject(); } @@ -139,9 +113,6 @@ public static ManagedClusterPoolUpgradeProfileUpgradesItem fromJson(JsonReader j } else if ("isPreview".equals(fieldName)) { deserializedManagedClusterPoolUpgradeProfileUpgradesItem.isPreview = reader.getNullable(JsonReader::getBoolean); - } else if ("isOutOfSupport".equals(fieldName)) { - deserializedManagedClusterPoolUpgradeProfileUpgradesItem.isOutOfSupport - = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java index a5efa904d57b..b4e194a1ef21 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java @@ -45,8 +45,9 @@ public final class ManagedClusterPropertiesAutoScalerProfile private Boolean ignoreDaemonsetsUtilization; /* - * Type of node group expander to be used in scale up. Set to be deprecated, please use 'expanders' flag in the - * future. Available values are: 'least-waste', 'most-pods', 'priority', 'random'. + * The expander to use when scaling up. If not specified, the default is 'random'. See + * [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) + * for more information. */ private Expander expander; @@ -250,8 +251,9 @@ public Boolean ignoreDaemonsetsUtilization() { } /** - * Get the expander property: Type of node group expander to be used in scale up. Set to be deprecated, please use - * 'expanders' flag in the future. Available values are: 'least-waste', 'most-pods', 'priority', 'random'. + * Get the expander property: The expander to use when scaling up. If not specified, the default is 'random'. See + * [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) + * for more information. * * @return the expander value. */ @@ -260,8 +262,9 @@ public Expander expander() { } /** - * Set the expander property: Type of node group expander to be used in scale up. Set to be deprecated, please use - * 'expanders' flag in the future. Available values are: 'least-waste', 'most-pods', 'priority', 'random'. + * Set the expander property: The expander to use when scaling up. If not specified, the default is 'random'. See + * [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) + * for more information. * * @param expander the expander value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java deleted file mode 100644 index f9398bd28eb3..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java +++ /dev/null @@ -1,175 +0,0 @@ -// 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; - -/** - * managed cluster properties for snapshot, these properties are read only. - */ -@Fluent -public final class ManagedClusterPropertiesForSnapshot - implements JsonSerializable { - /* - * The current kubernetes version. - */ - private String kubernetesVersion; - - /* - * The current managed cluster sku. - */ - private ManagedClusterSku sku; - - /* - * Whether the cluster has enabled Kubernetes Role-Based Access Control or not. - */ - private Boolean enableRbac; - - /* - * The current network profile. - */ - private NetworkProfileForSnapshot networkProfile; - - /** - * Creates an instance of ManagedClusterPropertiesForSnapshot class. - */ - public ManagedClusterPropertiesForSnapshot() { - } - - /** - * Get the kubernetesVersion property: The current kubernetes version. - * - * @return the kubernetesVersion value. - */ - public String kubernetesVersion() { - return this.kubernetesVersion; - } - - /** - * Set the kubernetesVersion property: The current kubernetes version. - * - * @param kubernetesVersion the kubernetesVersion value to set. - * @return the ManagedClusterPropertiesForSnapshot object itself. - */ - public ManagedClusterPropertiesForSnapshot withKubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = kubernetesVersion; - return this; - } - - /** - * Get the sku property: The current managed cluster sku. - * - * @return the sku value. - */ - public ManagedClusterSku sku() { - return this.sku; - } - - /** - * Set the sku property: The current managed cluster sku. - * - * @param sku the sku value to set. - * @return the ManagedClusterPropertiesForSnapshot object itself. - */ - public ManagedClusterPropertiesForSnapshot withSku(ManagedClusterSku sku) { - this.sku = sku; - return this; - } - - /** - * Get the enableRbac property: Whether the cluster has enabled Kubernetes Role-Based Access Control or not. - * - * @return the enableRbac value. - */ - public Boolean enableRbac() { - return this.enableRbac; - } - - /** - * Set the enableRbac property: Whether the cluster has enabled Kubernetes Role-Based Access Control or not. - * - * @param enableRbac the enableRbac value to set. - * @return the ManagedClusterPropertiesForSnapshot object itself. - */ - public ManagedClusterPropertiesForSnapshot withEnableRbac(Boolean enableRbac) { - this.enableRbac = enableRbac; - return this; - } - - /** - * Get the networkProfile property: The current network profile. - * - * @return the networkProfile value. - */ - public NetworkProfileForSnapshot networkProfile() { - return this.networkProfile; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() != null) { - sku().validate(); - } - if (networkProfile() != null) { - networkProfile().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); - jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeBooleanField("enableRbac", this.enableRbac); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterPropertiesForSnapshot from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterPropertiesForSnapshot 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 ManagedClusterPropertiesForSnapshot. - */ - public static ManagedClusterPropertiesForSnapshot fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterPropertiesForSnapshot deserializedManagedClusterPropertiesForSnapshot - = new ManagedClusterPropertiesForSnapshot(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("kubernetesVersion".equals(fieldName)) { - deserializedManagedClusterPropertiesForSnapshot.kubernetesVersion = reader.getString(); - } else if ("sku".equals(fieldName)) { - deserializedManagedClusterPropertiesForSnapshot.sku = ManagedClusterSku.fromJson(reader); - } else if ("enableRbac".equals(fieldName)) { - deserializedManagedClusterPropertiesForSnapshot.enableRbac - = reader.getNullable(JsonReader::getBoolean); - } else if ("networkProfile".equals(fieldName)) { - deserializedManagedClusterPropertiesForSnapshot.networkProfile - = NetworkProfileForSnapshot.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterPropertiesForSnapshot; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java index ab06dd7b7009..014323f743dc 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java @@ -28,12 +28,6 @@ public final class ManagedClusterSecurityProfile implements JsonSerializable writer.writeBinary(element)); return jsonWriter.writeEndObject(); @@ -325,21 +219,12 @@ public static ManagedClusterSecurityProfile fromJson(JsonReader jsonReader) thro = ManagedClusterSecurityProfileDefender.fromJson(reader); } else if ("azureKeyVaultKms".equals(fieldName)) { deserializedManagedClusterSecurityProfile.azureKeyVaultKms = AzureKeyVaultKms.fromJson(reader); - } else if ("kubernetesResourceObjectEncryptionProfile".equals(fieldName)) { - deserializedManagedClusterSecurityProfile.kubernetesResourceObjectEncryptionProfile - = KubernetesResourceObjectEncryptionProfile.fromJson(reader); } else if ("workloadIdentity".equals(fieldName)) { deserializedManagedClusterSecurityProfile.workloadIdentity = ManagedClusterSecurityProfileWorkloadIdentity.fromJson(reader); } else if ("imageCleaner".equals(fieldName)) { deserializedManagedClusterSecurityProfile.imageCleaner = ManagedClusterSecurityProfileImageCleaner.fromJson(reader); - } else if ("imageIntegrity".equals(fieldName)) { - deserializedManagedClusterSecurityProfile.imageIntegrity - = ManagedClusterSecurityProfileImageIntegrity.fromJson(reader); - } else if ("nodeRestriction".equals(fieldName)) { - deserializedManagedClusterSecurityProfile.nodeRestriction - = ManagedClusterSecurityProfileNodeRestriction.fromJson(reader); } else if ("customCATrustCertificates".equals(fieldName)) { List customCATrustCertificates = reader.readArray(reader1 -> reader1.getBinary()); deserializedManagedClusterSecurityProfile.customCATrustCertificates = customCATrustCertificates; diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java index ad3b2f80545c..78e8613b9bdb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java @@ -29,13 +29,6 @@ public final class ManagedClusterSecurityProfileDefender */ private ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring; - /* - * Microsoft Defender settings for security gating, validates container images eligibility for deployment based on - * Defender for Containers security findings. Using Admission Controller, it either audits or prevents the - * deployment of images that do not meet security standards. - */ - private ManagedClusterSecurityProfileDefenderSecurityGating securityGating; - /** * Creates an instance of ManagedClusterSecurityProfileDefender class. */ @@ -90,31 +83,6 @@ public ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitorin return this; } - /** - * Get the securityGating property: Microsoft Defender settings for security gating, validates container images - * eligibility for deployment based on Defender for Containers security findings. Using Admission Controller, it - * either audits or prevents the deployment of images that do not meet security standards. - * - * @return the securityGating value. - */ - public ManagedClusterSecurityProfileDefenderSecurityGating securityGating() { - return this.securityGating; - } - - /** - * Set the securityGating property: Microsoft Defender settings for security gating, validates container images - * eligibility for deployment based on Defender for Containers security findings. Using Admission Controller, it - * either audits or prevents the deployment of images that do not meet security standards. - * - * @param securityGating the securityGating value to set. - * @return the ManagedClusterSecurityProfileDefender object itself. - */ - public ManagedClusterSecurityProfileDefender - withSecurityGating(ManagedClusterSecurityProfileDefenderSecurityGating securityGating) { - this.securityGating = securityGating; - return this; - } - /** * Validates the instance. * @@ -124,9 +92,6 @@ public void validate() { if (securityMonitoring() != null) { securityMonitoring().validate(); } - if (securityGating() != null) { - securityGating().validate(); - } } /** @@ -137,7 +102,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("logAnalyticsWorkspaceResourceId", this.logAnalyticsWorkspaceResourceId); jsonWriter.writeJsonField("securityMonitoring", this.securityMonitoring); - jsonWriter.writeJsonField("securityGating", this.securityGating); return jsonWriter.writeEndObject(); } @@ -163,9 +127,6 @@ public static ManagedClusterSecurityProfileDefender fromJson(JsonReader jsonRead } else if ("securityMonitoring".equals(fieldName)) { deserializedManagedClusterSecurityProfileDefender.securityMonitoring = ManagedClusterSecurityProfileDefenderSecurityMonitoring.fromJson(reader); - } else if ("securityGating".equals(fieldName)) { - deserializedManagedClusterSecurityProfileDefender.securityGating - = ManagedClusterSecurityProfileDefenderSecurityGating.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGating.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGating.java deleted file mode 100644 index 92847ad182fb..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGating.java +++ /dev/null @@ -1,184 +0,0 @@ -// 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; -import java.util.List; - -/** - * Microsoft Defender settings for security gating, validates container images eligibility for deployment based on - * Defender for Containers security findings. Using Admission Controller, it either audits or prevents the deployment of - * images that do not meet security standards. - */ -@Fluent -public final class ManagedClusterSecurityProfileDefenderSecurityGating - implements JsonSerializable { - /* - * Whether to enable Defender security gating. When enabled, the gating feature will scan container images and audit - * or block the deployment of images that do not meet security standards according to the configured security rules. - */ - private Boolean enabled; - - /* - * List of identities that the admission controller will make use of in order to pull security artifacts from the - * registry. These are the same identities used by the cluster to pull container images. Each identity provided - * should have federated identity credential attached to it. - */ - private List identities; - - /* - * In use only while registry access granted by secret rather than managed identity. Set whether to grant the - * Defender gating agent access to the cluster's secrets for pulling images from registries. If secret access is - * denied and the registry requires pull secrets, the add-on will not perform any image validation. Default value is - * false. - */ - private Boolean allowSecretAccess; - - /** - * Creates an instance of ManagedClusterSecurityProfileDefenderSecurityGating class. - */ - public ManagedClusterSecurityProfileDefenderSecurityGating() { - } - - /** - * Get the enabled property: Whether to enable Defender security gating. When enabled, the gating feature will scan - * container images and audit or block the deployment of images that do not meet security standards according to the - * configured security rules. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable Defender security gating. When enabled, the gating feature will scan - * container images and audit or block the deployment of images that do not meet security standards according to the - * configured security rules. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterSecurityProfileDefenderSecurityGating object itself. - */ - public ManagedClusterSecurityProfileDefenderSecurityGating withEnabled(Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the identities property: List of identities that the admission controller will make use of in order to pull - * security artifacts from the registry. These are the same identities used by the cluster to pull container images. - * Each identity provided should have federated identity credential attached to it. - * - * @return the identities value. - */ - public List identities() { - return this.identities; - } - - /** - * Set the identities property: List of identities that the admission controller will make use of in order to pull - * security artifacts from the registry. These are the same identities used by the cluster to pull container images. - * Each identity provided should have federated identity credential attached to it. - * - * @param identities the identities value to set. - * @return the ManagedClusterSecurityProfileDefenderSecurityGating object itself. - */ - public ManagedClusterSecurityProfileDefenderSecurityGating - withIdentities(List identities) { - this.identities = identities; - return this; - } - - /** - * Get the allowSecretAccess property: In use only while registry access granted by secret rather than managed - * identity. Set whether to grant the Defender gating agent access to the cluster's secrets for pulling images from - * registries. If secret access is denied and the registry requires pull secrets, the add-on will not perform any - * image validation. Default value is false. - * - * @return the allowSecretAccess value. - */ - public Boolean allowSecretAccess() { - return this.allowSecretAccess; - } - - /** - * Set the allowSecretAccess property: In use only while registry access granted by secret rather than managed - * identity. Set whether to grant the Defender gating agent access to the cluster's secrets for pulling images from - * registries. If secret access is denied and the registry requires pull secrets, the add-on will not perform any - * image validation. Default value is false. - * - * @param allowSecretAccess the allowSecretAccess value to set. - * @return the ManagedClusterSecurityProfileDefenderSecurityGating object itself. - */ - public ManagedClusterSecurityProfileDefenderSecurityGating withAllowSecretAccess(Boolean allowSecretAccess) { - this.allowSecretAccess = allowSecretAccess; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identities() != null) { - identities().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeBooleanField("enabled", this.enabled); - jsonWriter.writeArrayField("identities", this.identities, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeBooleanField("allowSecretAccess", this.allowSecretAccess); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterSecurityProfileDefenderSecurityGating from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSecurityProfileDefenderSecurityGating 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 ManagedClusterSecurityProfileDefenderSecurityGating. - */ - public static ManagedClusterSecurityProfileDefenderSecurityGating fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSecurityProfileDefenderSecurityGating deserializedManagedClusterSecurityProfileDefenderSecurityGating - = new ManagedClusterSecurityProfileDefenderSecurityGating(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterSecurityProfileDefenderSecurityGating.enabled - = reader.getNullable(JsonReader::getBoolean); - } else if ("identities".equals(fieldName)) { - List identities - = reader.readArray(reader1 -> ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem - .fromJson(reader1)); - deserializedManagedClusterSecurityProfileDefenderSecurityGating.identities = identities; - } else if ("allowSecretAccess".equals(fieldName)) { - deserializedManagedClusterSecurityProfileDefenderSecurityGating.allowSecretAccess - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSecurityProfileDefenderSecurityGating; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem.java deleted file mode 100644 index 1029c3faa92c..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem.java +++ /dev/null @@ -1,135 +0,0 @@ -// 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; - -/** - * The ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem model. - */ -@Fluent -public final class ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem - implements JsonSerializable { - /* - * The container registry for which the identity will be used; the identity specified here should have a federated - * identity credential attached to it. - */ - private String azureContainerRegistry; - - /* - * The identity object used to access the registry - */ - private UserAssignedIdentity identity; - - /** - * Creates an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem class. - */ - public ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem() { - } - - /** - * Get the azureContainerRegistry property: The container registry for which the identity will be used; the identity - * specified here should have a federated identity credential attached to it. - * - * @return the azureContainerRegistry value. - */ - public String azureContainerRegistry() { - return this.azureContainerRegistry; - } - - /** - * Set the azureContainerRegistry property: The container registry for which the identity will be used; the identity - * specified here should have a federated identity credential attached to it. - * - * @param azureContainerRegistry the azureContainerRegistry value to set. - * @return the ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem object itself. - */ - public ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem - withAzureContainerRegistry(String azureContainerRegistry) { - this.azureContainerRegistry = azureContainerRegistry; - return this; - } - - /** - * Get the identity property: The identity object used to access the registry. - * - * @return the identity value. - */ - public UserAssignedIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The identity object used to access the registry. - * - * @param identity the identity value to set. - * @return the ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem object itself. - */ - public ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem - withIdentity(UserAssignedIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("azureContainerRegistry", this.azureContainerRegistry); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem 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 - * ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem. - */ - public static ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem deserializedManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem - = new ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureContainerRegistry".equals(fieldName)) { - deserializedManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem.azureContainerRegistry - = reader.getString(); - } else if ("identity".equals(fieldName)) { - deserializedManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem.identity - = UserAssignedIdentity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java deleted file mode 100644 index 65ce8f74d785..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java +++ /dev/null @@ -1,96 +0,0 @@ -// 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; - -/** - * Image integrity related settings for the security profile. - */ -@Fluent -public final class ManagedClusterSecurityProfileImageIntegrity - implements JsonSerializable { - /* - * Whether to enable image integrity. The default value is false. - */ - private Boolean enabled; - - /** - * Creates an instance of ManagedClusterSecurityProfileImageIntegrity class. - */ - public ManagedClusterSecurityProfileImageIntegrity() { - } - - /** - * Get the enabled property: Whether to enable image integrity. The default value is false. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable image integrity. The default value is false. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterSecurityProfileImageIntegrity object itself. - */ - public ManagedClusterSecurityProfileImageIntegrity 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 ManagedClusterSecurityProfileImageIntegrity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSecurityProfileImageIntegrity 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 ManagedClusterSecurityProfileImageIntegrity. - */ - public static ManagedClusterSecurityProfileImageIntegrity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSecurityProfileImageIntegrity deserializedManagedClusterSecurityProfileImageIntegrity - = new ManagedClusterSecurityProfileImageIntegrity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterSecurityProfileImageIntegrity.enabled - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSecurityProfileImageIntegrity; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java deleted file mode 100644 index ae296c00861b..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java +++ /dev/null @@ -1,96 +0,0 @@ -// 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 Restriction settings for the security profile. - */ -@Fluent -public final class ManagedClusterSecurityProfileNodeRestriction - implements JsonSerializable { - /* - * Whether to enable Node Restriction - */ - private Boolean enabled; - - /** - * Creates an instance of ManagedClusterSecurityProfileNodeRestriction class. - */ - public ManagedClusterSecurityProfileNodeRestriction() { - } - - /** - * Get the enabled property: Whether to enable Node Restriction. - * - * @return the enabled value. - */ - public Boolean enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable Node Restriction. - * - * @param enabled the enabled value to set. - * @return the ManagedClusterSecurityProfileNodeRestriction object itself. - */ - public ManagedClusterSecurityProfileNodeRestriction 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 ManagedClusterSecurityProfileNodeRestriction from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSecurityProfileNodeRestriction 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 ManagedClusterSecurityProfileNodeRestriction. - */ - public static ManagedClusterSecurityProfileNodeRestriction fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSecurityProfileNodeRestriction deserializedManagedClusterSecurityProfileNodeRestriction - = new ManagedClusterSecurityProfileNodeRestriction(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedManagedClusterSecurityProfileNodeRestriction.enabled - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSecurityProfileNodeRestriction; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSnapshotListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSnapshotListResult.java deleted file mode 100644 index c424e9052a9e..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSnapshotListResult.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; -import java.io.IOException; -import java.util.List; - -/** - * The response from the List Managed Cluster Snapshots operation. - */ -@Fluent -public final class ManagedClusterSnapshotListResult implements JsonSerializable { - /* - * The list of managed cluster snapshots. - */ - private List value; - - /* - * The URL to get the next set of managed cluster snapshot results. - */ - private String nextLink; - - /** - * Creates an instance of ManagedClusterSnapshotListResult class. - */ - public ManagedClusterSnapshotListResult() { - } - - /** - * Get the value property: The list of managed cluster snapshots. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of managed cluster snapshots. - * - * @param value the value value to set. - * @return the ManagedClusterSnapshotListResult object itself. - */ - public ManagedClusterSnapshotListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of managed cluster snapshot results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedClusterSnapshotListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedClusterSnapshotListResult 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 ManagedClusterSnapshotListResult. - */ - public static ManagedClusterSnapshotListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedClusterSnapshotListResult deserializedManagedClusterSnapshotListResult - = new ManagedClusterSnapshotListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ManagedClusterSnapshotInner.fromJson(reader1)); - deserializedManagedClusterSnapshotListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedManagedClusterSnapshotListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedClusterSnapshotListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java index ccb43c95014c..7a94fabab0c8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java @@ -22,11 +22,6 @@ public final class ManagedClusterStorageProfileDiskCsiDriver */ private Boolean enabled; - /* - * The version of AzureDisk CSI Driver. The default value is v1. - */ - private String version; - /** * Creates an instance of ManagedClusterStorageProfileDiskCsiDriver class. */ @@ -53,26 +48,6 @@ public ManagedClusterStorageProfileDiskCsiDriver withEnabled(Boolean enabled) { return this; } - /** - * Get the version property: The version of AzureDisk CSI Driver. The default value is v1. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: The version of AzureDisk CSI Driver. The default value is v1. - * - * @param version the version value to set. - * @return the ManagedClusterStorageProfileDiskCsiDriver object itself. - */ - public ManagedClusterStorageProfileDiskCsiDriver withVersion(String version) { - this.version = version; - return this; - } - /** * Validates the instance. * @@ -88,7 +63,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeBooleanField("enabled", this.enabled); - jsonWriter.writeStringField("version", this.version); return jsonWriter.writeEndObject(); } @@ -111,8 +85,6 @@ public static ManagedClusterStorageProfileDiskCsiDriver fromJson(JsonReader json if ("enabled".equals(fieldName)) { deserializedManagedClusterStorageProfileDiskCsiDriver.enabled = reader.getNullable(JsonReader::getBoolean); - } else if ("version".equals(fieldName)) { - deserializedManagedClusterStorageProfileDiskCsiDriver.version = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java index b1d3f03a048c..c8824d320110 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java @@ -23,7 +23,7 @@ public final class ManagedClusterWorkloadAutoScalerProfile private ManagedClusterWorkloadAutoScalerProfileKeda keda; /* - * The verticalPodAutoscaler property. + * VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ private ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler verticalPodAutoscaler; @@ -54,7 +54,8 @@ public ManagedClusterWorkloadAutoScalerProfile withKeda(ManagedClusterWorkloadAu } /** - * Get the verticalPodAutoscaler property: The verticalPodAutoscaler property. + * Get the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler + * profile. * * @return the verticalPodAutoscaler value. */ @@ -63,7 +64,8 @@ public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler verticalPodA } /** - * Set the verticalPodAutoscaler property: The verticalPodAutoscaler property. + * Set the verticalPodAutoscaler property: VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler + * profile. * * @param verticalPodAutoscaler the verticalPodAutoscaler value to set. * @return the ManagedClusterWorkloadAutoScalerProfile object itself. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java index 01c22f2e3d84..391810a872f1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java @@ -12,21 +12,16 @@ import java.io.IOException; /** - * The ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler model. + * VPA (Vertical Pod Autoscaler) settings for the workload auto-scaler profile. */ @Fluent public final class ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler implements JsonSerializable { /* - * Whether to enable VPA add-on in cluster. Default value is false. + * Whether to enable VPA. Default value is false. */ private boolean enabled; - /* - * Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. - */ - private AddonAutoscaling addonAutoscaling; - /** * Creates an instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler class. */ @@ -34,7 +29,7 @@ public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler() { } /** - * Get the enabled property: Whether to enable VPA add-on in cluster. Default value is false. + * Get the enabled property: Whether to enable VPA. Default value is false. * * @return the enabled value. */ @@ -43,7 +38,7 @@ public boolean enabled() { } /** - * Set the enabled property: Whether to enable VPA add-on in cluster. Default value is false. + * Set the enabled property: Whether to enable VPA. Default value is false. * * @param enabled the enabled value to set. * @return the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler object itself. @@ -53,27 +48,6 @@ public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler withEnabled( return this; } - /** - * Get the addonAutoscaling property: Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. - * - * @return the addonAutoscaling value. - */ - public AddonAutoscaling addonAutoscaling() { - return this.addonAutoscaling; - } - - /** - * Set the addonAutoscaling property: Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. - * - * @param addonAutoscaling the addonAutoscaling value to set. - * @return the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler object itself. - */ - public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler - withAddonAutoscaling(AddonAutoscaling addonAutoscaling) { - this.addonAutoscaling = addonAutoscaling; - return this; - } - /** * Validates the instance. * @@ -89,8 +63,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeBooleanField("enabled", this.enabled); - jsonWriter.writeStringField("addonAutoscaling", - this.addonAutoscaling == null ? null : this.addonAutoscaling.toString()); return jsonWriter.writeEndObject(); } @@ -116,9 +88,6 @@ public static ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler fromJ if ("enabled".equals(fieldName)) { deserializedManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.enabled = reader.getBoolean(); - } else if ("addonAutoscaling".equals(fieldName)) { - deserializedManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.addonAutoscaling - = AddonAutoscaling.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedGatewayType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedGatewayType.java deleted file mode 100644 index f12707fc5b6b..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedGatewayType.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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; - -/** - * Configuration for the managed Gateway API installation. If not specified, the default is 'Disabled'. See - * https://aka.ms/k8s-gateway-api for more details. - */ -public final class ManagedGatewayType extends ExpandableStringEnum { - /** - * Static value Disabled for ManagedGatewayType. - */ - public static final ManagedGatewayType DISABLED = fromString("Disabled"); - - /** - * Static value Standard for ManagedGatewayType. - */ - public static final ManagedGatewayType STANDARD = fromString("Standard"); - - /** - * Creates a new instance of ManagedGatewayType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ManagedGatewayType() { - } - - /** - * Creates or finds a ManagedGatewayType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedGatewayType. - */ - public static ManagedGatewayType fromString(String name) { - return fromString(name, ManagedGatewayType.class); - } - - /** - * Gets known ManagedGatewayType values. - * - * @return known ManagedGatewayType values. - */ - public static Collection values() { - return values(ManagedGatewayType.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java deleted file mode 100644 index dc08ab89ace1..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java +++ /dev/null @@ -1,125 +0,0 @@ -// 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.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Mesh membership properties of a managed cluster. - */ -@Fluent -public final class MeshMembershipProperties implements JsonSerializable { - /* - * The current provisioning state of the Mesh Membership. - */ - private MeshMembershipProvisioningState provisioningState; - - /* - * The ARM resource id for the managed mesh member. This is of the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{ - * appLinkName}/appLinkMembers/{appLinkMemberName}'. Visit https://aka.ms/applink for more information. - */ - private String managedMeshId; - - /** - * Creates an instance of MeshMembershipProperties class. - */ - public MeshMembershipProperties() { - } - - /** - * Get the provisioningState property: The current provisioning state of the Mesh Membership. - * - * @return the provisioningState value. - */ - public MeshMembershipProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the managedMeshId property: The ARM resource id for the managed mesh member. This is of the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{appLinkName}/appLinkMembers/{appLinkMemberName}'. - * Visit https://aka.ms/applink for more information. - * - * @return the managedMeshId value. - */ - public String managedMeshId() { - return this.managedMeshId; - } - - /** - * Set the managedMeshId property: The ARM resource id for the managed mesh member. This is of the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{appLinkName}/appLinkMembers/{appLinkMemberName}'. - * Visit https://aka.ms/applink for more information. - * - * @param managedMeshId the managedMeshId value to set. - * @return the MeshMembershipProperties object itself. - */ - public MeshMembershipProperties withManagedMeshId(String managedMeshId) { - this.managedMeshId = managedMeshId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (managedMeshId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property managedMeshId in model MeshMembershipProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MeshMembershipProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("managedMeshID", this.managedMeshId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MeshMembershipProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MeshMembershipProperties if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the MeshMembershipProperties. - */ - public static MeshMembershipProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MeshMembershipProperties deserializedMeshMembershipProperties = new MeshMembershipProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("managedMeshID".equals(fieldName)) { - deserializedMeshMembershipProperties.managedMeshId = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedMeshMembershipProperties.provisioningState - = MeshMembershipProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedMeshMembershipProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java deleted file mode 100644 index ab03b199aed9..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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 provisioning state of the last accepted operation. - */ -public final class MeshMembershipProvisioningState extends ExpandableStringEnum { - /** - * Static value Canceled for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState CANCELED = fromString("Canceled"); - - /** - * Static value Creating for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Deleting for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState DELETING = fromString("Deleting"); - - /** - * Static value Failed for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Succeeded for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Updating for MeshMembershipProvisioningState. - */ - public static final MeshMembershipProvisioningState UPDATING = fromString("Updating"); - - /** - * Creates a new instance of MeshMembershipProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public MeshMembershipProvisioningState() { - } - - /** - * Creates or finds a MeshMembershipProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding MeshMembershipProvisioningState. - */ - public static MeshMembershipProvisioningState fromString(String name) { - return fromString(name, MeshMembershipProvisioningState.class); - } - - /** - * Gets known MeshMembershipProvisioningState values. - * - * @return known MeshMembershipProvisioningState values. - */ - public static Collection values() { - return values(MeshMembershipProvisioningState.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipsListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipsListResult.java deleted file mode 100644 index 8702c4098ab1..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipsListResult.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; -import java.io.IOException; -import java.util.List; - -/** - * The result of a request to list mesh memberships in a managed cluster. - */ -@Fluent -public final class MeshMembershipsListResult implements JsonSerializable { - /* - * The list of mesh memberships. - */ - private List value; - - /* - * The URL to get the next set of mesh membership results. - */ - private String nextLink; - - /** - * Creates an instance of MeshMembershipsListResult class. - */ - public MeshMembershipsListResult() { - } - - /** - * Get the value property: The list of mesh memberships. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The list of mesh memberships. - * - * @param value the value value to set. - * @return the MeshMembershipsListResult object itself. - */ - public MeshMembershipsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of mesh membership results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MeshMembershipsListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MeshMembershipsListResult 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 MeshMembershipsListResult. - */ - public static MeshMembershipsListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MeshMembershipsListResult deserializedMeshMembershipsListResult = new MeshMembershipsListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> MeshMembershipInner.fromJson(reader1)); - deserializedMeshMembershipsListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedMeshMembershipsListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedMeshMembershipsListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java deleted file mode 100644 index 89f007301d6e..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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; - -/** - * Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). - */ -public final class Mode extends ExpandableStringEnum { - /** - * Static value IPTABLES for Mode. - */ - public static final Mode IPTABLES = fromString("IPTABLES"); - - /** - * Static value IPVS for Mode. - */ - public static final Mode IPVS = fromString("IPVS"); - - /** - * Static value NFTABLES for Mode. - */ - public static final Mode NFTABLES = fromString("NFTABLES"); - - /** - * Creates a new instance of Mode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public Mode() { - } - - /** - * Creates or finds a Mode from its string representation. - * - * @param name a name to look for. - * @return the corresponding Mode. - */ - public static Mode fromString(String name) { - return fromString(name, Mode.class); - } - - /** - * Gets known Mode values. - * - * @return known Mode values. - */ - public static Collection values() { - return values(Mode.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java deleted file mode 100644 index df9b9e8601f6..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java +++ /dev/null @@ -1,209 +0,0 @@ -// 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; - -/** - * network profile for managed cluster snapshot, these properties are read only. - */ -@Fluent -public final class NetworkProfileForSnapshot implements JsonSerializable { - /* - * networkPlugin for managed cluster snapshot. - */ - private NetworkPlugin networkPlugin; - - /* - * NetworkPluginMode for managed cluster snapshot. - */ - private NetworkPluginMode networkPluginMode; - - /* - * networkPolicy for managed cluster snapshot. - */ - private NetworkPolicy networkPolicy; - - /* - * networkMode for managed cluster snapshot. - */ - private NetworkMode networkMode; - - /* - * loadBalancerSku for managed cluster snapshot. - */ - private LoadBalancerSku loadBalancerSku; - - /** - * Creates an instance of NetworkProfileForSnapshot class. - */ - public NetworkProfileForSnapshot() { - } - - /** - * Get the networkPlugin property: networkPlugin for managed cluster snapshot. - * - * @return the networkPlugin value. - */ - public NetworkPlugin networkPlugin() { - return this.networkPlugin; - } - - /** - * Set the networkPlugin property: networkPlugin for managed cluster snapshot. - * - * @param networkPlugin the networkPlugin value to set. - * @return the NetworkProfileForSnapshot object itself. - */ - public NetworkProfileForSnapshot withNetworkPlugin(NetworkPlugin networkPlugin) { - this.networkPlugin = networkPlugin; - return this; - } - - /** - * Get the networkPluginMode property: NetworkPluginMode for managed cluster snapshot. - * - * @return the networkPluginMode value. - */ - public NetworkPluginMode networkPluginMode() { - return this.networkPluginMode; - } - - /** - * Set the networkPluginMode property: NetworkPluginMode for managed cluster snapshot. - * - * @param networkPluginMode the networkPluginMode value to set. - * @return the NetworkProfileForSnapshot object itself. - */ - public NetworkProfileForSnapshot withNetworkPluginMode(NetworkPluginMode networkPluginMode) { - this.networkPluginMode = networkPluginMode; - return this; - } - - /** - * Get the networkPolicy property: networkPolicy for managed cluster snapshot. - * - * @return the networkPolicy value. - */ - public NetworkPolicy networkPolicy() { - return this.networkPolicy; - } - - /** - * Set the networkPolicy property: networkPolicy for managed cluster snapshot. - * - * @param networkPolicy the networkPolicy value to set. - * @return the NetworkProfileForSnapshot object itself. - */ - public NetworkProfileForSnapshot withNetworkPolicy(NetworkPolicy networkPolicy) { - this.networkPolicy = networkPolicy; - return this; - } - - /** - * Get the networkMode property: networkMode for managed cluster snapshot. - * - * @return the networkMode value. - */ - public NetworkMode networkMode() { - return this.networkMode; - } - - /** - * Set the networkMode property: networkMode for managed cluster snapshot. - * - * @param networkMode the networkMode value to set. - * @return the NetworkProfileForSnapshot object itself. - */ - public NetworkProfileForSnapshot withNetworkMode(NetworkMode networkMode) { - this.networkMode = networkMode; - return this; - } - - /** - * Get the loadBalancerSku property: loadBalancerSku for managed cluster snapshot. - * - * @return the loadBalancerSku value. - */ - public LoadBalancerSku loadBalancerSku() { - return this.loadBalancerSku; - } - - /** - * Set the loadBalancerSku property: loadBalancerSku for managed cluster snapshot. - * - * @param loadBalancerSku the loadBalancerSku value to set. - * @return the NetworkProfileForSnapshot object itself. - */ - public NetworkProfileForSnapshot withLoadBalancerSku(LoadBalancerSku loadBalancerSku) { - this.loadBalancerSku = loadBalancerSku; - 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("networkPlugin", this.networkPlugin == null ? null : this.networkPlugin.toString()); - jsonWriter.writeStringField("networkPluginMode", - this.networkPluginMode == null ? null : this.networkPluginMode.toString()); - jsonWriter.writeStringField("networkPolicy", this.networkPolicy == null ? null : this.networkPolicy.toString()); - jsonWriter.writeStringField("networkMode", this.networkMode == null ? null : this.networkMode.toString()); - jsonWriter.writeStringField("loadBalancerSku", - this.loadBalancerSku == null ? null : this.loadBalancerSku.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NetworkProfileForSnapshot from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NetworkProfileForSnapshot 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 NetworkProfileForSnapshot. - */ - public static NetworkProfileForSnapshot fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NetworkProfileForSnapshot deserializedNetworkProfileForSnapshot = new NetworkProfileForSnapshot(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("networkPlugin".equals(fieldName)) { - deserializedNetworkProfileForSnapshot.networkPlugin = NetworkPlugin.fromString(reader.getString()); - } else if ("networkPluginMode".equals(fieldName)) { - deserializedNetworkProfileForSnapshot.networkPluginMode - = NetworkPluginMode.fromString(reader.getString()); - } else if ("networkPolicy".equals(fieldName)) { - deserializedNetworkProfileForSnapshot.networkPolicy = NetworkPolicy.fromString(reader.getString()); - } else if ("networkMode".equals(fieldName)) { - deserializedNetworkProfileForSnapshot.networkMode = NetworkMode.fromString(reader.getString()); - } else if ("loadBalancerSku".equals(fieldName)) { - deserializedNetworkProfileForSnapshot.loadBalancerSku - = LoadBalancerSku.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedNetworkProfileForSnapshot; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeCustomizationProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeCustomizationProfile.java deleted file mode 100644 index 67592d6f63a9..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeCustomizationProfile.java +++ /dev/null @@ -1,96 +0,0 @@ -// 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; - -/** - * Settings to determine the node customization used to provision nodes in a pool. - */ -@Fluent -public final class NodeCustomizationProfile implements JsonSerializable { - /* - * The resource ID of the node customization resource to use. This can be a version. Omitting the version will use - * the latest version of the node customization. - */ - private String nodeCustomizationId; - - /** - * Creates an instance of NodeCustomizationProfile class. - */ - public NodeCustomizationProfile() { - } - - /** - * Get the nodeCustomizationId property: The resource ID of the node customization resource to use. This can be a - * version. Omitting the version will use the latest version of the node customization. - * - * @return the nodeCustomizationId value. - */ - public String nodeCustomizationId() { - return this.nodeCustomizationId; - } - - /** - * Set the nodeCustomizationId property: The resource ID of the node customization resource to use. This can be a - * version. Omitting the version will use the latest version of the node customization. - * - * @param nodeCustomizationId the nodeCustomizationId value to set. - * @return the NodeCustomizationProfile object itself. - */ - public NodeCustomizationProfile withNodeCustomizationId(String nodeCustomizationId) { - this.nodeCustomizationId = nodeCustomizationId; - 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("nodeCustomizationId", this.nodeCustomizationId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NodeCustomizationProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NodeCustomizationProfile 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 NodeCustomizationProfile. - */ - public static NodeCustomizationProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NodeCustomizationProfile deserializedNodeCustomizationProfile = new NodeCustomizationProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("nodeCustomizationId".equals(fieldName)) { - deserializedNodeCustomizationProfile.nodeCustomizationId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedNodeCustomizationProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageVersionsListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageVersionsListResult.java deleted file mode 100644 index bd57042c4fe0..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageVersionsListResult.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; -import java.io.IOException; -import java.util.List; - -/** - * Holds an array NodeImageVersions. - */ -@Fluent -public final class NodeImageVersionsListResult implements JsonSerializable { - /* - * Array of AKS Node Image versions. - */ - private List value; - - /* - * The URL to get the next set of machine results. - */ - private String nextLink; - - /** - * Creates an instance of NodeImageVersionsListResult class. - */ - public NodeImageVersionsListResult() { - } - - /** - * Get the value property: Array of AKS Node Image versions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: Array of AKS Node Image versions. - * - * @param value the value value to set. - * @return the NodeImageVersionsListResult object itself. - */ - public NodeImageVersionsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of machine results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of NodeImageVersionsListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of NodeImageVersionsListResult 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 NodeImageVersionsListResult. - */ - public static NodeImageVersionsListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - NodeImageVersionsListResult deserializedNodeImageVersionsListResult = new NodeImageVersionsListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> NodeImageVersionInner.fromJson(reader1)); - deserializedNodeImageVersionsListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedNodeImageVersionsListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedNodeImageVersionsListResult; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java index 8c741e7ae4c4..8f9de197ee22 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java @@ -8,8 +8,7 @@ import java.util.Collection; /** - * Manner in which the OS on your nodes is updated. The default is Unmanaged, but may change to either NodeImage or - * SecurityPatch at GA. + * Node OS Upgrade Channel. Manner in which the OS on your nodes is updated. The default is NodeImage. */ public final class NodeOSUpgradeChannel extends ExpandableStringEnum { /** @@ -23,14 +22,14 @@ public final class NodeOSUpgradeChannel extends ExpandableStringEnum { /** @@ -17,11 +17,6 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku UBUNTU = fromString("Ubuntu"); - /** - * Static value Mariner for OSSku. - */ - public static final OSSku MARINER = fromString("Mariner"); - /** * Static value AzureLinux for OSSku. */ @@ -32,11 +27,6 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku AZURE_LINUX3 = fromString("AzureLinux3"); - /** - * Static value Flatcar for OSSku. - */ - public static final OSSku FLATCAR = fromString("Flatcar"); - /** * Static value CBLMariner for OSSku. */ @@ -52,16 +42,6 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku WINDOWS2022 = fromString("Windows2022"); - /** - * Static value Windows2025 for OSSku. - */ - public static final OSSku WINDOWS2025 = fromString("Windows2025"); - - /** - * Static value WindowsAnnual for OSSku. - */ - public static final OSSku WINDOWS_ANNUAL = fromString("WindowsAnnual"); - /** * Static value Ubuntu2204 for OSSku. */ diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OperationStatusResultList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OperationStatusResultList.java deleted file mode 100644 index 6ee5edce05c9..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OperationStatusResultList.java +++ /dev/null @@ -1,104 +0,0 @@ -// 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.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; -import java.io.IOException; -import java.util.List; - -/** - * The operations list. It contains an URL link to get the next set of results. - */ -@Immutable -public final class OperationStatusResultList implements JsonSerializable { - /* - * List of operations - */ - private List value; - - /* - * URL to get the next set of operation list results (if there are any). - */ - private String nextLink; - - /** - * Creates an instance of OperationStatusResultList class. - */ - public OperationStatusResultList() { - } - - /** - * Get the value property: List of operations. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OperationStatusResultList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OperationStatusResultList 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 OperationStatusResultList. - */ - public static OperationStatusResultList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OperationStatusResultList deserializedOperationStatusResultList = new OperationStatusResultList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1)); - deserializedOperationStatusResultList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedOperationStatusResultList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedOperationStatusResultList; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java deleted file mode 100644 index 27748a54944a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java +++ /dev/null @@ -1,61 +0,0 @@ -// 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; - -/** - * operator represents a key's relationship to a set of values. Valid operators are In and NotIn. - */ -public final class Operator extends ExpandableStringEnum { - /** - * Static value In for Operator. - */ - public static final Operator IN = fromString("In"); - - /** - * Static value NotIn for Operator. - */ - public static final Operator NOT_IN = fromString("NotIn"); - - /** - * Static value Exists for Operator. - */ - public static final Operator EXISTS = fromString("Exists"); - - /** - * Static value DoesNotExist for Operator. - */ - public static final Operator DOES_NOT_EXIST = fromString("DoesNotExist"); - - /** - * Creates a new instance of Operator value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public Operator() { - } - - /** - * Creates or finds a Operator from its string representation. - * - * @param name a name to look for. - * @return the corresponding Operator. - */ - public static Operator fromString(String name) { - return fromString(name, Operator.class); - } - - /** - * Gets known Operator values. - * - * @return known Operator values. - */ - public static Collection values() { - return values(Operator.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java deleted file mode 100644 index cef2262fdc22..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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; - -/** - * Defines access to special link local addresses (Azure Instance Metadata Service, aka IMDS) for pods with - * hostNetwork=false. If not specified, the default is 'IMDS'. - */ -public final class PodLinkLocalAccess extends ExpandableStringEnum { - /** - * Static value IMDS for PodLinkLocalAccess. - */ - public static final PodLinkLocalAccess IMDS = fromString("IMDS"); - - /** - * Static value None for PodLinkLocalAccess. - */ - public static final PodLinkLocalAccess NONE = fromString("None"); - - /** - * Creates a new instance of PodLinkLocalAccess value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PodLinkLocalAccess() { - } - - /** - * Creates or finds a PodLinkLocalAccess from its string representation. - * - * @param name a name to look for. - * @return the corresponding PodLinkLocalAccess. - */ - public static PodLinkLocalAccess fromString(String name) { - return fromString(name, PodLinkLocalAccess.class); - } - - /** - * Gets known PodLinkLocalAccess values. - * - * @return known PodLinkLocalAccess values. - */ - public static Collection values() { - return values(PodLinkLocalAccess.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ProxyRedirectionMechanism.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ProxyRedirectionMechanism.java deleted file mode 100644 index 24299d253630..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ProxyRedirectionMechanism.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Mode of traffic redirection. - */ -public final class ProxyRedirectionMechanism extends ExpandableStringEnum { - /** - * Static value InitContainers for ProxyRedirectionMechanism. - */ - public static final ProxyRedirectionMechanism INIT_CONTAINERS = fromString("InitContainers"); - - /** - * Static value CNIChaining for ProxyRedirectionMechanism. - */ - public static final ProxyRedirectionMechanism CNICHAINING = fromString("CNIChaining"); - - /** - * Creates a new instance of ProxyRedirectionMechanism value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ProxyRedirectionMechanism() { - } - - /** - * Creates or finds a ProxyRedirectionMechanism from its string representation. - * - * @param name a name to look for. - * @return the corresponding ProxyRedirectionMechanism. - */ - public static ProxyRedirectionMechanism fromString(String name) { - return fromString(name, ProxyRedirectionMechanism.class); - } - - /** - * Gets known ProxyRedirectionMechanism values. - * - * @return known ProxyRedirectionMechanism values. - */ - public static Collection values() { - return values(ProxyRedirectionMechanism.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java index 2402a0e06db8..fbe44e756c02 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java @@ -21,11 +21,6 @@ public final class PublicNetworkAccess extends ExpandableStringEnum { - /* - * The load balancer names list. - */ - private List loadBalancerNames; - - /** - * Creates an instance of RebalanceLoadBalancersRequestBody class. - */ - public RebalanceLoadBalancersRequestBody() { - } - - /** - * Get the loadBalancerNames property: The load balancer names list. - * - * @return the loadBalancerNames value. - */ - public List loadBalancerNames() { - return this.loadBalancerNames; - } - - /** - * Set the loadBalancerNames property: The load balancer names list. - * - * @param loadBalancerNames the loadBalancerNames value to set. - * @return the RebalanceLoadBalancersRequestBody object itself. - */ - public RebalanceLoadBalancersRequestBody withLoadBalancerNames(List loadBalancerNames) { - this.loadBalancerNames = loadBalancerNames; - 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.writeArrayField("loadBalancerNames", this.loadBalancerNames, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RebalanceLoadBalancersRequestBody from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RebalanceLoadBalancersRequestBody 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 RebalanceLoadBalancersRequestBody. - */ - public static RebalanceLoadBalancersRequestBody fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RebalanceLoadBalancersRequestBody deserializedRebalanceLoadBalancersRequestBody - = new RebalanceLoadBalancersRequestBody(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("loadBalancerNames".equals(fieldName)) { - List loadBalancerNames = reader.readArray(reader1 -> reader1.getString()); - deserializedRebalanceLoadBalancersRequestBody.loadBalancerNames = loadBalancerNames; - } else { - reader.skipChildren(); - } - } - - return deserializedRebalanceLoadBalancersRequestBody; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java index c97ef4a7fdbd..aa8addd1d0cf 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java @@ -23,7 +23,7 @@ public final class RelativeMonthlySchedule implements JsonSerializable { /** diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsList.java deleted file mode 100644 index d806f3572976..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsList.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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 com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; -import java.io.IOException; -import java.util.List; - -/** - * Hold values properties, which is array of SafeguardsVersions. - */ -@Fluent -public final class SafeguardsAvailableVersionsList implements JsonSerializable { - /* - * Array of AKS supported Safeguards versions. - */ - private List value; - - /* - * The URL to get the next Safeguards available version. - */ - private String nextLink; - - /** - * Creates an instance of SafeguardsAvailableVersionsList class. - */ - public SafeguardsAvailableVersionsList() { - } - - /** - * Get the value property: Array of AKS supported Safeguards versions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: Array of AKS supported Safeguards versions. - * - * @param value the value value to set. - * @return the SafeguardsAvailableVersionsList object itself. - */ - public SafeguardsAvailableVersionsList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next Safeguards available version. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SafeguardsAvailableVersionsList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SafeguardsAvailableVersionsList 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 SafeguardsAvailableVersionsList. - */ - public static SafeguardsAvailableVersionsList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SafeguardsAvailableVersionsList deserializedSafeguardsAvailableVersionsList - = new SafeguardsAvailableVersionsList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> SafeguardsAvailableVersionInner.fromJson(reader1)); - deserializedSafeguardsAvailableVersionsList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedSafeguardsAvailableVersionsList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSafeguardsAvailableVersionsList; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java deleted file mode 100644 index 8e3f29bd512f..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java +++ /dev/null @@ -1,101 +0,0 @@ -// 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.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Whether the version is default or not and support info. - */ -@Immutable -public final class SafeguardsAvailableVersionsProperties - implements JsonSerializable { - /* - * The isDefaultVersion property. - */ - private Boolean isDefaultVersion; - - /* - * Whether the version is preview or stable. - */ - private SafeguardsSupport support; - - /** - * Creates an instance of SafeguardsAvailableVersionsProperties class. - */ - public SafeguardsAvailableVersionsProperties() { - } - - /** - * Get the isDefaultVersion property: The isDefaultVersion property. - * - * @return the isDefaultVersion value. - */ - public Boolean isDefaultVersion() { - return this.isDefaultVersion; - } - - /** - * Get the support property: Whether the version is preview or stable. - * - * @return the support value. - */ - public SafeguardsSupport support() { - return this.support; - } - - /** - * 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(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SafeguardsAvailableVersionsProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SafeguardsAvailableVersionsProperties 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 SafeguardsAvailableVersionsProperties. - */ - public static SafeguardsAvailableVersionsProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SafeguardsAvailableVersionsProperties deserializedSafeguardsAvailableVersionsProperties - = new SafeguardsAvailableVersionsProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("isDefaultVersion".equals(fieldName)) { - deserializedSafeguardsAvailableVersionsProperties.isDefaultVersion - = reader.getNullable(JsonReader::getBoolean); - } else if ("support".equals(fieldName)) { - deserializedSafeguardsAvailableVersionsProperties.support - = SafeguardsSupport.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedSafeguardsAvailableVersionsProperties; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java deleted file mode 100644 index 797c2c7c429a..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Whether the version is preview or stable. - */ -public final class SafeguardsSupport extends ExpandableStringEnum { - /** - * Static value Preview for SafeguardsSupport. - */ - public static final SafeguardsSupport PREVIEW = fromString("Preview"); - - /** - * Static value Stable for SafeguardsSupport. - */ - public static final SafeguardsSupport STABLE = fromString("Stable"); - - /** - * Creates a new instance of SafeguardsSupport value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SafeguardsSupport() { - } - - /** - * Creates or finds a SafeguardsSupport from its string representation. - * - * @param name a name to look for. - * @return the corresponding SafeguardsSupport. - */ - public static SafeguardsSupport fromString(String name) { - return fromString(name, SafeguardsSupport.class); - } - - /** - * Gets known SafeguardsSupport values. - * - * @return known SafeguardsSupport values. - */ - public static Collection values() { - return values(SafeguardsSupport.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java index ecb2a1b91692..1796156c2698 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java @@ -22,11 +22,6 @@ public final class ScaleProfile implements JsonSerializable { */ private List manual; - /* - * Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range. - */ - private AutoScaleProfile autoscale; - /** * Creates an instance of ScaleProfile class. */ @@ -53,28 +48,6 @@ public ScaleProfile withManual(List manual) { return this; } - /** - * Get the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a - * predefined size range. - * - * @return the autoscale value. - */ - public AutoScaleProfile autoscale() { - return this.autoscale; - } - - /** - * Set the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a - * predefined size range. - * - * @param autoscale the autoscale value to set. - * @return the ScaleProfile object itself. - */ - public ScaleProfile withAutoscale(AutoScaleProfile autoscale) { - this.autoscale = autoscale; - return this; - } - /** * Validates the instance. * @@ -84,9 +57,6 @@ public void validate() { if (manual() != null) { manual().forEach(e -> e.validate()); } - if (autoscale() != null) { - autoscale().validate(); - } } /** @@ -96,7 +66,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("manual", this.manual, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("autoscale", this.autoscale); return jsonWriter.writeEndObject(); } @@ -118,8 +87,6 @@ public static ScaleProfile fromJson(JsonReader jsonReader) throws IOException { if ("manual".equals(fieldName)) { List manual = reader.readArray(reader1 -> ManualScaleProfile.fromJson(reader1)); deserializedScaleProfile.manual = manual; - } else if ("autoscale".equals(fieldName)) { - deserializedScaleProfile.autoscale = AutoScaleProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerConfigMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerConfigMode.java deleted file mode 100644 index 9a803d31eb10..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerConfigMode.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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 config customization mode for this scheduler instance. - */ -public final class SchedulerConfigMode extends ExpandableStringEnum { - /** - * Static value Default for SchedulerConfigMode. - */ - public static final SchedulerConfigMode DEFAULT = fromString("Default"); - - /** - * Static value ManagedByCRD for SchedulerConfigMode. - */ - public static final SchedulerConfigMode MANAGED_BY_CRD = fromString("ManagedByCRD"); - - /** - * Creates a new instance of SchedulerConfigMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SchedulerConfigMode() { - } - - /** - * Creates or finds a SchedulerConfigMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding SchedulerConfigMode. - */ - public static SchedulerConfigMode fromString(String name) { - return fromString(name, SchedulerConfigMode.class); - } - - /** - * Gets known SchedulerConfigMode values. - * - * @return known SchedulerConfigMode values. - */ - public static Collection values() { - return values(SchedulerConfigMode.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerInstanceProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerInstanceProfile.java deleted file mode 100644 index e76e78219620..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerInstanceProfile.java +++ /dev/null @@ -1,95 +0,0 @@ -// 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; - -/** - * The scheduler profile for a single scheduler instance. - */ -@Fluent -public final class SchedulerInstanceProfile implements JsonSerializable { - /* - * The config customization mode for this scheduler instance. - */ - private SchedulerConfigMode schedulerConfigMode; - - /** - * Creates an instance of SchedulerInstanceProfile class. - */ - public SchedulerInstanceProfile() { - } - - /** - * Get the schedulerConfigMode property: The config customization mode for this scheduler instance. - * - * @return the schedulerConfigMode value. - */ - public SchedulerConfigMode schedulerConfigMode() { - return this.schedulerConfigMode; - } - - /** - * Set the schedulerConfigMode property: The config customization mode for this scheduler instance. - * - * @param schedulerConfigMode the schedulerConfigMode value to set. - * @return the SchedulerInstanceProfile object itself. - */ - public SchedulerInstanceProfile withSchedulerConfigMode(SchedulerConfigMode schedulerConfigMode) { - this.schedulerConfigMode = schedulerConfigMode; - 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("schedulerConfigMode", - this.schedulerConfigMode == null ? null : this.schedulerConfigMode.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SchedulerInstanceProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SchedulerInstanceProfile 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 SchedulerInstanceProfile. - */ - public static SchedulerInstanceProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SchedulerInstanceProfile deserializedSchedulerInstanceProfile = new SchedulerInstanceProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("schedulerConfigMode".equals(fieldName)) { - deserializedSchedulerInstanceProfile.schedulerConfigMode - = SchedulerConfigMode.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedSchedulerInstanceProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfile.java deleted file mode 100644 index 8ec16cb1c505..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfile.java +++ /dev/null @@ -1,98 +0,0 @@ -// 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; - -/** - * The pod scheduler profile for the cluster. - */ -@Fluent -public final class SchedulerProfile implements JsonSerializable { - /* - * Mapping of each scheduler instance to its profile. - */ - private SchedulerProfileSchedulerInstanceProfiles schedulerInstanceProfiles; - - /** - * Creates an instance of SchedulerProfile class. - */ - public SchedulerProfile() { - } - - /** - * Get the schedulerInstanceProfiles property: Mapping of each scheduler instance to its profile. - * - * @return the schedulerInstanceProfiles value. - */ - public SchedulerProfileSchedulerInstanceProfiles schedulerInstanceProfiles() { - return this.schedulerInstanceProfiles; - } - - /** - * Set the schedulerInstanceProfiles property: Mapping of each scheduler instance to its profile. - * - * @param schedulerInstanceProfiles the schedulerInstanceProfiles value to set. - * @return the SchedulerProfile object itself. - */ - public SchedulerProfile - withSchedulerInstanceProfiles(SchedulerProfileSchedulerInstanceProfiles schedulerInstanceProfiles) { - this.schedulerInstanceProfiles = schedulerInstanceProfiles; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (schedulerInstanceProfiles() != null) { - schedulerInstanceProfiles().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("schedulerInstanceProfiles", this.schedulerInstanceProfiles); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SchedulerProfile from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SchedulerProfile 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 SchedulerProfile. - */ - public static SchedulerProfile fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SchedulerProfile deserializedSchedulerProfile = new SchedulerProfile(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("schedulerInstanceProfiles".equals(fieldName)) { - deserializedSchedulerProfile.schedulerInstanceProfiles - = SchedulerProfileSchedulerInstanceProfiles.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSchedulerProfile; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfileSchedulerInstanceProfiles.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfileSchedulerInstanceProfiles.java deleted file mode 100644 index 7ea490b5f166..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfileSchedulerInstanceProfiles.java +++ /dev/null @@ -1,99 +0,0 @@ -// 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; - -/** - * Mapping of each scheduler instance to its profile. - */ -@Fluent -public final class SchedulerProfileSchedulerInstanceProfiles - implements JsonSerializable { - /* - * The scheduler profile for the upstream scheduler instance. - */ - private SchedulerInstanceProfile upstream; - - /** - * Creates an instance of SchedulerProfileSchedulerInstanceProfiles class. - */ - public SchedulerProfileSchedulerInstanceProfiles() { - } - - /** - * Get the upstream property: The scheduler profile for the upstream scheduler instance. - * - * @return the upstream value. - */ - public SchedulerInstanceProfile upstream() { - return this.upstream; - } - - /** - * Set the upstream property: The scheduler profile for the upstream scheduler instance. - * - * @param upstream the upstream value to set. - * @return the SchedulerProfileSchedulerInstanceProfiles object itself. - */ - public SchedulerProfileSchedulerInstanceProfiles withUpstream(SchedulerInstanceProfile upstream) { - this.upstream = upstream; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (upstream() != null) { - upstream().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("upstream", this.upstream); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SchedulerProfileSchedulerInstanceProfiles from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SchedulerProfileSchedulerInstanceProfiles 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 SchedulerProfileSchedulerInstanceProfiles. - */ - public static SchedulerProfileSchedulerInstanceProfiles fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SchedulerProfileSchedulerInstanceProfiles deserializedSchedulerProfileSchedulerInstanceProfiles - = new SchedulerProfileSchedulerInstanceProfiles(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("upstream".equals(fieldName)) { - deserializedSchedulerProfileSchedulerInstanceProfiles.upstream - = SchedulerInstanceProfile.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSchedulerProfileSchedulerInstanceProfiles; - }); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java deleted file mode 100644 index 2ff28552ffe6..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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; - -/** - * Specifies the default seccomp profile applied to all workloads. If not specified, 'Unconfined' will be used by - * default. - */ -public final class SeccompDefault extends ExpandableStringEnum { - /** - * Static value Unconfined for SeccompDefault. - */ - public static final SeccompDefault UNCONFINED = fromString("Unconfined"); - - /** - * Static value RuntimeDefault for SeccompDefault. - */ - public static final SeccompDefault RUNTIME_DEFAULT = fromString("RuntimeDefault"); - - /** - * Creates a new instance of SeccompDefault value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SeccompDefault() { - } - - /** - * Creates or finds a SeccompDefault from its string representation. - * - * @param name a name to look for. - * @return the corresponding SeccompDefault. - */ - public static SeccompDefault fromString(String name) { - return fromString(name, SeccompDefault.class); - } - - /** - * Gets known SeccompDefault values. - * - * @return known SeccompDefault values. - */ - public static Collection values() { - return values(SeccompDefault.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java index 959836b50d8f..f538d165b648 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java @@ -16,11 +16,6 @@ public final class SnapshotType extends ExpandableStringEnum { */ public static final SnapshotType NODE_POOL = fromString("NodePool"); - /** - * Static value ManagedCluster for SnapshotType. - */ - public static final SnapshotType MANAGED_CLUSTER = fromString("ManagedCluster"); - /** * Creates a new instance of SnapshotType value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java deleted file mode 100644 index 3b5668d9e0ec..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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; - -/** - * Configures pod-to-pod encryption. This can be enabled only on Cilium-based clusters. If not specified, the default - * value is None. - */ -public final class TransitEncryptionType extends ExpandableStringEnum { - /** - * Static value WireGuard for TransitEncryptionType. - */ - public static final TransitEncryptionType WIRE_GUARD = fromString("WireGuard"); - - /** - * Static value None for TransitEncryptionType. - */ - public static final TransitEncryptionType NONE = fromString("None"); - - /** - * Creates a new instance of TransitEncryptionType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public TransitEncryptionType() { - } - - /** - * Creates or finds a TransitEncryptionType from its string representation. - * - * @param name a name to look for. - * @return the corresponding TransitEncryptionType. - */ - public static TransitEncryptionType fromString(String name) { - return fromString(name, TransitEncryptionType.class); - } - - /** - * Gets known TransitEncryptionType values. - * - * @return known TransitEncryptionType values. - */ - public static Collection values() { - return values(TransitEncryptionType.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Type.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Type.java index f3baff01d585..04ff14100e65 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Type.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Type.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * The week index. Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. + * The week index. Specifies on which week of the month the dayOfWeek applies. */ public final class Type extends ExpandableStringEnum { /** diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java deleted file mode 100644 index 3f79d70807ce..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Defines the upgrade strategy for the agent pool. The default is Rolling. - */ -public final class UpgradeStrategy extends ExpandableStringEnum { - /** - * Static value Rolling for UpgradeStrategy. - */ - public static final UpgradeStrategy ROLLING = fromString("Rolling"); - - /** - * Static value BlueGreen for UpgradeStrategy. - */ - public static final UpgradeStrategy BLUE_GREEN = fromString("BlueGreen"); - - /** - * Creates a new instance of UpgradeStrategy value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public UpgradeStrategy() { - } - - /** - * Creates or finds a UpgradeStrategy from its string representation. - * - * @param name a name to look for. - * @return the corresponding UpgradeStrategy. - */ - public static UpgradeStrategy fromString(String name) { - return fromString(name, UpgradeStrategy.class); - } - - /** - * Gets known UpgradeStrategy values. - * - * @return known UpgradeStrategy values. - */ - public static Collection values() { - return values(UpgradeStrategy.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java deleted file mode 100644 index ef08b1fdaaa1..000000000000 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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; - -/** - * Virtual machine state. Indicates the current state of the underlying virtual machine. - */ -public final class VmState extends ExpandableStringEnum { - /** - * Static value Running for VmState. - */ - public static final VmState RUNNING = fromString("Running"); - - /** - * Static value Deleted for VmState. - */ - public static final VmState DELETED = fromString("Deleted"); - - /** - * Creates a new instance of VmState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public VmState() { - } - - /** - * Creates or finds a VmState from its string representation. - * - * @param name a name to look for. - * @return the corresponding VmState. - */ - public static VmState fromString(String name) { - return fromString(name, VmState.class); - } - - /** - * Gets known VmState values. - * - * @return known VmState values. - */ - public static Collection values() { - return values(VmState.class); - } -} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java index 8fdfcc9db767..c87728fe2b08 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java @@ -21,11 +21,6 @@ public final class WorkloadRuntime extends ExpandableStringEnum */ public static final WorkloadRuntime WASM_WASI = fromString("WasmWasi"); - /** - * Static value KataMshvVmIsolation for WorkloadRuntime. - */ - public static final WorkloadRuntime KATA_MSHV_VM_ISOLATION = fromString("KataMshvVmIsolation"); - /** * Static value KataVmIsolation for WorkloadRuntime. */ diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json index 65e1768573ab..7d7de0a58bda 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.containerservice.implementation.AgentPoolsClientImpl$AgentPoolsService"],["com.azure.resourcemanager.containerservice.implementation.ContainerServiceOperationsClientImpl$ContainerServiceOperationsService"],["com.azure.resourcemanager.containerservice.implementation.ContainerServicesClientImpl$ContainerServicesService"],["com.azure.resourcemanager.containerservice.implementation.IdentityBindingsClientImpl$IdentityBindingsService"],["com.azure.resourcemanager.containerservice.implementation.JwtAuthenticatorsClientImpl$JwtAuthenticatorsService"],["com.azure.resourcemanager.containerservice.implementation.LoadBalancersClientImpl$LoadBalancersService"],["com.azure.resourcemanager.containerservice.implementation.MachinesClientImpl$MachinesService"],["com.azure.resourcemanager.containerservice.implementation.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClusterSnapshotsClientImpl$ManagedClusterSnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.ManagedNamespacesClientImpl$ManagedNamespacesService"],["com.azure.resourcemanager.containerservice.implementation.MeshMembershipsClientImpl$MeshMembershipsService"],["com.azure.resourcemanager.containerservice.implementation.OpenShiftManagedClustersClientImpl$OpenShiftManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.OperationStatusResultsClientImpl$OperationStatusResultsService"],["com.azure.resourcemanager.containerservice.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.containerservice.implementation.ResolvePrivateLinkServiceIdsClientImpl$ResolvePrivateLinkServiceIdsService"],["com.azure.resourcemanager.containerservice.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRoleBindingsClientImpl$TrustedAccessRoleBindingsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRolesClientImpl$TrustedAccessRolesService"]] \ No newline at end of file +[["com.azure.resourcemanager.containerservice.implementation.AgentPoolsClientImpl$AgentPoolsService"],["com.azure.resourcemanager.containerservice.implementation.ContainerServicesClientImpl$ContainerServicesService"],["com.azure.resourcemanager.containerservice.implementation.MachinesClientImpl$MachinesService"],["com.azure.resourcemanager.containerservice.implementation.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.ManagedNamespacesClientImpl$ManagedNamespacesService"],["com.azure.resourcemanager.containerservice.implementation.OpenShiftManagedClustersClientImpl$OpenShiftManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.containerservice.implementation.ResolvePrivateLinkServiceIdsClientImpl$ResolvePrivateLinkServiceIdsService"],["com.azure.resourcemanager.containerservice.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRoleBindingsClientImpl$TrustedAccessRoleBindingsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRolesClientImpl$TrustedAccessRolesService"]] \ No newline at end of file diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice/KubernetesClustersTests.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice/KubernetesClustersTests.java index 55e053af91f5..baa73acd0602 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice/KubernetesClustersTests.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/test/java/com/azure/resourcemanager/containerservice/KubernetesClustersTests.java @@ -564,7 +564,7 @@ public void testUpdateKubernetesVersion() { .define(generateRandomResourceName("aks", 15)) .withRegion(Region.US_WEST2) .withExistingResourceGroup(rgName) - .withVersion("1.31.8") + .withVersion("1.32.4") .withRootUsername("testaks") .withSshKey(SSH_KEY) .withSystemAssignedManagedServiceIdentity() @@ -578,11 +578,11 @@ public void testUpdateKubernetesVersion() { .create(); kubernetesCluster.refresh(); - Assertions.assertEquals("1.31.8", kubernetesCluster.version()); + Assertions.assertEquals("1.32.4", kubernetesCluster.version()); - kubernetesCluster.update().withVersion("1.32.4").apply(); + kubernetesCluster.update().withVersion("1.33.1").apply(); kubernetesCluster.refresh(); - Assertions.assertEquals("1.32.4", kubernetesCluster.version()); + Assertions.assertEquals("1.33.1", kubernetesCluster.version()); } @Test @@ -593,7 +593,7 @@ public void testUpdateManagedClusterSkuAndKubernetesSupportPlan() { .define(aksName) .withRegion(Region.US_WEST3) .withExistingResourceGroup(rgName) - .withVersion("1.31.8") + .withVersion("1.32.4") .withRootUsername("testaks") .withSshKey(SSH_KEY) .withSystemAssignedManagedServiceIdentity() diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 6c52fec3b71a..a8cf8499f518 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -70,7 +70,7 @@ "dir": "../containerservice/azure-resourcemanager-containerservice", "source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", "package": "com.azure.resourcemanager.containerservice", - "args": "--tag=package-preview-2025-09 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku --enable-sync-stack=false" + "args": "--tag=package-2025-10 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku --enable-sync-stack=false" }, "containerservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice", diff --git a/sdk/resourcemanager/azure-resourcemanager/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager/CHANGELOG.md index b1e987a8ac56..7f96bdbf5635 100644 --- a/sdk/resourcemanager/azure-resourcemanager/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager/CHANGELOG.md @@ -2,13 +2,11 @@ ## 2.58.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes +### azure-resourcemanager-containerservice -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2025-10-01`. ## 2.57.0 (2025-11-25) diff --git a/sdk/resourcemanager/azure-resourcemanager/pom.xml b/sdk/resourcemanager/azure-resourcemanager/pom.xml index 8bb051c44566..bfe8b27ed9d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager/pom.xml @@ -142,7 +142,7 @@ com.azure.resourcemanager azure-resourcemanager-containerservice - 2.56.1 + 2.57.0 com.azure.resourcemanager 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 60574887a2d5..38791c473f94 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 6a730abbc43a..dd55ef9dff92 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 @@ -34,7 +34,7 @@ public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_EnableFIPS.json */ /** @@ -58,7 +58,7 @@ public static void createAgentPoolWithFIPSEnabledOS(com.azure.resourcemanager.Az /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPools_Update.json */ /** @@ -87,7 +87,7 @@ public static void updateAgentPool(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_GPUMIG.json */ /** @@ -127,7 +127,7 @@ public static void createAgentPoolWithGPUMIG(com.azure.resourcemanager.AzureReso /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_WindowsOSSKU.json */ /** @@ -151,7 +151,7 @@ public static void createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.Azu /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_DedicatedHostGroup.json */ /** @@ -175,7 +175,7 @@ public static void createAgentPoolWithDedicatedHostGroup(com.azure.resourcemanag /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_Update.json */ /** @@ -204,7 +204,7 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_WindowsDisableOutboundNAT.json */ /** @@ -230,7 +230,7 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPools_Start.json */ /** @@ -250,7 +250,7 @@ public static void startAgentPool(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_Spot.json */ /** @@ -278,7 +278,7 @@ public static void createSpotAgentPool(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_Ephemeral.json */ /** @@ -303,7 +303,7 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_EnableEncryptionAtHost.json */ /** @@ -328,7 +328,7 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_EnableUltraSSD.json */ /** @@ -352,7 +352,7 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_WasmWasi.json */ /** @@ -379,7 +379,7 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_Snapshot.json */ /** @@ -404,7 +404,7 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_PPG.json */ /** @@ -428,7 +428,7 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_CustomNodeConfig.json */ /** @@ -468,7 +468,7 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPools_Stop.json */ /** @@ -488,7 +488,7 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_MessageOfTheDay.json */ /** @@ -514,7 +514,7 @@ public static void createAgentPoolWithMessageOfTheDay(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_CRG.json */ /** @@ -539,7 +539,7 @@ public static void createAgentPoolWithMessageOfTheDay(com.azure.resourcemanager. /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_OSSKU.json */ /** @@ -579,7 +579,7 @@ public static void createAgentPoolWithOSSKU(com.azure.resourcemanager.AzureResou /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsCreate_TypeVirtualMachines.json */ /** 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 f50c59e6e7a3..d439b2c1092c 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 a4d54b83cff4..e6b7c2bf803f 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * AgentPoolsDelete.json */ /** 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 5de428a08639..e1eeddf3619c 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 1eb79f2c7d24..3e5818ea5264 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 04c1b59b87d2..899dff7eddca 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 3f61681f9c34..743a4d3675e1 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d801bfdf1cd2..b0331e8d75d6 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 dffb06ec4b45..97a2c5274e1e 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 bc4a8ccc49cc..b45b6582f2bf 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 3cc7c66488a8..fad2ad0616c4 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 @@ -20,7 +20,7 @@ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 50b7afaa93e6..e99ee5609f3e 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 b8debb01a1fb..4caac7964938 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 b45fbb872880..c6fec25f2e44 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * MaintenanceConfigurationsList_MaintenanceWindow.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 0e9c2c86b2d7..fc849ce29025 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d7b229cf335b..67018d15e0ed 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_CRG.json */ /** @@ -121,7 +121,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_CustomCATrustCertificates.json */ /** @@ -172,7 +172,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_DualStackNetworking.json */ /** @@ -234,7 +234,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_PodIdentity.json */ /** @@ -285,7 +285,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_UserAssignedNATGateway.json */ /** @@ -333,7 +333,7 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_Update.json */ /** @@ -396,7 +396,7 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** @@ -447,7 +447,7 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_ManagedNATGateway.json */ /** @@ -497,7 +497,7 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_Premium.json */ /** @@ -546,7 +546,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_NodePublicIPPrefix.json */ /** @@ -597,7 +597,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_EnableEncryptionAtHost.json */ /** @@ -647,7 +647,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_PrivateClusterPublicFQDN.json */ /** @@ -697,7 +697,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_HTTPProxy.json */ /** @@ -750,7 +750,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_DedicatedHostGroup.json */ /** @@ -800,7 +800,7 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_EnabledFIPS.json */ /** @@ -849,7 +849,7 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_SecurityProfile.json */ /** @@ -894,7 +894,7 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_PPG.json */ /** @@ -944,7 +944,7 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_IngressProfile_WebAppRouting.json */ /** @@ -987,7 +987,7 @@ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_UpdateWithAHUB.json */ /** @@ -1041,7 +1041,7 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_DisableRunCommand.json */ /** @@ -1090,7 +1090,7 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_Snapshot.json */ /** @@ -1142,7 +1142,7 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_AzureServiceMesh.json */ /** @@ -1213,7 +1213,7 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ /** @@ -1269,7 +1269,7 @@ public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_OSSKU.json */ /** @@ -1322,7 +1322,7 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** @@ -1373,7 +1373,7 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_EnableUltraSSD.json */ /** @@ -1422,7 +1422,7 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_UpdateWindowsGmsa.json */ /** @@ -1477,7 +1477,7 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersCreate_GPUMIG.json */ /** 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 d190fcf7221f..54cd0c5d7312 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,12 +10,12 @@ public final class ManagedClustersDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersDelete.json */ /** * Sample code: Delete Managed Cluster. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { @@ -23,6 +23,6 @@ public static void deleteManagedCluster(com.azure.resourcemanager.AzureResourceM .manager() .serviceClient() .getManagedClusters() - .delete("rg1", "clustername1"); + .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 0c41552a57c0..b60b60f00cf7 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 5beb0e5aca98..99e0d35ea65d 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d3f5d35a89e2..884816360c5f 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 56081d97666d..f53e2519761f 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 8d7943a58c93..7a76629d3c14 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 02abeb21db76..e1ede1fbc543 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 78bf6135c17f..de539eb5e583 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 db53ef6ca431..c028963e152e 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 3009a2651c2a..7616952af56d 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 13ebd237a858..46f5c8369a43 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 f6c9ce7f7bbb..61cd58c4b292 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 c9a743f7c3fe..97516a8d87e1 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 7e51c82dd821..c83615784f82 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 6edddf390da3..e6fde6084d48 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 db4cddb9b5e8..553c6d0322eb 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d1ac44cb7729..b4d485c97233 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 925d8ebccab9..2b0fe444434e 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 5875071e538e..b2fb21f3b67b 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 69e4ef84ea6f..c6547c34200b 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 c3beacc797f3..1ce2a65d6470 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d45bdba39157..3106c58fbdde 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 79c8135eac39..2e056a829c79 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 be2862655a2c..3f619ef007cc 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedClustersUpdateTags.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java index 0bc5256dfa1f..c8d5a2d14066 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java @@ -20,7 +20,7 @@ public final class ManagedNamespacesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesCreate_Update.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java index 6028be8f3ece..461b964c3702 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedNamespacesDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesDelete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java index a31976d80a12..13eb970a8e08 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java @@ -10,7 +10,7 @@ public final class ManagedNamespacesGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java index bb4cadbea7d4..ddd6d5e34832 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java @@ -10,7 +10,7 @@ public final class ManagedNamespacesListByManagedClusterSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java index ca40b53c5a0b..0ba4e66cc6e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java @@ -10,7 +10,7 @@ public final class ManagedNamespacesListCredentialSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesListCredentialResult.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java index 5c92979d0349..1f2a4bcc7274 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java @@ -14,7 +14,7 @@ public final class ManagedNamespacesUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * ManagedNamespacesUpdateTags.json */ /** 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 517b4f5d5c32..183f7182d2e6 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 99a4e2b8dc45..ff10ac6ae6d5 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 db38541696a8..67239e30e83f 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 4373ce3faac2..27910989b57b 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 8426ae23f3cc..b5dce96c72c3 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d2c98fdc3905..6682677b4d13 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 60eda594f484..be9846b7f0a3 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 b74c04feb847..7aa2f385ab48 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 bc389997ac63..d0efc66df4ac 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 2608467ea945..240191a2bc43 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 818366fe63c5..801990d797ae 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 fe44bf1a9b78..2c0596fb6a79 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 0a9621a717d8..b25caa72f85d 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 3dda0864e4aa..ff9c2386232d 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 e1d45264d78d..1e46a1bdf816 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 e2bd2dc699fb..b9174ed5caf6 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 d32fba323123..47cd7f79a0cb 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-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 67ddefdaa5ce..59615813c968 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/2025-09-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2025-10-01/examples/ * TrustedAccessRoles_List.json */ /**