diff --git a/eng/code-quality-reports/src/main/resources/revapi/revapi.json b/eng/code-quality-reports/src/main/resources/revapi/revapi.json index 49cbaf18651a..277ff3b7acc9 100644 --- a/eng/code-quality-reports/src/main/resources/revapi/revapi.json +++ b/eng/code-quality-reports/src/main/resources/revapi/revapi.json @@ -511,6 +511,11 @@ "old" : "class com.azure.resourcemanager.eventhubs.models.UserAssignedIdentity", "new" : "class com.azure.resourcemanager.eventhubs.models.UserAssignedIdentity", "justification": "Class is now final." + }, + { + "code" : "java.class.removed", + "old" : "class com.azure.resourcemanager.containerservice.models.OSOptionProperty", + "justification": "Removed non-functional API `getOsOptions` and related models `OSOptionProperty`" } ] } diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 62a7aa8100f2..788c90052062 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -70,7 +70,7 @@ "dir": "azure-resourcemanager-containerservice", "source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", "package": "com.azure.resourcemanager.containerservice", - "args": "--tag=package-2024-02 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" + "args": "--tag=package-2024-05 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" }, "containerservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice", diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md index b98020a404dc..251f4d899197 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md @@ -2,14 +2,16 @@ ## 2.41.0-beta.1 (Unreleased) -### Features Added - ### Breaking Changes -### Bugs Fixed +- Removed non-functional API `getOsOptions` and related models `OSOptionProperty`. ### Other Changes +#### Dependency Updates + +- Updated `api-version` to `2024-05-01`. + ## 2.40.0 (2024-06-24) ### Other Changes diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json index d129b08ed819..ad87b0042822 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/resourcemanager/azure-resourcemanager-containerservice", - "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_3d3e4d5564" + "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_1d3c03c5f5" } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java index dfacadfa5367..1184b7652fe9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java @@ -20,7 +20,6 @@ import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; -import com.azure.resourcemanager.containerservice.fluent.models.OSOptionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; import com.azure.resourcemanager.containerservice.models.Format; @@ -32,73 +31,22 @@ 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 java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ManagedClustersClient. */ public interface ManagedClustersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Gets supported OS options in the specified subscription. - * - * @param location The name of the Azure region. - * @param resourceType The resource type for which the OS options needs to be returned. - * @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 supported OS options in the specified subscription along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getOSOptionsWithResponseAsync(String location, String resourceType); - - /** - * Gets supported OS options in the specified subscription. - * - * @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 supported OS options in the specified subscription on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getOSOptionsAsync(String location); - - /** - * Gets supported OS options in the specified subscription. - * - * @param location The name of the Azure region. - * @param resourceType The resource type for which the OS options needs to be returned. - * @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 supported OS options in the specified subscription along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getOSOptionsWithResponse(String location, String resourceType, Context context); - - /** - * Gets supported OS options in the specified subscription. - * - * @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 supported OS options in the specified subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - OSOptionProfileInner getOSOptions(String location); - /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the 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. @@ -111,10 +59,10 @@ public interface ManagedClustersClient extends InnerSupportsGet> getUpgradeProfileWithResponseA /** * Gets the upgrade profile 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,7 +204,7 @@ Mono> getUpgradeProfileWithResponseA /** * Gets the upgrade profile 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 context The context to associate with this operation. @@ -271,7 +219,7 @@ Response getUpgradeProfileWithResponse(String /** * Gets the upgrade profile 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -284,13 +232,13 @@ Response getUpgradeProfileWithResponse(String /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -305,13 +253,13 @@ Mono> getAccessProfileWithResponseAsy /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -326,13 +274,13 @@ Mono getAccessProfileAsync(String resourceGrou /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -348,13 +296,13 @@ Response getAccessProfileWithResponse(String r /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -368,7 +316,7 @@ Response getAccessProfileWithResponse(String r /** * Lists the admin credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -383,7 +331,7 @@ Mono> listClusterAdminCredentialsWithResponseAs /** * Lists the admin credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -396,7 +344,7 @@ Mono> listClusterAdminCredentialsWithResponseAs /** * Lists the admin credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -412,7 +360,7 @@ Response listClusterAdminCredentialsWithResponse(String /** * Lists the admin credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -425,7 +373,7 @@ Response listClusterAdminCredentialsWithResponse(String /** * Lists the user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -443,7 +391,7 @@ Mono> listClusterUserCredentialsWithResponseAsy /** * Lists the user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -456,7 +404,7 @@ Mono> listClusterUserCredentialsWithResponseAsy /** * Lists the user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -475,7 +423,7 @@ Response listClusterUserCredentialsWithResponse(String r /** * Lists the user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -488,7 +436,7 @@ Response listClusterUserCredentialsWithResponse(String r /** * Lists the cluster monitoring user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -503,7 +451,7 @@ Mono> listClusterMonitoringUserCredentialsWithR /** * Lists the cluster monitoring user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -517,7 +465,7 @@ Mono listClusterMonitoringUserCredentialsAsync(String re /** * Lists the cluster monitoring user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -533,7 +481,7 @@ Response listClusterMonitoringUserCredentialsWithRespons /** * Lists the cluster monitoring user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -546,7 +494,7 @@ Response listClusterMonitoringUserCredentialsWithRespons /** * Gets 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. @@ -560,7 +508,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets 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. @@ -573,7 +521,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets 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. @@ -588,7 +536,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets 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. @@ -601,7 +549,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -616,7 +564,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -631,7 +579,7 @@ PollerFlux, ManagedClusterInner> beginCreateOrUp /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -646,7 +594,7 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -662,7 +610,7 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -677,7 +625,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String r /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -691,7 +639,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String r /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -707,7 +655,7 @@ ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -722,7 +670,7 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -737,7 +685,7 @@ PollerFlux, ManagedClusterInner> beginUpdateTags /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -752,7 +700,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -768,7 +716,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -782,7 +730,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -796,7 +744,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -812,7 +760,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -825,7 +773,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -838,7 +786,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -851,7 +799,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -865,7 +813,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -878,7 +826,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -890,7 +838,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -903,9 +851,9 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -920,9 +868,9 @@ Mono>> resetServicePrincipalProfileWithResponseAsync(S /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -937,9 +885,9 @@ PollerFlux, Void> beginResetServicePrincipalProfileAsync(String /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -954,9 +902,9 @@ SyncPoller, Void> beginResetServicePrincipalProfile(String reso /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -972,9 +920,9 @@ SyncPoller, Void> beginResetServicePrincipalProfile(String reso /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -989,9 +937,9 @@ Mono resetServicePrincipalProfileAsync(String resourceGroupName, String re /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -1005,9 +953,9 @@ void resetServicePrincipalProfile(String resourceGroupName, String resourceName, /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -1022,10 +970,10 @@ void resetServicePrincipalProfile(String resourceGroupName, String resourceName, /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1040,10 +988,10 @@ Mono>> resetAadProfileWithResponseAsync(String resourc /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1058,10 +1006,10 @@ PollerFlux, Void> beginResetAadProfileAsync(String resourceGrou /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1076,10 +1024,10 @@ SyncPoller, Void> beginResetAadProfile(String resourceGroupName /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1095,10 +1043,10 @@ SyncPoller, Void> beginResetAadProfile(String resourceGroupName /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1112,10 +1060,10 @@ SyncPoller, Void> beginResetAadProfile(String resourceGroupName /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1128,10 +1076,10 @@ SyncPoller, Void> beginResetAadProfile(String resourceGroupName /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -1146,10 +1094,10 @@ void resetAadProfile(String resourceGroupName, String resourceName, ManagedClust /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1163,10 +1111,10 @@ Mono>> rotateClusterCertificatesWithResponseAsync(Stri /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1180,10 +1128,10 @@ PollerFlux, Void> beginRotateClusterCertificatesAsync(String re /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1196,10 +1144,10 @@ PollerFlux, Void> beginRotateClusterCertificatesAsync(String re /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -1214,10 +1162,10 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1230,10 +1178,10 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1245,10 +1193,10 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -1261,11 +1209,11 @@ SyncPoller, Void> beginRotateClusterCertificates(String resourc /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1279,11 +1227,11 @@ Mono>> abortLatestOperationWithResponseAsync(String re /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1296,11 +1244,11 @@ Mono>> abortLatestOperationWithResponseAsync(String re /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1313,11 +1261,11 @@ Mono>> abortLatestOperationWithResponseAsync(String re /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -1332,11 +1280,11 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1349,11 +1297,11 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1365,11 +1313,11 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -1382,7 +1330,7 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1396,7 +1344,7 @@ Mono>> rotateServiceAccountSigningKeysWithResponseAsyn /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1410,7 +1358,7 @@ PollerFlux, Void> beginRotateServiceAccountSigningKeysAsync(Str /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1424,7 +1372,7 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -1439,7 +1387,7 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1452,7 +1400,7 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1464,7 +1412,7 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -1477,12 +1425,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -1495,12 +1443,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -1513,12 +1461,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -1531,12 +1479,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -1550,12 +1498,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -1568,12 +1516,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -1585,12 +1533,12 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -1603,10 +1551,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -1619,10 +1567,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -1635,10 +1583,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -1651,10 +1599,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -1668,10 +1616,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -1684,10 +1632,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -1699,10 +1647,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -1715,10 +1663,10 @@ SyncPoller, Void> beginRotateServiceAccountSigningKeys(String r /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1733,10 +1681,10 @@ Mono>> runCommandWithResponseAsync(String resourceGrou /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1751,10 +1699,10 @@ PollerFlux, RunCommandResultInner> beginRunCom /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1769,10 +1717,10 @@ SyncPoller, RunCommandResultInner> beginRunCom /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1788,10 +1736,10 @@ SyncPoller, RunCommandResultInner> beginRunCom /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1806,10 +1754,10 @@ Mono runCommandAsync(String resourceGroupName, String res /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1823,10 +1771,10 @@ Mono runCommandAsync(String resourceGroupName, String res /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -1842,7 +1790,7 @@ RunCommandResultInner runCommand(String resourceGroupName, String resourceName, /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -1858,7 +1806,7 @@ Mono getCommandResultWithResponseAsync( /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -1873,7 +1821,7 @@ Mono getCommandResultWithResponseAsync( /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -1889,7 +1837,7 @@ ManagedClustersGetCommandResultResponse getCommandResultWithResponse(String reso /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -1904,10 +1852,10 @@ ManagedClustersGetCommandResultResponse getCommandResultWithResponse(String reso /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -1923,10 +1871,10 @@ PagedFlux listOutboundNetworkDependenciesEndpo /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -1942,10 +1890,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -1961,10 +1909,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1976,10 +1924,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1991,10 +1939,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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. @@ -2007,10 +1955,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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. @@ -2023,10 +1971,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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. @@ -2039,10 +1987,10 @@ PagedIterable listOutboundNetworkDependenciesE /** * 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. @@ -2057,10 +2005,10 @@ Response getMeshRevisionProfileWithResponse(String loc /** * 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. @@ -2073,7 +2021,7 @@ Response getMeshRevisionProfileWithResponse(String loc /** * 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. @@ -2086,7 +2034,7 @@ Response getMeshRevisionProfileWithResponse(String loc /** * 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. @@ -2099,7 +2047,7 @@ Response getMeshRevisionProfileWithResponse(String loc /** * 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. @@ -2114,7 +2062,7 @@ PagedIterable listMeshUpgradeProfiles(String resourceGr /** * 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. @@ -2130,7 +2078,7 @@ Mono> getMeshUpgradeProfileWithResponseAsync(S /** * 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. @@ -2145,7 +2093,7 @@ Mono getMeshUpgradeProfileAsync(String resourceGroupNam /** * 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. @@ -2161,7 +2109,7 @@ Response getMeshUpgradeProfileWithResponse(String resou /** * 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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java index cdf310c19456..142bcf1427fe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.models.AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -47,7 +48,7 @@ public AgentPoolAvailableVersionsInner() { /** * Get the id property: The ID of the agent pool version list. - * + * * @return the id value. */ public String id() { @@ -56,7 +57,7 @@ public String id() { /** * Get the name property: The name of the agent pool version list. - * + * * @return the name value. */ public String name() { @@ -65,7 +66,7 @@ public String name() { /** * Get the type property: Type of the agent pool version list. - * + * * @return the type value. */ public String type() { @@ -74,7 +75,7 @@ public String type() { /** * Get the innerProperties property: Properties of agent pool available versions. - * + * * @return the innerProperties value. */ private AgentPoolAvailableVersionsProperties innerProperties() { @@ -83,7 +84,7 @@ private AgentPoolAvailableVersionsProperties innerProperties() { /** * Get the agentPoolVersions property: List of versions available for agent pool. - * + * * @return the agentPoolVersions value. */ public List agentPoolVersions() { @@ -92,7 +93,7 @@ public List agentPool /** * Set the agentPoolVersions property: List of versions available for agent pool. - * + * * @param agentPoolVersions the agentPoolVersions value to set. * @return the AgentPoolAvailableVersionsInner object itself. */ @@ -107,13 +108,14 @@ public List agentPool /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model AgentPoolAvailableVersionsInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model AgentPoolAvailableVersionsInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index 9c4fbb4357a4..3d9eaca94ed0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -59,7 +60,7 @@ public AgentPoolInner() { /** * Get the innerProperties property: Properties of an agent pool. - * + * * @return the innerProperties value. */ private ManagedClusterAgentPoolProfileProperties innerProperties() { @@ -69,7 +70,7 @@ private ManagedClusterAgentPoolProfileProperties innerProperties() { /** * 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. - * + * * @return the name value. */ public String name() { @@ -78,7 +79,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -98,7 +99,7 @@ public AgentPoolInner withId(String id) { * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default * value is 1. - * + * * @return the count value. */ public Integer count() { @@ -109,7 +110,7 @@ public Integer count() { * Set the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default * value is 1. - * + * * @param count the count value to set. * @return the AgentPoolInner object itself. */ @@ -122,12 +123,10 @@ public AgentPoolInner withCount(Integer count) { } /** - * Get the vmSize property: The size of the agent pool VMs. - * - * 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: + * Get the vmSize property: 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() { @@ -135,12 +134,10 @@ public String vmSize() { } /** - * Set the vmSize property: The size of the agent pool VMs. - * - * 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: + * Set the vmSize property: 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 AgentPoolInner object itself. */ @@ -155,7 +152,7 @@ public AgentPoolInner withVmSize(String vmSize) { /** * 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() { @@ -165,7 +162,7 @@ public Integer 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 AgentPoolInner object itself. */ @@ -178,12 +175,10 @@ public AgentPoolInner withOsDiskSizeGB(Integer osDiskSizeGB) { } /** - * 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). - * + * Get the osDiskType property: 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() { @@ -191,12 +186,10 @@ public OSDiskType 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). - * + * Set the osDiskType property: 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 AgentPoolInner object itself. */ @@ -211,7 +204,7 @@ public AgentPoolInner withOsDiskType(OSDiskType osDiskType) { /** * 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() { @@ -221,7 +214,7 @@ public KubeletDiskType 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 AgentPoolInner object itself. */ @@ -235,7 +228,7 @@ public AgentPoolInner withKubeletDiskType(KubeletDiskType kubeletDiskType) { /** * Get the workloadRuntime property: Determines the type of workload a node can run. - * + * * @return the workloadRuntime value. */ public WorkloadRuntime workloadRuntime() { @@ -244,7 +237,7 @@ public WorkloadRuntime workloadRuntime() { /** * Set the workloadRuntime property: Determines the type of workload a node can run. - * + * * @param workloadRuntime the workloadRuntime value to set. * @return the AgentPoolInner object itself. */ @@ -257,13 +250,11 @@ public AgentPoolInner withWorkloadRuntime(WorkloadRuntime workloadRuntime) { } /** - * Get the vnetSubnetId property: The ID of the subnet which agent pool nodes 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: + * Get the vnetSubnetId property: 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() { @@ -271,13 +262,11 @@ public String vnetSubnetId() { } /** - * Set the vnetSubnetId property: The ID of the subnet which agent pool nodes 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: + * Set the vnetSubnetId property: 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 AgentPoolInner object itself. */ @@ -290,12 +279,10 @@ public AgentPoolInner withVnetSubnetId(String vnetSubnetId) { } /** - * 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: + * Get the podSubnetId property: 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() { @@ -303,12 +290,10 @@ public String 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: + * Set the podSubnetId property: 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 AgentPoolInner object itself. */ @@ -322,7 +307,7 @@ public AgentPoolInner withPodSubnetId(String podSubnetId) { /** * Get the maxPods property: The maximum number of pods that can run on a node. - * + * * @return the maxPods value. */ public Integer maxPods() { @@ -331,7 +316,7 @@ public Integer 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 AgentPoolInner object itself. */ @@ -345,7 +330,7 @@ public AgentPoolInner withMaxPods(Integer maxPods) { /** * 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() { @@ -354,7 +339,7 @@ public OSType 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 AgentPoolInner object itself. */ @@ -370,7 +355,7 @@ public AgentPoolInner withOsType(OSType osType) { * 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. */ public OSSku osSku() { @@ -381,7 +366,7 @@ public OSSku osSku() { * 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. */ @@ -395,7 +380,7 @@ public AgentPoolInner withOsSku(OSSku osSku) { /** * Get the maxCount property: The maximum number of nodes for auto-scaling. - * + * * @return the maxCount value. */ public Integer maxCount() { @@ -404,7 +389,7 @@ public Integer maxCount() { /** * Set the maxCount property: The maximum number of nodes for auto-scaling. - * + * * @param maxCount the maxCount value to set. * @return the AgentPoolInner object itself. */ @@ -418,7 +403,7 @@ public AgentPoolInner withMaxCount(Integer maxCount) { /** * Get the minCount property: The minimum number of nodes for auto-scaling. - * + * * @return the minCount value. */ public Integer minCount() { @@ -427,7 +412,7 @@ public Integer minCount() { /** * Set the minCount property: The minimum number of nodes for auto-scaling. - * + * * @param minCount the minCount value to set. * @return the AgentPoolInner object itself. */ @@ -441,7 +426,7 @@ public AgentPoolInner withMinCount(Integer minCount) { /** * Get the enableAutoScaling property: Whether to enable auto-scaler. - * + * * @return the enableAutoScaling value. */ public Boolean enableAutoScaling() { @@ -450,7 +435,7 @@ public Boolean enableAutoScaling() { /** * Set the enableAutoScaling property: Whether to enable auto-scaler. - * + * * @param enableAutoScaling the enableAutoScaling value to set. * @return the AgentPoolInner object itself. */ @@ -465,7 +450,7 @@ public AgentPoolInner withEnableAutoScaling(Boolean enableAutoScaling) { /** * Get the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults * to Delete. - * + * * @return the scaleDownMode value. */ public ScaleDownMode scaleDownMode() { @@ -475,7 +460,7 @@ public ScaleDownMode scaleDownMode() { /** * Set the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults * to Delete. - * + * * @param scaleDownMode the scaleDownMode value to set. * @return the AgentPoolInner object itself. */ @@ -489,7 +474,7 @@ public AgentPoolInner withScaleDownMode(ScaleDownMode scaleDownMode) { /** * Get the type property: The type of Agent Pool. - * + * * @return the type value. */ public AgentPoolType typePropertiesType() { @@ -498,7 +483,7 @@ public AgentPoolType typePropertiesType() { /** * Set the type property: The type of Agent Pool. - * + * * @param type the type value to set. * @return the AgentPoolInner object itself. */ @@ -511,11 +496,10 @@ public AgentPoolInner withTypePropertiesType(AgentPoolType type) { } /** - * Get the mode property: The mode of an agent pool. - * - * A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool - * restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - * + * Get the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional + * information on agent pool restrictions and best practices, see: + * https://docs.microsoft.com/azure/aks/use-system-pools. + * * @return the mode value. */ public AgentPoolMode mode() { @@ -523,11 +507,10 @@ public AgentPoolMode mode() { } /** - * Set the mode property: The mode of an agent pool. - * - * A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool - * restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - * + * Set the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional + * information on agent pool restrictions and best practices, see: + * https://docs.microsoft.com/azure/aks/use-system-pools. + * * @param mode the mode value to set. * @return the AgentPoolInner object itself. */ @@ -540,17 +523,16 @@ public AgentPoolInner withMode(AgentPoolMode mode) { } /** - * Get the orchestratorVersion 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. 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 + * Get the orchestratorVersion property: 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. 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. */ public String orchestratorVersion() { @@ -558,17 +540,16 @@ public String orchestratorVersion() { } /** - * Set the orchestratorVersion 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. 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 + * Set the orchestratorVersion property: 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. 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. * @return the AgentPoolInner object itself. */ @@ -581,12 +562,10 @@ public AgentPoolInner withOrchestratorVersion(String orchestratorVersion) { } /** - * 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. - * + * Get the currentOrchestratorVersion property: 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. */ public String currentOrchestratorVersion() { @@ -595,7 +574,7 @@ public String currentOrchestratorVersion() { /** * Get the nodeImageVersion property: The version of node image. - * + * * @return the nodeImageVersion value. */ public String nodeImageVersion() { @@ -604,7 +583,7 @@ public String nodeImageVersion() { /** * Get the upgradeSettings property: Settings for upgrading the agentpool. - * + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -613,7 +592,7 @@ public AgentPoolUpgradeSettings upgradeSettings() { /** * Set the upgradeSettings property: Settings for upgrading the agentpool. - * + * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolInner object itself. */ @@ -627,7 +606,7 @@ public AgentPoolInner withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettin /** * Get the provisioningState property: The current deployment or provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -638,7 +617,7 @@ public String provisioningState() { * Get the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be * stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing * charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. - * + * * @return the powerState value. */ public PowerState powerState() { @@ -649,7 +628,7 @@ public PowerState powerState() { * Set the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be * stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing * charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. - * + * * @param powerState the powerState value to set. * @return the AgentPoolInner object itself. */ @@ -664,7 +643,7 @@ public AgentPoolInner withPowerState(PowerState powerState) { /** * Get the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified * if the AgentPoolType property is 'VirtualMachineScaleSets'. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -674,7 +653,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified * if the AgentPoolType property is 'VirtualMachineScaleSets'. - * + * * @param availabilityZones the availabilityZones value to set. * @return the AgentPoolInner object itself. */ @@ -687,14 +666,12 @@ public AgentPoolInner withAvailabilityZones(List availabilityZones) { } /** - * Get the enableNodePublicIp property: Whether each node is allocated its own public IP. - * - * Some scenarios may require nodes in a node pool 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. For more information see [assigning a public IP per + * Get the enableNodePublicIp property: Some scenarios may require nodes in a node pool 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. For more information see [assigning a public IP per * node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). * The default is false. - * + * * @return the enableNodePublicIp value. */ public Boolean enableNodePublicIp() { @@ -702,14 +679,12 @@ public Boolean enableNodePublicIp() { } /** - * Set the enableNodePublicIp property: Whether each node is allocated its own public IP. - * - * Some scenarios may require nodes in a node pool 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. For more information see [assigning a public IP per + * Set the enableNodePublicIp property: Some scenarios may require nodes in a node pool 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. For more information see [assigning a public IP per * node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). * The default is false. - * + * * @param enableNodePublicIp the enableNodePublicIp value to set. * @return the AgentPoolInner object itself. */ @@ -722,11 +697,9 @@ public AgentPoolInner withEnableNodePublicIp(Boolean enableNodePublicIp) { } /** - * Get the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from. - * - * This is of the form: + * Get the nodePublicIpPrefixId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. - * + * * @return the nodePublicIpPrefixId value. */ public String nodePublicIpPrefixId() { @@ -734,11 +707,9 @@ public String nodePublicIpPrefixId() { } /** - * Set the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from. - * - * This is of the form: + * Set the nodePublicIpPrefixId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. - * + * * @param nodePublicIpPrefixId the nodePublicIpPrefixId value to set. * @return the AgentPoolInner object itself. */ @@ -753,7 +724,7 @@ public AgentPoolInner withNodePublicIpPrefixId(String nodePublicIpPrefixId) { /** * Get the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is * 'Regular'. - * + * * @return the scaleSetPriority value. */ public ScaleSetPriority scaleSetPriority() { @@ -763,7 +734,7 @@ public ScaleSetPriority scaleSetPriority() { /** * Set the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is * 'Regular'. - * + * * @param scaleSetPriority the scaleSetPriority value to set. * @return the AgentPoolInner object itself. */ @@ -776,10 +747,9 @@ public AgentPoolInner withScaleSetPriority(ScaleSetPriority scaleSetPriority) { } /** - * Get the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy. - * - * This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. - * + * Get the scaleSetEvictionPolicy property: This cannot be specified unless the scaleSetPriority is 'Spot'. If not + * specified, the default is 'Delete'. + * * @return the scaleSetEvictionPolicy value. */ public ScaleSetEvictionPolicy scaleSetEvictionPolicy() { @@ -787,10 +757,9 @@ public ScaleSetEvictionPolicy scaleSetEvictionPolicy() { } /** - * Set the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy. - * - * This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. - * + * Set the scaleSetEvictionPolicy property: This cannot be specified unless the scaleSetPriority is 'Spot'. If not + * specified, the default is 'Delete'. + * * @param scaleSetEvictionPolicy the scaleSetEvictionPolicy value to set. * @return the AgentPoolInner object itself. */ @@ -803,13 +772,10 @@ public AgentPoolInner withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSet } /** - * Get the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible - * values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. - * - * Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any - * on-demand price. For more details on spot pricing, see [spot VMs + * Get the spotMaxPrice property: Possible values are any decimal value greater than zero or -1 which indicates the + * willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs * pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). - * + * * @return the spotMaxPrice value. */ public Float spotMaxPrice() { @@ -817,13 +783,10 @@ public Float spotMaxPrice() { } /** - * Set the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible - * values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. - * - * Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any - * on-demand price. For more details on spot pricing, see [spot VMs + * Set the spotMaxPrice property: Possible values are any decimal value greater than zero or -1 which indicates the + * willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs * pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). - * + * * @param spotMaxPrice the spotMaxPrice value to set. * @return the AgentPoolInner object itself. */ @@ -837,7 +800,7 @@ public AgentPoolInner withSpotMaxPrice(Float spotMaxPrice) { /** * Get the tags property: The tags to be persisted on the agent pool virtual machine scale set. - * + * * @return the tags value. */ public Map tags() { @@ -846,7 +809,7 @@ public Map tags() { /** * Set the tags property: The tags to be persisted on the agent pool virtual machine scale set. - * + * * @param tags the tags value to set. * @return the AgentPoolInner object itself. */ @@ -860,7 +823,7 @@ public AgentPoolInner withTags(Map tags) { /** * Get the nodeLabels property: The node labels to be persisted across all nodes in agent pool. - * + * * @return the nodeLabels value. */ public Map nodeLabels() { @@ -869,7 +832,7 @@ public Map nodeLabels() { /** * Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool. - * + * * @param nodeLabels the nodeLabels value to set. * @return the AgentPoolInner object itself. */ @@ -884,7 +847,7 @@ public AgentPoolInner withNodeLabels(Map nodeLabels) { /** * Get the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, * key=value:NoSchedule. - * + * * @return the nodeTaints value. */ public List nodeTaints() { @@ -894,7 +857,7 @@ public List nodeTaints() { /** * Set the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, * key=value:NoSchedule. - * + * * @param nodeTaints the nodeTaints value to set. * @return the AgentPoolInner object itself. */ @@ -908,7 +871,7 @@ public AgentPoolInner withNodeTaints(List nodeTaints) { /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. - * + * * @return the proximityPlacementGroupId value. */ public String proximityPlacementGroupId() { @@ -917,7 +880,7 @@ public String proximityPlacementGroupId() { /** * Set the proximityPlacementGroupId property: The ID for Proximity Placement Group. - * + * * @param proximityPlacementGroupId the proximityPlacementGroupId value to set. * @return the AgentPoolInner object itself. */ @@ -930,10 +893,8 @@ public AgentPoolInner withProximityPlacementGroupId(String proximityPlacementGro } /** - * Get the kubeletConfig property: Kubelet configurations of agent nodes. - * - * The Kubelet configuration on the agent pool nodes. - * + * Get the kubeletConfig property: The Kubelet configuration on the agent pool nodes. + * * @return the kubeletConfig value. */ public KubeletConfig kubeletConfig() { @@ -941,10 +902,8 @@ public KubeletConfig kubeletConfig() { } /** - * Set the kubeletConfig property: Kubelet configurations of agent nodes. - * - * The Kubelet configuration on the agent pool nodes. - * + * Set the kubeletConfig property: The Kubelet configuration on the agent pool nodes. + * * @param kubeletConfig the kubeletConfig value to set. * @return the AgentPoolInner object itself. */ @@ -957,10 +916,8 @@ public AgentPoolInner withKubeletConfig(KubeletConfig kubeletConfig) { } /** - * Get the linuxOSConfig property: OS configurations of Linux agent nodes. - * - * The OS configuration of Linux agent nodes. - * + * Get the linuxOSConfig property: The OS configuration of Linux agent nodes. + * * @return the linuxOSConfig value. */ public LinuxOSConfig linuxOSConfig() { @@ -968,10 +925,8 @@ public LinuxOSConfig linuxOSConfig() { } /** - * Set the linuxOSConfig property: OS configurations of Linux agent nodes. - * - * The OS configuration of Linux agent nodes. - * + * Set the linuxOSConfig property: The OS configuration of Linux agent nodes. + * * @param linuxOSConfig the linuxOSConfig value to set. * @return the AgentPoolInner object itself. */ @@ -984,11 +939,9 @@ public AgentPoolInner withLinuxOSConfig(LinuxOSConfig linuxOSConfig) { } /** - * Get the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. - * - * This is only supported on certain VM sizes and in certain Azure regions. For more information, see: - * https://docs.microsoft.com/azure/aks/enable-host-encryption. - * + * Get the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. + * For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption. + * * @return the enableEncryptionAtHost value. */ public Boolean enableEncryptionAtHost() { @@ -996,11 +949,9 @@ public Boolean enableEncryptionAtHost() { } /** - * Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. - * - * This is only supported on certain VM sizes and in certain Azure regions. For more information, see: - * https://docs.microsoft.com/azure/aks/enable-host-encryption. - * + * Set the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. + * For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption. + * * @param enableEncryptionAtHost the enableEncryptionAtHost value to set. * @return the AgentPoolInner object itself. */ @@ -1014,7 +965,7 @@ public AgentPoolInner withEnableEncryptionAtHost(Boolean enableEncryptionAtHost) /** * Get the enableUltraSsd property: Whether to enable UltraSSD. - * + * * @return the enableUltraSsd value. */ public Boolean enableUltraSsd() { @@ -1023,7 +974,7 @@ public Boolean enableUltraSsd() { /** * Set the enableUltraSsd property: Whether to enable UltraSSD. - * + * * @param enableUltraSsd the enableUltraSsd value to set. * @return the AgentPoolInner object itself. */ @@ -1036,12 +987,10 @@ public AgentPoolInner withEnableUltraSsd(Boolean enableUltraSsd) { } /** - * Get the enableFips property: Whether to use a FIPS-enabled OS. - * - * See [Add a FIPS-enabled node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for - * more details. - * + * Get the enableFips property: See [Add a FIPS-enabled node + * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more + * details. + * * @return the enableFips value. */ public Boolean enableFips() { @@ -1049,12 +998,10 @@ public Boolean enableFips() { } /** - * Set the enableFips property: Whether to use a FIPS-enabled OS. - * - * See [Add a FIPS-enabled node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for - * more details. - * + * Set the enableFips property: See [Add a FIPS-enabled node + * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more + * details. + * * @param enableFips the enableFips value to set. * @return the AgentPoolInner object itself. */ @@ -1069,7 +1016,7 @@ public AgentPoolInner withEnableFips(Boolean enableFips) { /** * 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() { @@ -1079,7 +1026,7 @@ public GpuInstanceProfile 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 AgentPoolInner object itself. */ @@ -1092,9 +1039,9 @@ public AgentPoolInner withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfi } /** - * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will - * be created/upgraded using a snapshot. - * + * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be + * created/upgraded using a snapshot. + * * @return the creationData value. */ public CreationData creationData() { @@ -1102,9 +1049,9 @@ public CreationData creationData() { } /** - * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will - * be created/upgraded using a snapshot. - * + * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be + * created/upgraded using a snapshot. + * * @param creationData the creationData value to set. * @return the AgentPoolInner object itself. */ @@ -1117,11 +1064,9 @@ public AgentPoolInner withCreationData(CreationData creationData) { } /** - * Get the capacityReservationGroupId property: The fully qualified resource ID of the Capacity Reservation Group - * to provide virtual machines from a reserved group of Virtual Machines. - * - * AKS will associate the specified agent pool with the Capacity Reservation Group. - * + * Get the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity + * Reservation Group. + * * @return the capacityReservationGroupId value. */ public String capacityReservationGroupId() { @@ -1129,11 +1074,9 @@ public String capacityReservationGroupId() { } /** - * Set the capacityReservationGroupId property: The fully qualified resource ID of the Capacity Reservation Group - * to provide virtual machines from a reserved group of Virtual Machines. - * - * AKS will associate the specified agent pool with the Capacity Reservation Group. - * + * Set the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity + * Reservation Group. + * * @param capacityReservationGroupId the capacityReservationGroupId value to set. * @return the AgentPoolInner object itself. */ @@ -1146,14 +1089,11 @@ public AgentPoolInner withCapacityReservationGroupId(String capacityReservationG } /** - * Get the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual - * machines from, used only in creation scenario and not allowed to changed once set. - * - * This is of the form: + * Get the hostGroupId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. * For more information see [Azure dedicated * hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - * + * * @return the hostGroupId value. */ public String hostGroupId() { @@ -1161,14 +1101,11 @@ public String hostGroupId() { } /** - * Set the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual - * machines from, used only in creation scenario and not allowed to changed once set. - * - * This is of the form: + * Set the hostGroupId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. * For more information see [Azure dedicated * hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - * + * * @param hostGroupId the hostGroupId value to set. * @return the AgentPoolInner object itself. */ @@ -1182,7 +1119,7 @@ public AgentPoolInner withHostGroupId(String hostGroupId) { /** * Get the networkProfile property: Network-related settings of an agent pool. - * + * * @return the networkProfile value. */ public AgentPoolNetworkProfile networkProfile() { @@ -1191,7 +1128,7 @@ public AgentPoolNetworkProfile networkProfile() { /** * Set the networkProfile property: Network-related settings of an agent pool. - * + * * @param networkProfile the networkProfile value to set. * @return the AgentPoolInner object itself. */ @@ -1205,7 +1142,7 @@ public AgentPoolInner withNetworkProfile(AgentPoolNetworkProfile networkProfile) /** * Get the windowsProfile property: The Windows agent pool's specific profile. - * + * * @return the windowsProfile value. */ public AgentPoolWindowsProfile windowsProfile() { @@ -1214,7 +1151,7 @@ public AgentPoolWindowsProfile windowsProfile() { /** * Set the windowsProfile property: The Windows agent pool's specific profile. - * + * * @param windowsProfile the windowsProfile value to set. * @return the AgentPoolInner object itself. */ @@ -1228,7 +1165,7 @@ public AgentPoolInner withWindowsProfile(AgentPoolWindowsProfile windowsProfile) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java index 273598ac3fc3..634c7484f5c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem; import com.azure.resourcemanager.containerservice.models.OSType; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -48,7 +49,7 @@ public AgentPoolUpgradeProfileInner() { /** * Get the id property: The ID of the agent pool upgrade profile. - * + * * @return the id value. */ public String id() { @@ -57,7 +58,7 @@ public String id() { /** * Get the name property: The name of the agent pool upgrade profile. - * + * * @return the name value. */ public String name() { @@ -66,7 +67,7 @@ public String name() { /** * Get the type property: The type of the agent pool upgrade profile. - * + * * @return the type value. */ public String type() { @@ -75,7 +76,7 @@ public String type() { /** * Get the innerProperties property: The properties of the agent pool upgrade profile. - * + * * @return the innerProperties value. */ private AgentPoolUpgradeProfileProperties innerProperties() { @@ -84,7 +85,7 @@ private AgentPoolUpgradeProfileProperties innerProperties() { /** * Get the kubernetesVersion property: The Kubernetes version (major.minor.patch). - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -93,7 +94,7 @@ public String kubernetesVersion() { /** * Set the kubernetesVersion property: The Kubernetes version (major.minor.patch). - * + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the AgentPoolUpgradeProfileInner object itself. */ @@ -107,7 +108,7 @@ public AgentPoolUpgradeProfileInner withKubernetesVersion(String kubernetesVersi /** * 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() { @@ -116,7 +117,7 @@ public OSType 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 AgentPoolUpgradeProfileInner object itself. */ @@ -130,7 +131,7 @@ public AgentPoolUpgradeProfileInner withOsType(OSType osType) { /** * Get the upgrades property: List of orchestrator types and versions available for upgrade. - * + * * @return the upgrades value. */ public List upgrades() { @@ -139,7 +140,7 @@ public List upgrades() { /** * Set the upgrades property: List of orchestrator types and versions available for upgrade. - * + * * @param upgrades the upgrades value to set. * @return the AgentPoolUpgradeProfileInner object itself. */ @@ -153,7 +154,7 @@ public AgentPoolUpgradeProfileInner withUpgrades(List upgrades() { @@ -97,7 +98,7 @@ public List upgrades() { /** * Set the upgrades property: List of orchestrator types and versions available for upgrade. - * + * * @param upgrades the upgrades value to set. * @return the AgentPoolUpgradeProfileProperties object itself. */ @@ -109,7 +110,7 @@ public List upgrades() { /** * Get the latestNodeImageVersion property: The latest AKS supported node image version. - * + * * @return the latestNodeImageVersion value. */ public String latestNodeImageVersion() { @@ -118,7 +119,7 @@ public String latestNodeImageVersion() { /** * Set the latestNodeImageVersion property: The latest AKS supported node image version. - * + * * @param latestNodeImageVersion the latestNodeImageVersion value to set. * @return the AgentPoolUpgradeProfileProperties object itself. */ @@ -129,17 +130,19 @@ public AgentPoolUpgradeProfileProperties withLatestNodeImageVersion(String lates /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (kubernetesVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property kubernetesVersion in model AgentPoolUpgradeProfileProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property kubernetesVersion in model AgentPoolUpgradeProfileProperties")); } if (osType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property osType in model AgentPoolUpgradeProfileProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property osType in model AgentPoolUpgradeProfileProperties")); } if (upgrades() != null) { upgrades().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java index 30d64223dc82..fee0d25d969d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java @@ -11,11 +11,12 @@ import com.azure.resourcemanager.containerservice.models.TimeInWeek; import com.azure.resourcemanager.containerservice.models.TimeSpan; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** * Planned maintenance configuration, used to configure when updates can be deployed to a Managed Cluster. - * + * * See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about * planned maintenance. */ @@ -53,7 +54,7 @@ public MaintenanceConfigurationInner() { /** * Get the systemData property: The system metadata relating to this resource. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -62,7 +63,7 @@ public SystemData systemData() { /** * Get the innerProperties property: Properties of a default maintenance configuration. - * + * * @return the innerProperties value. */ private MaintenanceConfigurationProperties innerProperties() { @@ -72,7 +73,7 @@ private MaintenanceConfigurationProperties innerProperties() { /** * 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. - * + * * @return the name value. */ public String name() { @@ -81,7 +82,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -98,11 +99,9 @@ public MaintenanceConfigurationInner withId(String id) { } /** - * Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. - * - * If two array entries specify the same day of the week, the applied configuration is the union of times in both - * entries. - * + * Get the timeInWeek property: If two array entries specify the same day of the week, the applied configuration is + * the union of times in both entries. + * * @return the timeInWeek value. */ public List timeInWeek() { @@ -110,11 +109,9 @@ public List timeInWeek() { } /** - * Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. - * - * If two array entries specify the same day of the week, the applied configuration is the union of times in both - * entries. - * + * Set the timeInWeek property: If two array entries specify the same day of the week, the applied configuration is + * the union of times in both entries. + * * @param timeInWeek the timeInWeek value to set. * @return the MaintenanceConfigurationInner object itself. */ @@ -128,7 +125,7 @@ public MaintenanceConfigurationInner withTimeInWeek(List timeInWeek) /** * Get the notAllowedTime property: Time slots on which upgrade is not allowed. - * + * * @return the notAllowedTime value. */ public List notAllowedTime() { @@ -137,7 +134,7 @@ public List notAllowedTime() { /** * Set the notAllowedTime property: Time slots on which upgrade is not allowed. - * + * * @param notAllowedTime the notAllowedTime value to set. * @return the MaintenanceConfigurationInner object itself. */ @@ -151,7 +148,7 @@ public MaintenanceConfigurationInner withNotAllowedTime(List notAllowe /** * Get the maintenanceWindow property: Maintenance window for the maintenance configuration. - * + * * @return the maintenanceWindow value. */ public MaintenanceWindow maintenanceWindow() { @@ -160,7 +157,7 @@ public MaintenanceWindow maintenanceWindow() { /** * Set the maintenanceWindow property: Maintenance window for the maintenance configuration. - * + * * @param maintenanceWindow the maintenanceWindow value to set. * @return the MaintenanceConfigurationInner object itself. */ @@ -174,7 +171,7 @@ public MaintenanceConfigurationInner withMaintenanceWindow(MaintenanceWindow mai /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java index 40b82d1edb48..58b4f90f25cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.containerservice.models.TimeInWeek; import com.azure.resourcemanager.containerservice.models.TimeSpan; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -17,8 +18,6 @@ @Fluent public final class MaintenanceConfigurationProperties { /* - * Time slots during the week when planned maintenance is allowed to proceed. - * * If two array entries specify the same day of the week, the applied configuration is the union of times in both * entries. */ @@ -44,11 +43,9 @@ public MaintenanceConfigurationProperties() { } /** - * Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. - * - * If two array entries specify the same day of the week, the applied configuration is the union of times in both - * entries. - * + * Get the timeInWeek property: If two array entries specify the same day of the week, the applied configuration is + * the union of times in both entries. + * * @return the timeInWeek value. */ public List timeInWeek() { @@ -56,11 +53,9 @@ public List timeInWeek() { } /** - * Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed. - * - * If two array entries specify the same day of the week, the applied configuration is the union of times in both - * entries. - * + * Set the timeInWeek property: If two array entries specify the same day of the week, the applied configuration is + * the union of times in both entries. + * * @param timeInWeek the timeInWeek value to set. * @return the MaintenanceConfigurationProperties object itself. */ @@ -71,7 +66,7 @@ public MaintenanceConfigurationProperties withTimeInWeek(List timeIn /** * Get the notAllowedTime property: Time slots on which upgrade is not allowed. - * + * * @return the notAllowedTime value. */ public List notAllowedTime() { @@ -80,7 +75,7 @@ public List notAllowedTime() { /** * Set the notAllowedTime property: Time slots on which upgrade is not allowed. - * + * * @param notAllowedTime the notAllowedTime value to set. * @return the MaintenanceConfigurationProperties object itself. */ @@ -91,7 +86,7 @@ public MaintenanceConfigurationProperties withNotAllowedTime(List notA /** * Get the maintenanceWindow property: Maintenance window for the maintenance configuration. - * + * * @return the maintenanceWindow value. */ public MaintenanceWindow maintenanceWindow() { @@ -100,7 +95,7 @@ public MaintenanceWindow maintenanceWindow() { /** * Set the maintenanceWindow property: Maintenance window for the maintenance configuration. - * + * * @param maintenanceWindow the maintenanceWindow value to set. * @return the MaintenanceConfigurationProperties object itself. */ @@ -111,7 +106,7 @@ public MaintenanceConfigurationProperties withMaintenanceWindow(MaintenanceWindo /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index 8fe829421df8..baee1b8e5f66 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -41,8 +42,6 @@ public class ManagedClusterAgentPoolProfileProperties { private Integer count; /* - * The size of the agent pool VMs. - * * 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 @@ -51,15 +50,13 @@ public class ManagedClusterAgentPoolProfileProperties { private String vmSize; /* - * 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. + * 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. */ @JsonProperty(value = "osDiskSizeGB") 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). @@ -80,8 +77,6 @@ public class ManagedClusterAgentPoolProfileProperties { private WorkloadRuntime workloadRuntime; /* - * The ID of the subnet which agent pool nodes 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/{ @@ -91,8 +86,6 @@ public class ManagedClusterAgentPoolProfileProperties { 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/{ @@ -114,8 +107,8 @@ public class ManagedClusterAgentPoolProfileProperties { private OSType osType; /* - * 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. + * 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. */ @JsonProperty(value = "osSKU") private OSSku osSku; @@ -151,8 +144,6 @@ public class ManagedClusterAgentPoolProfileProperties { private AgentPoolType type; /* - * The mode of an agent pool. - * * A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool * restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools */ @@ -160,26 +151,21 @@ public class ManagedClusterAgentPoolProfileProperties { private AgentPoolMode mode; /* - * 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 + * 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). */ @JsonProperty(value = "orchestratorVersion") private String orchestratorVersion; /* - * 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. + * If orchestratorVersion is , this field will contain the full version being used. */ @JsonProperty(value = "currentOrchestratorVersion", access = JsonProperty.Access.WRITE_ONLY) private String currentOrchestratorVersion; @@ -204,8 +190,8 @@ public class ManagedClusterAgentPoolProfileProperties { /* * When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field - * to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can - * only be stopped if it is Running and provisioning state is Succeeded + * to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only + * be stopped if it is Running and provisioning state is Succeeded */ @JsonProperty(value = "powerState") private PowerState powerState; @@ -218,21 +204,16 @@ public class ManagedClusterAgentPoolProfileProperties { private List availabilityZones; /* - * Whether each node is allocated its own public IP. - * * Some scenarios may require nodes in a node pool 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. For more information see [assigning a public IP per + * scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to + * minimize hops. For more information see [assigning a public IP per * node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node- - * pools). - * The default is false. + * pools). The default is false. */ @JsonProperty(value = "enableNodePublicIP") private Boolean enableNodePublicIp; /* - * The public IP prefix ID which VM nodes should use IPs from. - * * This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{ * publicIPPrefixName} @@ -247,17 +228,12 @@ public class ManagedClusterAgentPoolProfileProperties { private ScaleSetPriority scaleSetPriority; /* - * The Virtual Machine Scale Set eviction policy. - * * This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. */ @JsonProperty(value = "scaleSetEvictionPolicy") private ScaleSetEvictionPolicy scaleSetEvictionPolicy; /* - * The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value - * greater than zero or -1 which indicates default price to be up-to on-demand. - * * Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any * on-demand price. For more details on spot pricing, see [spot VMs * pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing) @@ -292,24 +268,18 @@ public class ManagedClusterAgentPoolProfileProperties { private String proximityPlacementGroupId; /* - * Kubelet configurations of agent nodes. - * * The Kubelet configuration on the agent pool nodes. */ @JsonProperty(value = "kubeletConfig") private KubeletConfig kubeletConfig; /* - * OS configurations of Linux agent nodes. - * * The OS configuration of Linux agent nodes. */ @JsonProperty(value = "linuxOSConfig") private LinuxOSConfig linuxOSConfig; /* - * Whether to enable host based OS and data drive encryption. - * * This is only supported on certain VM sizes and in certain Azure regions. For more information, see: * https://docs.microsoft.com/azure/aks/enable-host-encryption */ @@ -323,11 +293,9 @@ public class ManagedClusterAgentPoolProfileProperties { private Boolean enableUltraSsd; /* - * Whether to use a FIPS-enabled OS. - * * See [Add a FIPS-enabled node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for - * more details. + * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more + * details. */ @JsonProperty(value = "enableFIPS") private Boolean enableFips; @@ -346,22 +314,15 @@ public class ManagedClusterAgentPoolProfileProperties { private CreationData creationData; /* - * The fully qualified resource ID of the Capacity Reservation Group to provide virtual machines from a reserved - * group of Virtual Machines. - * * AKS will associate the specified agent pool with the Capacity Reservation Group. */ @JsonProperty(value = "capacityReservationGroupID") private String capacityReservationGroupId; /* - * The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in - * creation scenario and not allowed to changed once set. - * * This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{ - * hostGroupName}. - * For more information see [Azure dedicated + * hostGroupName}. For more information see [Azure dedicated * hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). */ @JsonProperty(value = "hostGroupID") @@ -389,7 +350,7 @@ public ManagedClusterAgentPoolProfileProperties() { * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default * value is 1. - * + * * @return the count value. */ public Integer count() { @@ -400,7 +361,7 @@ public Integer count() { * Set the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default * value is 1. - * + * * @param count the count value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -410,12 +371,10 @@ public ManagedClusterAgentPoolProfileProperties withCount(Integer count) { } /** - * Get the vmSize property: The size of the agent pool VMs. - * - * 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: + * Get the vmSize property: 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() { @@ -423,12 +382,10 @@ public String vmSize() { } /** - * Set the vmSize property: The size of the agent pool VMs. - * - * 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: + * Set the vmSize property: 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -440,7 +397,7 @@ public ManagedClusterAgentPoolProfileProperties withVmSize(String vmSize) { /** * 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() { @@ -450,7 +407,7 @@ public Integer 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -460,12 +417,10 @@ public ManagedClusterAgentPoolProfileProperties withOsDiskSizeGB(Integer osDiskS } /** - * 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). - * + * Get the osDiskType property: 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() { @@ -473,12 +428,10 @@ public OSDiskType 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). - * + * Set the osDiskType property: 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -490,7 +443,7 @@ public ManagedClusterAgentPoolProfileProperties withOsDiskType(OSDiskType osDisk /** * 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() { @@ -500,7 +453,7 @@ public KubeletDiskType 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -511,7 +464,7 @@ public ManagedClusterAgentPoolProfileProperties withKubeletDiskType(KubeletDiskT /** * Get the workloadRuntime property: Determines the type of workload a node can run. - * + * * @return the workloadRuntime value. */ public WorkloadRuntime workloadRuntime() { @@ -520,7 +473,7 @@ public WorkloadRuntime workloadRuntime() { /** * Set the workloadRuntime property: Determines the type of workload a node can run. - * + * * @param workloadRuntime the workloadRuntime value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -530,13 +483,11 @@ public ManagedClusterAgentPoolProfileProperties withWorkloadRuntime(WorkloadRunt } /** - * Get the vnetSubnetId property: The ID of the subnet which agent pool nodes 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: + * Get the vnetSubnetId property: 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() { @@ -544,13 +495,11 @@ public String vnetSubnetId() { } /** - * Set the vnetSubnetId property: The ID of the subnet which agent pool nodes 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: + * Set the vnetSubnetId property: 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -560,12 +509,10 @@ public ManagedClusterAgentPoolProfileProperties withVnetSubnetId(String vnetSubn } /** - * 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: + * Get the podSubnetId property: 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() { @@ -573,12 +520,10 @@ public String 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: + * Set the podSubnetId property: 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -589,7 +534,7 @@ public ManagedClusterAgentPoolProfileProperties withPodSubnetId(String podSubnet /** * Get the maxPods property: The maximum number of pods that can run on a node. - * + * * @return the maxPods value. */ public Integer maxPods() { @@ -598,7 +543,7 @@ public Integer 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -609,7 +554,7 @@ public ManagedClusterAgentPoolProfileProperties withMaxPods(Integer maxPods) { /** * 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() { @@ -618,7 +563,7 @@ public OSType 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -631,7 +576,7 @@ public ManagedClusterAgentPoolProfileProperties withOsType(OSType osType) { * 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. */ public OSSku osSku() { @@ -642,7 +587,7 @@ public OSSku osSku() { * 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. */ @@ -653,7 +598,7 @@ public ManagedClusterAgentPoolProfileProperties withOsSku(OSSku osSku) { /** * Get the maxCount property: The maximum number of nodes for auto-scaling. - * + * * @return the maxCount value. */ public Integer maxCount() { @@ -662,7 +607,7 @@ public Integer maxCount() { /** * Set the maxCount property: The maximum number of nodes for auto-scaling. - * + * * @param maxCount the maxCount value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -673,7 +618,7 @@ public ManagedClusterAgentPoolProfileProperties withMaxCount(Integer maxCount) { /** * Get the minCount property: The minimum number of nodes for auto-scaling. - * + * * @return the minCount value. */ public Integer minCount() { @@ -682,7 +627,7 @@ public Integer minCount() { /** * Set the minCount property: The minimum number of nodes for auto-scaling. - * + * * @param minCount the minCount value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -693,7 +638,7 @@ public ManagedClusterAgentPoolProfileProperties withMinCount(Integer minCount) { /** * Get the enableAutoScaling property: Whether to enable auto-scaler. - * + * * @return the enableAutoScaling value. */ public Boolean enableAutoScaling() { @@ -702,7 +647,7 @@ public Boolean enableAutoScaling() { /** * Set the enableAutoScaling property: Whether to enable auto-scaler. - * + * * @param enableAutoScaling the enableAutoScaling value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -714,7 +659,7 @@ public ManagedClusterAgentPoolProfileProperties withEnableAutoScaling(Boolean en /** * Get the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults * to Delete. - * + * * @return the scaleDownMode value. */ public ScaleDownMode scaleDownMode() { @@ -724,7 +669,7 @@ public ScaleDownMode scaleDownMode() { /** * Set the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults * to Delete. - * + * * @param scaleDownMode the scaleDownMode value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -735,7 +680,7 @@ public ManagedClusterAgentPoolProfileProperties withScaleDownMode(ScaleDownMode /** * Get the type property: The type of Agent Pool. - * + * * @return the type value. */ public AgentPoolType type() { @@ -744,7 +689,7 @@ public AgentPoolType type() { /** * Set the type property: The type of Agent Pool. - * + * * @param type the type value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -754,11 +699,10 @@ public ManagedClusterAgentPoolProfileProperties withType(AgentPoolType type) { } /** - * Get the mode property: The mode of an agent pool. - * - * A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool - * restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - * + * Get the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional + * information on agent pool restrictions and best practices, see: + * https://docs.microsoft.com/azure/aks/use-system-pools. + * * @return the mode value. */ public AgentPoolMode mode() { @@ -766,11 +710,10 @@ public AgentPoolMode mode() { } /** - * Set the mode property: The mode of an agent pool. - * - * A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool - * restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - * + * Set the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional + * information on agent pool restrictions and best practices, see: + * https://docs.microsoft.com/azure/aks/use-system-pools. + * * @param mode the mode value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -780,17 +723,16 @@ public ManagedClusterAgentPoolProfileProperties withMode(AgentPoolMode mode) { } /** - * Get the orchestratorVersion 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. 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 + * Get the orchestratorVersion property: 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. 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. */ public String orchestratorVersion() { @@ -798,17 +740,16 @@ public String orchestratorVersion() { } /** - * Set the orchestratorVersion 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. 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 + * Set the orchestratorVersion property: 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. 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. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -818,12 +759,10 @@ public ManagedClusterAgentPoolProfileProperties withOrchestratorVersion(String o } /** - * 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. - * + * Get the currentOrchestratorVersion property: 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. */ public String currentOrchestratorVersion() { @@ -832,7 +771,7 @@ public String currentOrchestratorVersion() { /** * Get the nodeImageVersion property: The version of node image. - * + * * @return the nodeImageVersion value. */ public String nodeImageVersion() { @@ -841,7 +780,7 @@ public String nodeImageVersion() { /** * Get the upgradeSettings property: Settings for upgrading the agentpool. - * + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -850,7 +789,7 @@ public AgentPoolUpgradeSettings upgradeSettings() { /** * Set the upgradeSettings property: Settings for upgrading the agentpool. - * + * * @param upgradeSettings the upgradeSettings value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -861,7 +800,7 @@ public ManagedClusterAgentPoolProfileProperties withUpgradeSettings(AgentPoolUpg /** * Get the provisioningState property: The current deployment or provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -872,7 +811,7 @@ public String provisioningState() { * Get the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be * stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing * charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. - * + * * @return the powerState value. */ public PowerState powerState() { @@ -883,7 +822,7 @@ public PowerState powerState() { * Set the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be * stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing * charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. - * + * * @param powerState the powerState value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -895,7 +834,7 @@ public ManagedClusterAgentPoolProfileProperties withPowerState(PowerState powerS /** * Get the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified * if the AgentPoolType property is 'VirtualMachineScaleSets'. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -905,7 +844,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified * if the AgentPoolType property is 'VirtualMachineScaleSets'. - * + * * @param availabilityZones the availabilityZones value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -915,14 +854,12 @@ public ManagedClusterAgentPoolProfileProperties withAvailabilityZones(List tags() { @@ -1060,7 +983,7 @@ public Map tags() { /** * Set the tags property: The tags to be persisted on the agent pool virtual machine scale set. - * + * * @param tags the tags value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1071,7 +994,7 @@ public ManagedClusterAgentPoolProfileProperties withTags(Map tag /** * Get the nodeLabels property: The node labels to be persisted across all nodes in agent pool. - * + * * @return the nodeLabels value. */ public Map nodeLabels() { @@ -1080,7 +1003,7 @@ public Map nodeLabels() { /** * Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool. - * + * * @param nodeLabels the nodeLabels value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1092,7 +1015,7 @@ public ManagedClusterAgentPoolProfileProperties withNodeLabels(Map nodeTaints() { @@ -1102,7 +1025,7 @@ public List nodeTaints() { /** * Set the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, * key=value:NoSchedule. - * + * * @param nodeTaints the nodeTaints value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1113,7 +1036,7 @@ public ManagedClusterAgentPoolProfileProperties withNodeTaints(List node /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. - * + * * @return the proximityPlacementGroupId value. */ public String proximityPlacementGroupId() { @@ -1122,7 +1045,7 @@ public String proximityPlacementGroupId() { /** * Set the proximityPlacementGroupId property: The ID for Proximity Placement Group. - * + * * @param proximityPlacementGroupId the proximityPlacementGroupId value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1132,10 +1055,8 @@ public ManagedClusterAgentPoolProfileProperties withProximityPlacementGroupId(St } /** - * Get the kubeletConfig property: Kubelet configurations of agent nodes. - * - * The Kubelet configuration on the agent pool nodes. - * + * Get the kubeletConfig property: The Kubelet configuration on the agent pool nodes. + * * @return the kubeletConfig value. */ public KubeletConfig kubeletConfig() { @@ -1143,10 +1064,8 @@ public KubeletConfig kubeletConfig() { } /** - * Set the kubeletConfig property: Kubelet configurations of agent nodes. - * - * The Kubelet configuration on the agent pool nodes. - * + * Set the kubeletConfig property: The Kubelet configuration on the agent pool nodes. + * * @param kubeletConfig the kubeletConfig value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1156,10 +1075,8 @@ public ManagedClusterAgentPoolProfileProperties withKubeletConfig(KubeletConfig } /** - * Get the linuxOSConfig property: OS configurations of Linux agent nodes. - * - * The OS configuration of Linux agent nodes. - * + * Get the linuxOSConfig property: The OS configuration of Linux agent nodes. + * * @return the linuxOSConfig value. */ public LinuxOSConfig linuxOSConfig() { @@ -1167,10 +1084,8 @@ public LinuxOSConfig linuxOSConfig() { } /** - * Set the linuxOSConfig property: OS configurations of Linux agent nodes. - * - * The OS configuration of Linux agent nodes. - * + * Set the linuxOSConfig property: The OS configuration of Linux agent nodes. + * * @param linuxOSConfig the linuxOSConfig value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1180,11 +1095,9 @@ public ManagedClusterAgentPoolProfileProperties withLinuxOSConfig(LinuxOSConfig } /** - * Get the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. - * - * This is only supported on certain VM sizes and in certain Azure regions. For more information, see: - * https://docs.microsoft.com/azure/aks/enable-host-encryption. - * + * Get the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. + * For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption. + * * @return the enableEncryptionAtHost value. */ public Boolean enableEncryptionAtHost() { @@ -1192,11 +1105,9 @@ public Boolean enableEncryptionAtHost() { } /** - * Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. - * - * This is only supported on certain VM sizes and in certain Azure regions. For more information, see: - * https://docs.microsoft.com/azure/aks/enable-host-encryption. - * + * Set the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. + * For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption. + * * @param enableEncryptionAtHost the enableEncryptionAtHost value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1207,7 +1118,7 @@ public ManagedClusterAgentPoolProfileProperties withEnableEncryptionAtHost(Boole /** * Get the enableUltraSsd property: Whether to enable UltraSSD. - * + * * @return the enableUltraSsd value. */ public Boolean enableUltraSsd() { @@ -1216,7 +1127,7 @@ public Boolean enableUltraSsd() { /** * Set the enableUltraSsd property: Whether to enable UltraSSD. - * + * * @param enableUltraSsd the enableUltraSsd value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1226,12 +1137,10 @@ public ManagedClusterAgentPoolProfileProperties withEnableUltraSsd(Boolean enabl } /** - * Get the enableFips property: Whether to use a FIPS-enabled OS. - * - * See [Add a FIPS-enabled node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for - * more details. - * + * Get the enableFips property: See [Add a FIPS-enabled node + * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more + * details. + * * @return the enableFips value. */ public Boolean enableFips() { @@ -1239,12 +1148,10 @@ public Boolean enableFips() { } /** - * Set the enableFips property: Whether to use a FIPS-enabled OS. - * - * See [Add a FIPS-enabled node - * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for - * more details. - * + * Set the enableFips property: See [Add a FIPS-enabled node + * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more + * details. + * * @param enableFips the enableFips value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1256,7 +1163,7 @@ public ManagedClusterAgentPoolProfileProperties withEnableFips(Boolean enableFip /** * 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() { @@ -1266,7 +1173,7 @@ public GpuInstanceProfile 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 ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1276,9 +1183,9 @@ public ManagedClusterAgentPoolProfileProperties withGpuInstanceProfile(GpuInstan } /** - * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will - * be created/upgraded using a snapshot. - * + * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be + * created/upgraded using a snapshot. + * * @return the creationData value. */ public CreationData creationData() { @@ -1286,9 +1193,9 @@ public CreationData creationData() { } /** - * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will - * be created/upgraded using a snapshot. - * + * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be + * created/upgraded using a snapshot. + * * @param creationData the creationData value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1298,11 +1205,9 @@ public ManagedClusterAgentPoolProfileProperties withCreationData(CreationData cr } /** - * Get the capacityReservationGroupId property: The fully qualified resource ID of the Capacity Reservation Group - * to provide virtual machines from a reserved group of Virtual Machines. - * - * AKS will associate the specified agent pool with the Capacity Reservation Group. - * + * Get the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity + * Reservation Group. + * * @return the capacityReservationGroupId value. */ public String capacityReservationGroupId() { @@ -1310,11 +1215,9 @@ public String capacityReservationGroupId() { } /** - * Set the capacityReservationGroupId property: The fully qualified resource ID of the Capacity Reservation Group - * to provide virtual machines from a reserved group of Virtual Machines. - * - * AKS will associate the specified agent pool with the Capacity Reservation Group. - * + * Set the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity + * Reservation Group. + * * @param capacityReservationGroupId the capacityReservationGroupId value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1324,14 +1227,11 @@ public ManagedClusterAgentPoolProfileProperties withCapacityReservationGroupId(S } /** - * Get the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual - * machines from, used only in creation scenario and not allowed to changed once set. - * - * This is of the form: + * Get the hostGroupId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. * For more information see [Azure dedicated * hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - * + * * @return the hostGroupId value. */ public String hostGroupId() { @@ -1339,14 +1239,11 @@ public String hostGroupId() { } /** - * Set the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual - * machines from, used only in creation scenario and not allowed to changed once set. - * - * This is of the form: + * Set the hostGroupId property: This is of the form: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. * For more information see [Azure dedicated * hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - * + * * @param hostGroupId the hostGroupId value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1357,7 +1254,7 @@ public ManagedClusterAgentPoolProfileProperties withHostGroupId(String hostGroup /** * Get the networkProfile property: Network-related settings of an agent pool. - * + * * @return the networkProfile value. */ public AgentPoolNetworkProfile networkProfile() { @@ -1366,7 +1263,7 @@ public AgentPoolNetworkProfile networkProfile() { /** * Set the networkProfile property: Network-related settings of an agent pool. - * + * * @param networkProfile the networkProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1377,7 +1274,7 @@ public ManagedClusterAgentPoolProfileProperties withNetworkProfile(AgentPoolNetw /** * Get the windowsProfile property: The Windows agent pool's specific profile. - * + * * @return the windowsProfile value. */ public AgentPoolWindowsProfile windowsProfile() { @@ -1386,7 +1283,7 @@ public AgentPoolWindowsProfile windowsProfile() { /** * Set the windowsProfile property: The Windows agent pool's specific profile. - * + * * @param windowsProfile the windowsProfile value to set. * @return the ManagedClusterAgentPoolProfileProperties object itself. */ @@ -1397,7 +1294,7 @@ public ManagedClusterAgentPoolProfileProperties withWindowsProfile(AgentPoolWind /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index 8d1010141987..3857a6a8bbb3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -36,6 +36,7 @@ import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile; import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -82,7 +83,7 @@ public ManagedClusterInner() { /** * Get the sku property: The managed cluster SKU. - * + * * @return the sku value. */ public ManagedClusterSku sku() { @@ -91,7 +92,7 @@ public ManagedClusterSku sku() { /** * Set the sku property: The managed cluster SKU. - * + * * @param sku the sku value to set. * @return the ManagedClusterInner object itself. */ @@ -102,7 +103,7 @@ public ManagedClusterInner withSku(ManagedClusterSku sku) { /** * Get the extendedLocation property: The extended location of the Virtual Machine. - * + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -111,7 +112,7 @@ public ExtendedLocation extendedLocation() { /** * Set the extendedLocation property: The extended location of the Virtual Machine. - * + * * @param extendedLocation the extendedLocation value to set. * @return the ManagedClusterInner object itself. */ @@ -122,7 +123,7 @@ public ManagedClusterInner withExtendedLocation(ExtendedLocation extendedLocatio /** * Get the identity property: The identity of the managed cluster, if configured. - * + * * @return the identity value. */ public ManagedClusterIdentity identity() { @@ -131,7 +132,7 @@ public ManagedClusterIdentity identity() { /** * Set the identity property: The identity of the managed cluster, if configured. - * + * * @param identity the identity value to set. * @return the ManagedClusterInner object itself. */ @@ -142,7 +143,7 @@ public ManagedClusterInner withIdentity(ManagedClusterIdentity identity) { /** * Get the innerProperties property: Properties of a managed cluster. - * + * * @return the innerProperties value. */ private ManagedClusterProperties innerProperties() { @@ -151,7 +152,7 @@ private ManagedClusterProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -178,7 +179,7 @@ public ManagedClusterInner withTags(Map tags) { /** * Get the provisioningState property: The current provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -187,7 +188,7 @@ public String provisioningState() { /** * Get the powerState property: The Power State of the cluster. - * + * * @return the powerState value. */ public PowerState powerState() { @@ -196,7 +197,7 @@ public PowerState powerState() { /** * Get the maxAgentPools property: The max number of agent pools for the managed cluster. - * + * * @return the maxAgentPools value. */ public Integer maxAgentPools() { @@ -204,17 +205,15 @@ public Integer maxAgentPools() { } /** - * 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. - * + * Get the kubernetesVersion property: 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. */ public String kubernetesVersion() { @@ -222,17 +221,15 @@ public String kubernetesVersion() { } /** - * 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. - * + * Set the kubernetesVersion property: 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. */ @@ -245,12 +242,10 @@ public ManagedClusterInner withKubernetesVersion(String kubernetesVersion) { } /** - * 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. - * + * Get the currentKubernetesVersion property: 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. */ public String currentKubernetesVersion() { @@ -258,10 +253,8 @@ public String currentKubernetesVersion() { } /** - * Get the dnsPrefix property: The DNS prefix of the Managed Cluster. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Get the dnsPrefix property: This cannot be updated once the Managed Cluster has been created. + * * @return the dnsPrefix value. */ public String dnsPrefix() { @@ -269,10 +262,8 @@ public String dnsPrefix() { } /** - * Set the dnsPrefix property: The DNS prefix of the Managed Cluster. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Set the dnsPrefix property: This cannot be updated once the Managed Cluster has been created. + * * @param dnsPrefix the dnsPrefix value to set. * @return the ManagedClusterInner object itself. */ @@ -285,10 +276,8 @@ public ManagedClusterInner withDnsPrefix(String dnsPrefix) { } /** - * Get the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Get the fqdnSubdomain property: This cannot be updated once the Managed Cluster has been created. + * * @return the fqdnSubdomain value. */ public String fqdnSubdomain() { @@ -296,10 +285,8 @@ public String fqdnSubdomain() { } /** - * Set the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Set the fqdnSubdomain property: This cannot be updated once the Managed Cluster has been created. + * * @param fqdnSubdomain the fqdnSubdomain value to set. * @return the ManagedClusterInner object itself. */ @@ -313,7 +300,7 @@ public ManagedClusterInner withFqdnSubdomain(String fqdnSubdomain) { /** * Get the fqdn property: The FQDN of the master pool. - * + * * @return the fqdn value. */ public String fqdn() { @@ -322,7 +309,7 @@ public String fqdn() { /** * Get the privateFqdn property: The FQDN of private cluster. - * + * * @return the privateFqdn value. */ public String privateFqdn() { @@ -330,13 +317,10 @@ public String privateFqdn() { } /** - * Get the azurePortalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster. This - * FQDN is for use only by the Azure Portal and should not be used by other clients. - * - * The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, - * which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal - * to function properly. - * + * Get the azurePortalFqdn property: The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers + * to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports + * CORS, allowing the Azure Portal to function properly. + * * @return the azurePortalFqdn value. */ public String azurePortalFqdn() { @@ -345,7 +329,7 @@ public String azurePortalFqdn() { /** * Get the agentPoolProfiles property: The agent pool properties. - * + * * @return the agentPoolProfiles value. */ public List agentPoolProfiles() { @@ -354,7 +338,7 @@ public List agentPoolProfiles() { /** * Set the agentPoolProfiles property: The agent pool properties. - * + * * @param agentPoolProfiles the agentPoolProfiles value to set. * @return the ManagedClusterInner object itself. */ @@ -368,7 +352,7 @@ public ManagedClusterInner withAgentPoolProfiles(List addonProfiles() { @@ -449,7 +433,7 @@ public Map addonProfiles() { /** * Set the addonProfiles property: The profile of managed cluster add-on. - * + * * @param addonProfiles the addonProfiles value to set. * @return the ManagedClusterInner object itself. */ @@ -462,11 +446,10 @@ public ManagedClusterInner withAddonProfiles(Map identityProfile() { @@ -795,7 +767,7 @@ public Map identityProfile() { /** * Set the identityProfile property: Identities associated with the cluster. - * + * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterInner object itself. */ @@ -809,7 +781,7 @@ public ManagedClusterInner withIdentityProfile(Map /** * Get the privateLinkResources property: Private link resources associated with the cluster. - * + * * @return the privateLinkResources value. */ public List privateLinkResources() { @@ -818,7 +790,7 @@ public List privateLinkResources() { /** * Set the privateLinkResources property: Private link resources associated with the cluster. - * + * * @param privateLinkResources the privateLinkResources value to set. * @return the ManagedClusterInner object itself. */ @@ -831,12 +803,10 @@ public ManagedClusterInner withPrivateLinkResources(List (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 + * 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. */ @@ -73,8 +72,6 @@ public final class ManagedClusterProperties { private String kubernetesVersion; /* - * 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. */ @@ -82,16 +79,12 @@ public final class ManagedClusterProperties { private String currentKubernetesVersion; /* - * The DNS prefix of the Managed Cluster. - * * This cannot be updated once the Managed Cluster has been created. */ @JsonProperty(value = "dnsPrefix") private String dnsPrefix; /* - * The FQDN subdomain of the private cluster with custom private dns zone. - * * This cannot be updated once the Managed Cluster has been created. */ @JsonProperty(value = "fqdnSubdomain") @@ -110,9 +103,6 @@ public final class ManagedClusterProperties { private String privateFqdn; /* - * The special FQDN used by the Azure Portal to access the Managed Cluster. This FQDN is for use only by the Azure - * Portal and should not be used by other clients. - * * The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, * which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal * to function properly. @@ -152,8 +142,6 @@ public final class ManagedClusterProperties { private Map addonProfiles; /* - * The pod identity profile of the Managed Cluster. - * * See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on * AAD pod identity integration. */ @@ -199,8 +187,6 @@ public final class ManagedClusterProperties { private ContainerServiceNetworkProfile networkProfile; /* - * AADProfile specifies attributes for Azure Active Directory integration. - * * The Azure Active Directory configuration. */ @JsonProperty(value = "aadProfile") @@ -231,8 +217,6 @@ public final class ManagedClusterProperties { private ManagedClusterApiServerAccessProfile apiServerAccessProfile; /* - * The Resource ID of the disk encryption set to use for enabling encryption at rest. - * * This is of the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/ * diskEncryptionSets/{encryptionSetName}' @@ -254,8 +238,6 @@ public final class ManagedClusterProperties { private List privateLinkResources; /* - * If local accounts should be disabled on the Managed Cluster. - * * If set to true, getting static credentials will be disabled for this cluster. This must only be used on Managed * Clusters that are AAD enabled. For more details see [disable local * accounts](https://docs.microsoft.com/azure/aks/managed-aad#disable-local-accounts-preview). @@ -288,8 +270,6 @@ public final class ManagedClusterProperties { private ManagedClusterIngressProfile ingressProfile; /* - * PublicNetworkAccess of the managedCluster - * * Allow or deny public network access for AKS */ @JsonProperty(value = "publicNetworkAccess") @@ -334,7 +314,7 @@ public ManagedClusterProperties() { /** * Get the provisioningState property: The current provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -343,7 +323,7 @@ public String provisioningState() { /** * Get the powerState property: The Power State of the cluster. - * + * * @return the powerState value. */ public PowerState powerState() { @@ -352,7 +332,7 @@ public PowerState powerState() { /** * Get the maxAgentPools property: The max number of agent pools for the managed cluster. - * + * * @return the maxAgentPools value. */ public Integer maxAgentPools() { @@ -360,17 +340,15 @@ public Integer maxAgentPools() { } /** - * 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. - * + * Get the kubernetesVersion property: 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. */ public String kubernetesVersion() { @@ -378,17 +356,15 @@ public String kubernetesVersion() { } /** - * 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. - * + * Set the kubernetesVersion property: 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 ManagedClusterProperties object itself. */ @@ -398,12 +374,10 @@ public ManagedClusterProperties withKubernetesVersion(String kubernetesVersion) } /** - * 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. - * + * Get the currentKubernetesVersion property: 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. */ public String currentKubernetesVersion() { @@ -411,10 +385,8 @@ public String currentKubernetesVersion() { } /** - * Get the dnsPrefix property: The DNS prefix of the Managed Cluster. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Get the dnsPrefix property: This cannot be updated once the Managed Cluster has been created. + * * @return the dnsPrefix value. */ public String dnsPrefix() { @@ -422,10 +394,8 @@ public String dnsPrefix() { } /** - * Set the dnsPrefix property: The DNS prefix of the Managed Cluster. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Set the dnsPrefix property: This cannot be updated once the Managed Cluster has been created. + * * @param dnsPrefix the dnsPrefix value to set. * @return the ManagedClusterProperties object itself. */ @@ -435,10 +405,8 @@ public ManagedClusterProperties withDnsPrefix(String dnsPrefix) { } /** - * Get the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Get the fqdnSubdomain property: This cannot be updated once the Managed Cluster has been created. + * * @return the fqdnSubdomain value. */ public String fqdnSubdomain() { @@ -446,10 +414,8 @@ public String fqdnSubdomain() { } /** - * Set the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. - * - * This cannot be updated once the Managed Cluster has been created. - * + * Set the fqdnSubdomain property: This cannot be updated once the Managed Cluster has been created. + * * @param fqdnSubdomain the fqdnSubdomain value to set. * @return the ManagedClusterProperties object itself. */ @@ -460,7 +426,7 @@ public ManagedClusterProperties withFqdnSubdomain(String fqdnSubdomain) { /** * Get the fqdn property: The FQDN of the master pool. - * + * * @return the fqdn value. */ public String fqdn() { @@ -469,7 +435,7 @@ public String fqdn() { /** * Get the privateFqdn property: The FQDN of private cluster. - * + * * @return the privateFqdn value. */ public String privateFqdn() { @@ -477,13 +443,10 @@ public String privateFqdn() { } /** - * Get the azurePortalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster. This - * FQDN is for use only by the Azure Portal and should not be used by other clients. - * - * The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, - * which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal - * to function properly. - * + * Get the azurePortalFqdn property: The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers + * to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports + * CORS, allowing the Azure Portal to function properly. + * * @return the azurePortalFqdn value. */ public String azurePortalFqdn() { @@ -492,7 +455,7 @@ public String azurePortalFqdn() { /** * Get the agentPoolProfiles property: The agent pool properties. - * + * * @return the agentPoolProfiles value. */ public List agentPoolProfiles() { @@ -501,7 +464,7 @@ public List agentPoolProfiles() { /** * Set the agentPoolProfiles property: The agent pool properties. - * + * * @param agentPoolProfiles the agentPoolProfiles value to set. * @return the ManagedClusterProperties object itself. */ @@ -512,7 +475,7 @@ public ManagedClusterProperties withAgentPoolProfiles(List addonProfiles() { @@ -584,7 +547,7 @@ public Map addonProfiles() { /** * Set the addonProfiles property: The profile of managed cluster add-on. - * + * * @param addonProfiles the addonProfiles value to set. * @return the ManagedClusterProperties object itself. */ @@ -594,11 +557,10 @@ public ManagedClusterProperties withAddonProfiles(Map identityProfile() { @@ -889,7 +840,7 @@ public Map identityProfile() { /** * Set the identityProfile property: Identities associated with the cluster. - * + * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterProperties object itself. */ @@ -900,7 +851,7 @@ public ManagedClusterProperties withIdentityProfile(Map privateLinkResources() { @@ -909,7 +860,7 @@ public List privateLinkResources() { /** * Set the privateLinkResources property: Private link resources associated with the cluster. - * + * * @param privateLinkResources the privateLinkResources value to set. * @return the ManagedClusterProperties object itself. */ @@ -919,12 +870,10 @@ public ManagedClusterProperties withPrivateLinkResources(List agentPoolProfiles() { @@ -116,7 +117,7 @@ public List agentPoolProfiles() { /** * Set the agentPoolProfiles property: The list of available upgrade versions for agent pools. - * + * * @param agentPoolProfiles the agentPoolProfiles value to set. * @return the ManagedClusterUpgradeProfileInner object itself. */ @@ -131,13 +132,14 @@ public List agentPoolProfiles() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model ManagedClusterUpgradeProfileInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model ManagedClusterUpgradeProfileInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java index 9abf5c8aca63..896b157179ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.models.ManagedClusterPoolUpgradeProfile; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -35,7 +36,7 @@ public ManagedClusterUpgradeProfileProperties() { /** * Get the controlPlaneProfile property: The list of available upgrade versions for the control plane. - * + * * @return the controlPlaneProfile value. */ public ManagedClusterPoolUpgradeProfile controlPlaneProfile() { @@ -44,7 +45,7 @@ public ManagedClusterPoolUpgradeProfile controlPlaneProfile() { /** * Set the controlPlaneProfile property: The list of available upgrade versions for the control plane. - * + * * @param controlPlaneProfile the controlPlaneProfile value to set. * @return the ManagedClusterUpgradeProfileProperties object itself. */ @@ -56,7 +57,7 @@ public ManagedClusterPoolUpgradeProfile controlPlaneProfile() { /** * Get the agentPoolProfiles property: The list of available upgrade versions for agent pools. - * + * * @return the agentPoolProfiles value. */ public List agentPoolProfiles() { @@ -65,7 +66,7 @@ public List agentPoolProfiles() { /** * Set the agentPoolProfiles property: The list of available upgrade versions for agent pools. - * + * * @param agentPoolProfiles the agentPoolProfiles value to set. * @return the ManagedClusterUpgradeProfileProperties object itself. */ @@ -77,19 +78,21 @@ public List agentPoolProfiles() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (controlPlaneProfile() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property controlPlaneProfile in model ManagedClusterUpgradeProfileProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property controlPlaneProfile in model ManagedClusterUpgradeProfileProperties")); } else { controlPlaneProfile().validate(); } if (agentPoolProfiles() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property agentPoolProfiles in model ManagedClusterUpgradeProfileProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property agentPoolProfiles in model ManagedClusterUpgradeProfileProperties")); } else { agentPoolProfiles().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionProfileInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionProfileInner.java deleted file mode 100644 index 6f130a078d9d..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionProfileInner.java +++ /dev/null @@ -1,122 +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.resourcemanager.containerservice.models.OSOptionProperty; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * The OS option profile. - */ -@Fluent -public final class OSOptionProfileInner { - /* - * The ID of the OS option resource. - */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) - private String id; - - /* - * The name of the OS option resource. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /* - * The type of the OS option resource. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /* - * The list of OS options. - */ - @JsonProperty(value = "properties", required = true) - private OSOptionPropertyList innerProperties = new OSOptionPropertyList(); - - /** - * Creates an instance of OSOptionProfileInner class. - */ - public OSOptionProfileInner() { - } - - /** - * Get the id property: The ID of the OS option resource. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Get the name property: The name of the OS option resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The type of the OS option resource. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the innerProperties property: The list of OS options. - * - * @return the innerProperties value. - */ - private OSOptionPropertyList innerProperties() { - return this.innerProperties; - } - - /** - * Get the osOptionPropertyList property: The list of OS options. - * - * @return the osOptionPropertyList value. - */ - public List osOptionPropertyList() { - return this.innerProperties() == null ? null : this.innerProperties().osOptionPropertyList(); - } - - /** - * Set the osOptionPropertyList property: The list of OS options. - * - * @param osOptionPropertyList the osOptionPropertyList value to set. - * @return the OSOptionProfileInner object itself. - */ - public OSOptionProfileInner withOsOptionPropertyList(List osOptionPropertyList) { - if (this.innerProperties() == null) { - this.innerProperties = new OSOptionPropertyList(); - } - this.innerProperties().withOsOptionPropertyList(osOptionPropertyList); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model OSOptionProfileInner")); - } else { - innerProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OSOptionProfileInner.class); -} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionPropertyList.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionPropertyList.java deleted file mode 100644 index 5e8fbe8af128..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OSOptionPropertyList.java +++ /dev/null @@ -1,65 +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.resourcemanager.containerservice.models.OSOptionProperty; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * The list of OS option properties. - */ -@Fluent -public final class OSOptionPropertyList { - /* - * The list of OS options. - */ - @JsonProperty(value = "osOptionPropertyList", required = true) - private List osOptionPropertyList; - - /** - * Creates an instance of OSOptionPropertyList class. - */ - public OSOptionPropertyList() { - } - - /** - * Get the osOptionPropertyList property: The list of OS options. - * - * @return the osOptionPropertyList value. - */ - public List osOptionPropertyList() { - return this.osOptionPropertyList; - } - - /** - * Set the osOptionPropertyList property: The list of OS options. - * - * @param osOptionPropertyList the osOptionPropertyList value to set. - * @return the OSOptionPropertyList object itself. - */ - public OSOptionPropertyList withOsOptionPropertyList(List osOptionPropertyList) { - this.osOptionPropertyList = osOptionPropertyList; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (osOptionPropertyList() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property osOptionPropertyList in model OSOptionPropertyList")); - } else { - osOptionPropertyList().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OSOptionPropertyList.class); -} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OpenShiftManagedClusterProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OpenShiftManagedClusterProperties.java index 6b4bd6b46e64..2e5e685b4c60 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OpenShiftManagedClusterProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OpenShiftManagedClusterProperties.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile; import com.azure.resourcemanager.containerservice.models.OpenShiftRouterProfile; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -88,7 +89,7 @@ public OpenShiftManagedClusterProperties() { /** * Get the provisioningState property: The current deployment or provisioning state, which only appears in the * response. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -97,7 +98,7 @@ public String provisioningState() { /** * Get the openShiftVersion property: Version of OpenShift specified when creating the cluster. - * + * * @return the openShiftVersion value. */ public String openShiftVersion() { @@ -106,7 +107,7 @@ public String openShiftVersion() { /** * Set the openShiftVersion property: Version of OpenShift specified when creating the cluster. - * + * * @param openShiftVersion the openShiftVersion value to set. * @return the OpenShiftManagedClusterProperties object itself. */ @@ -117,7 +118,7 @@ public OpenShiftManagedClusterProperties withOpenShiftVersion(String openShiftVe /** * Get the clusterVersion property: Version of OpenShift specified when creating the cluster. - * + * * @return the clusterVersion value. */ public String clusterVersion() { @@ -126,7 +127,7 @@ public String clusterVersion() { /** * Get the publicHostname property: Service generated FQDN for OpenShift API server. - * + * * @return the publicHostname value. */ public String publicHostname() { @@ -135,7 +136,7 @@ public String publicHostname() { /** * Get the fqdn property: Service generated FQDN for OpenShift API server loadbalancer internal hostname. - * + * * @return the fqdn value. */ public String fqdn() { @@ -144,7 +145,7 @@ public String fqdn() { /** * Get the networkProfile property: Configuration for OpenShift networking. - * + * * @return the networkProfile value. */ public NetworkProfile networkProfile() { @@ -153,7 +154,7 @@ public NetworkProfile networkProfile() { /** * Set the networkProfile property: Configuration for OpenShift networking. - * + * * @param networkProfile the networkProfile value to set. * @return the OpenShiftManagedClusterProperties object itself. */ @@ -164,7 +165,7 @@ public OpenShiftManagedClusterProperties withNetworkProfile(NetworkProfile netwo /** * Get the routerProfiles property: Configuration for OpenShift router(s). - * + * * @return the routerProfiles value. */ public List routerProfiles() { @@ -173,7 +174,7 @@ public List routerProfiles() { /** * Set the routerProfiles property: Configuration for OpenShift router(s). - * + * * @param routerProfiles the routerProfiles value to set. * @return the OpenShiftManagedClusterProperties object itself. */ @@ -184,7 +185,7 @@ public OpenShiftManagedClusterProperties withRouterProfiles(List agentPoolProfiles() { @@ -214,7 +215,7 @@ public List agentPoolProfiles() { /** * Set the agentPoolProfiles property: Configuration of OpenShift cluster VMs. - * + * * @param agentPoolProfiles the agentPoolProfiles value to set. * @return the OpenShiftManagedClusterProperties object itself. */ @@ -226,7 +227,7 @@ public List agentPoolProfiles() { /** * Get the authProfile property: Configures OpenShift authentication. - * + * * @return the authProfile value. */ public OpenShiftManagedClusterAuthProfile authProfile() { @@ -235,7 +236,7 @@ public OpenShiftManagedClusterAuthProfile authProfile() { /** * Set the authProfile property: Configures OpenShift authentication. - * + * * @param authProfile the authProfile value to set. * @return the OpenShiftManagedClusterProperties object itself. */ @@ -246,13 +247,14 @@ public OpenShiftManagedClusterProperties withAuthProfile(OpenShiftManagedCluster /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (openShiftVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property openShiftVersion in model OpenShiftManagedClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property openShiftVersion in model OpenShiftManagedClusterProperties")); } if (networkProfile() != null) { networkProfile().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OrchestratorVersionProfileListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OrchestratorVersionProfileListResultInner.java index 1673ab8c92b8..00f7337a368e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OrchestratorVersionProfileListResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OrchestratorVersionProfileListResultInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.models.OrchestratorVersionProfile; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -47,7 +48,7 @@ public OrchestratorVersionProfileListResultInner() { /** * Get the id property: Id of the orchestrator version profile list result. - * + * * @return the id value. */ public String id() { @@ -56,7 +57,7 @@ public String id() { /** * Get the name property: Name of the orchestrator version profile list result. - * + * * @return the name value. */ public String name() { @@ -65,7 +66,7 @@ public String name() { /** * Get the type property: Type of the orchestrator version profile list result. - * + * * @return the type value. */ public String type() { @@ -74,7 +75,7 @@ public String type() { /** * Get the innerProperties property: The properties of an orchestrator version profile. - * + * * @return the innerProperties value. */ private OrchestratorVersionProfileProperties innerProperties() { @@ -83,7 +84,7 @@ private OrchestratorVersionProfileProperties innerProperties() { /** * Get the orchestrators property: List of orchestrator version profiles. - * + * * @return the orchestrators value. */ public List orchestrators() { @@ -92,7 +93,7 @@ public List orchestrators() { /** * Set the orchestrators property: List of orchestrator version profiles. - * + * * @param orchestrators the orchestrators value to set. * @return the OrchestratorVersionProfileListResultInner object itself. */ @@ -106,13 +107,14 @@ public OrchestratorVersionProfileListResultInner withOrchestrators(List orchestrators() { @@ -38,7 +39,7 @@ public List orchestrators() { /** * Set the orchestrators property: List of orchestrator version profiles. - * + * * @param orchestrators the orchestrators value to set. * @return the OrchestratorVersionProfileProperties object itself. */ @@ -49,13 +50,14 @@ public OrchestratorVersionProfileProperties withOrchestrators(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java index a01e3883940a..0cac19f57c3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java @@ -70,8 +70,8 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -80,8 +80,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java index e90e49ee187c..45287820941f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java @@ -70,8 +70,8 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -80,8 +80,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionProperties object itself. @@ -102,8 +102,9 @@ public void validate() { privateEndpoint().validate(); } if (privateLinkServiceConnectionState() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties")); } else { privateLinkServiceConnectionState().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java index 44652bc49484..d30286aa4925 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -57,7 +58,7 @@ public PrivateLinkResourceInner() { /** * Get the id property: The ID of the private link resource. - * + * * @return the id value. */ public String id() { @@ -66,7 +67,7 @@ public String id() { /** * Set the id property: The ID of the private link resource. - * + * * @param id the id value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -77,7 +78,7 @@ public PrivateLinkResourceInner withId(String id) { /** * Get the name property: The name of the private link resource. - * + * * @return the name value. */ public String name() { @@ -86,7 +87,7 @@ public String name() { /** * Set the name property: The name of the private link resource. - * + * * @param name the name value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -97,7 +98,7 @@ public PrivateLinkResourceInner withName(String name) { /** * Get the type property: The resource type. - * + * * @return the type value. */ public String type() { @@ -106,7 +107,7 @@ public String type() { /** * Set the type property: The resource type. - * + * * @param type the type value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -117,7 +118,7 @@ public PrivateLinkResourceInner withType(String type) { /** * Get the groupId property: The group ID of the resource. - * + * * @return the groupId value. */ public String groupId() { @@ -126,7 +127,7 @@ public String groupId() { /** * Set the groupId property: The group ID of the resource. - * + * * @param groupId the groupId value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -137,7 +138,7 @@ public PrivateLinkResourceInner withGroupId(String groupId) { /** * Get the requiredMembers property: The RequiredMembers of the resource. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -146,7 +147,7 @@ public List requiredMembers() { /** * Set the requiredMembers property: The RequiredMembers of the resource. - * + * * @param requiredMembers the requiredMembers value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -156,9 +157,9 @@ public PrivateLinkResourceInner withRequiredMembers(List requiredMembers } /** - * Get the privateLinkServiceId property: The private link service ID of the resource, this field is exposed only - * to NRP internally. - * + * Get the privateLinkServiceId property: The private link service ID of the resource, this field is exposed only to + * NRP internally. + * * @return the privateLinkServiceId value. */ public String privateLinkServiceId() { @@ -167,7 +168,7 @@ public String privateLinkServiceId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java index a7ff40808419..cbc4859c7c79 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java @@ -47,8 +47,8 @@ public final class SnapshotProperties { private OSType osType; /* - * 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. + * 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. */ @JsonProperty(value = "osSku", access = JsonProperty.Access.WRITE_ONLY) private OSSku osSku; diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java index 5c9220b02897..d6a81dab7a28 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java @@ -10,6 +10,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -37,7 +38,7 @@ public TrustedAccessRoleBindingInner() { /** * Get the innerProperties property: Properties for trusted access role binding. - * + * * @return the innerProperties value. */ private TrustedAccessRoleBindingProperties innerProperties() { @@ -46,7 +47,7 @@ private TrustedAccessRoleBindingProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -55,7 +56,7 @@ public SystemData systemData() { /** * Get the provisioningState property: The current provisioning state of trusted access role binding. - * + * * @return the provisioningState value. */ public TrustedAccessRoleBindingProvisioningState provisioningState() { @@ -64,7 +65,7 @@ public TrustedAccessRoleBindingProvisioningState provisioningState() { /** * Get the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for. - * + * * @return the sourceResourceId value. */ public String sourceResourceId() { @@ -73,7 +74,7 @@ public String sourceResourceId() { /** * Set the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for. - * + * * @param sourceResourceId the sourceResourceId value to set. * @return the TrustedAccessRoleBindingInner object itself. */ @@ -88,7 +89,7 @@ public TrustedAccessRoleBindingInner withSourceResourceId(String sourceResourceI /** * Get the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: * 'Microsoft.MachineLearningServices/workspaces/reader'. - * + * * @return the roles value. */ public List roles() { @@ -98,7 +99,7 @@ public List roles() { /** * Set the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: * 'Microsoft.MachineLearningServices/workspaces/reader'. - * + * * @param roles the roles value to set. * @return the TrustedAccessRoleBindingInner object itself. */ @@ -112,13 +113,14 @@ public TrustedAccessRoleBindingInner withRoles(List roles) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model TrustedAccessRoleBindingInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model TrustedAccessRoleBindingInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java index 06b45bca547f..1d8c4ddb402a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -42,7 +43,7 @@ public TrustedAccessRoleBindingProperties() { /** * Get the provisioningState property: The current provisioning state of trusted access role binding. - * + * * @return the provisioningState value. */ public TrustedAccessRoleBindingProvisioningState provisioningState() { @@ -51,7 +52,7 @@ public TrustedAccessRoleBindingProvisioningState provisioningState() { /** * Get the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for. - * + * * @return the sourceResourceId value. */ public String sourceResourceId() { @@ -60,7 +61,7 @@ public String sourceResourceId() { /** * Set the sourceResourceId property: The ARM resource ID of source resource that trusted access is configured for. - * + * * @param sourceResourceId the sourceResourceId value to set. * @return the TrustedAccessRoleBindingProperties object itself. */ @@ -72,7 +73,7 @@ public TrustedAccessRoleBindingProperties withSourceResourceId(String sourceReso /** * Get the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: * 'Microsoft.MachineLearningServices/workspaces/reader'. - * + * * @return the roles value. */ public List roles() { @@ -82,7 +83,7 @@ public List roles() { /** * Set the roles property: A list of roles to bind, each item is a resource type qualified role name. For example: * 'Microsoft.MachineLearningServices/workspaces/reader'. - * + * * @param roles the roles value to set. * @return the TrustedAccessRoleBindingProperties object itself. */ @@ -93,17 +94,19 @@ public TrustedAccessRoleBindingProperties withRoles(List roles) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (sourceResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property sourceResourceId in model TrustedAccessRoleBindingProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sourceResourceId in model TrustedAccessRoleBindingProperties")); } if (roles() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property roles in model TrustedAccessRoleBindingProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property roles in model TrustedAccessRoleBindingProperties")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index f2ad7bc553cb..e830d98a67ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -37,10 +37,11 @@ import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner; import com.azure.resourcemanager.containerservice.models.AgentPoolListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in AgentPoolsClient. */ @@ -57,7 +58,7 @@ public final class AgentPoolsClientImpl implements AgentPoolsClient { /** * Initializes an instance of AgentPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AgentPoolsClientImpl(ContainerServiceManagementClientImpl client) { @@ -157,11 +158,11 @@ Mono> listNext(@PathParam(value = "nextLink", enco /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -191,7 +192,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -201,11 +202,11 @@ public Mono>> abortLatestOperationWithResponseAsync(St /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -236,7 +237,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -245,11 +246,11 @@ private Mono>> abortLatestOperationWithResponseAsync(S /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -269,11 +270,11 @@ public PollerFlux, Void> beginAbortLatestOperationAsync(String /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -295,11 +296,11 @@ private PollerFlux, Void> beginAbortLatestOperationAsync(String /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -316,11 +317,11 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -339,11 +340,11 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -360,11 +361,11 @@ public Mono abortLatestOperationAsync(String resourceGroupName, String res /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -383,11 +384,11 @@ private Mono abortLatestOperationAsync(String resourceGroupName, String re /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -402,11 +403,11 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, /** * Aborts last operation running on agent pool. - * + * * 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, 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. * @param agentPoolName The name of the agent pool. @@ -423,7 +424,7 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, /** * Gets a list of agent pools 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. @@ -449,7 +450,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -461,7 +462,7 @@ private Mono> listSinglePageAsync(String resourceG /** * Gets a list of agent pools 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. @@ -489,7 +490,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -501,7 +502,7 @@ private Mono> listSinglePageAsync(String resourceG /** * Gets a list of agent pools 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. @@ -517,7 +518,7 @@ public PagedFlux listAsync(String resourceGroupName, String reso /** * Gets a list of agent pools 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. @@ -534,7 +535,7 @@ private PagedFlux listAsync(String resourceGroupName, String res /** * Gets a list of agent pools 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. @@ -549,7 +550,7 @@ public PagedIterable list(String resourceGroupName, String resou /** * Gets a list of agent pools 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. @@ -565,7 +566,7 @@ public PagedIterable list(String resourceGroupName, String resou /** * Gets the specified managed cluster 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. @@ -596,7 +597,7 @@ public Mono> getWithResponseAsync(String resourceGroupN if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -606,7 +607,7 @@ public Mono> getWithResponseAsync(String resourceGroupN /** * Gets the specified managed cluster 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. @@ -638,7 +639,7 @@ private Mono> getWithResponseAsync(String resourceGroup if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -647,7 +648,7 @@ private Mono> getWithResponseAsync(String resourceGroup /** * Gets the specified managed cluster 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. @@ -664,7 +665,7 @@ public Mono getAsync(String resourceGroupName, String resourceNa /** * Gets the specified managed cluster 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. @@ -682,7 +683,7 @@ public Response getWithResponse(String resourceGroupName, String /** * Gets the specified managed cluster 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. @@ -698,7 +699,7 @@ public AgentPoolInner get(String resourceGroupName, String resourceName, String /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -734,7 +735,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -745,7 +746,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -782,7 +783,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -791,7 +792,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -812,7 +813,7 @@ public PollerFlux, AgentPoolInner> beginCreateOrUpdat /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -835,7 +836,7 @@ private PollerFlux, AgentPoolInner> beginCreateOrUpda /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -854,7 +855,7 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -874,7 +875,7 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -893,7 +894,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -913,7 +914,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -931,7 +932,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa /** * Creates or updates an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -950,7 +951,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -980,7 +981,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 = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -990,7 +991,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1021,7 +1022,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 = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -1030,7 +1031,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1049,7 +1050,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1071,7 +1072,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1088,7 +1089,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1106,7 +1107,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1123,7 +1124,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1142,7 +1143,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1157,7 +1158,7 @@ public void delete(String resourceGroupName, String resourceName, String agentPo /** * Deletes an agent pool in the specified managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. @@ -1173,7 +1174,7 @@ public void delete(String resourceGroupName, String resourceName, String agentPo /** * Gets the upgrade profile for an 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. @@ -1204,7 +1205,7 @@ public Mono> getUpgradeProfileWithRespons if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -1214,7 +1215,7 @@ public Mono> getUpgradeProfileWithRespons /** * Gets the upgrade profile for an 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. @@ -1246,7 +1247,7 @@ private Mono> getUpgradeProfileWithRespon if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1255,7 +1256,7 @@ private Mono> getUpgradeProfileWithRespon /** * Gets the upgrade profile for an 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. @@ -1273,7 +1274,7 @@ public Mono getUpgradeProfileAsync(String resource /** * Gets the upgrade profile for an 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. @@ -1291,7 +1292,7 @@ public Response getUpgradeProfileWithResponse(Stri /** * Gets the upgrade profile for an 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. @@ -1308,10 +1309,10 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, /** * Gets a list of supported Kubernetes versions for the specified agent pool. - * + * * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. - * + * * @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. @@ -1338,7 +1339,7 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1348,10 +1349,10 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, /** * Gets a list of supported Kubernetes versions for the specified agent pool. - * + * * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. - * + * * @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. @@ -1379,7 +1380,7 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1388,10 +1389,10 @@ public AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, /** * Gets a list of supported Kubernetes versions for the specified agent pool. - * + * * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. - * + * * @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. @@ -1408,10 +1409,10 @@ public Mono getAvailableAgentPoolVersionsAsync( /** * Gets a list of supported Kubernetes versions for the specified agent pool. - * + * * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. - * + * * @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. @@ -1428,10 +1429,10 @@ public Response getAvailableAgentPoolVersionsWi /** * Gets a list of supported Kubernetes versions for the specified agent pool. - * + * * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. - * + * * @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. @@ -1447,11 +1448,11 @@ public AgentPoolAvailableVersionsInner getAvailableAgentPoolVersions(String reso /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1481,7 +1482,7 @@ public Mono>> upgradeNodeImageVersionWithResponseAsync if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, @@ -1491,11 +1492,11 @@ public Mono>> upgradeNodeImageVersionWithResponseAsync /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1526,7 +1527,7 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1535,11 +1536,11 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1559,11 +1560,11 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1585,11 +1586,11 @@ private PollerFlux, AgentPoolInner> beginUpgradeNodeI /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1606,11 +1607,11 @@ public SyncPoller, AgentPoolInner> beginUpgradeNodeIm /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1629,11 +1630,11 @@ public SyncPoller, AgentPoolInner> beginUpgradeNodeIm /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1651,11 +1652,11 @@ public Mono upgradeNodeImageVersionAsync(String resourceGroupNam /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1674,11 +1675,11 @@ private Mono upgradeNodeImageVersionAsync(String resourceGroupNa /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1694,11 +1695,11 @@ public AgentPoolInner upgradeNodeImageVersion(String resourceGroupName, String r /** * Upgrades the node image version of an agent pool to the latest. - * + * * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS * provides one new image per week with the latest updates. For more details on node image versions, see: * https://docs.microsoft.com/azure/aks/node-image-upgrade. - * + * * @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. @@ -1716,10 +1717,8 @@ public AgentPoolInner upgradeNodeImageVersion(String resourceGroupName, String r /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -1744,10 +1743,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java index 930ae73a9815..d9a1f419ffed 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java @@ -12,6 +12,7 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.serializer.SerializerFactory; import com.azure.core.util.serializer.SerializerAdapter; + import java.time.Duration; /** @@ -28,7 +29,7 @@ public final class ContainerServiceManagementClientBuilder { /** * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms * part of the URI for every service call. - * + * * @param subscriptionId the subscriptionId value. * @return the ContainerServiceManagementClientBuilder. */ @@ -44,7 +45,7 @@ public ContainerServiceManagementClientBuilder subscriptionId(String subscriptio /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the ContainerServiceManagementClientBuilder. */ @@ -60,7 +61,7 @@ public ContainerServiceManagementClientBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the ContainerServiceManagementClientBuilder. */ @@ -76,7 +77,7 @@ public ContainerServiceManagementClientBuilder environment(AzureEnvironment envi /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the ContainerServiceManagementClientBuilder. */ @@ -92,7 +93,7 @@ public ContainerServiceManagementClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the ContainerServiceManagementClientBuilder. */ @@ -108,7 +109,7 @@ public ContainerServiceManagementClientBuilder defaultPollInterval(Duration defa /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the ContainerServiceManagementClientBuilder. */ @@ -119,17 +120,19 @@ public ContainerServiceManagementClientBuilder serializerAdapter(SerializerAdapt /** * Builds an instance of ContainerServiceManagementClientImpl with the provided parameters. - * + * * @return an instance of ContainerServiceManagementClientImpl. */ public ContainerServiceManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; - HttpPipeline localPipeline = (pipeline != null) ? pipeline + HttpPipeline localPipeline = (pipeline != null) + ? pipeline : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); Duration localDefaultPollInterval = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); - SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) + ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); ContainerServiceManagementClientImpl client = new ContainerServiceManagementClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java index 96b47b4c7127..86fc6a17b776 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java @@ -141,7 +141,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, @@ -181,7 +181,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -296,7 +296,7 @@ public Mono> getWithResponseAsync(String if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -338,7 +338,7 @@ private Mono> getWithResponseAsync(Strin if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -436,7 +436,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, configName, parameters, accept, context)) @@ -483,7 +483,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -582,7 +582,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -623,7 +623,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -682,9 +682,7 @@ public void delete(String resourceGroupName, String resourceName, String configN /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. @@ -713,9 +711,7 @@ public void delete(String resourceGroupName, String resourceName, String configN /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index 26753a730c50..0890d6aaf94b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -41,7 +41,6 @@ import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; -import com.azure.resourcemanager.containerservice.fluent.models.OSOptionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; import com.azure.resourcemanager.containerservice.models.Format; @@ -57,10 +56,11 @@ 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 java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ManagedClustersClient. */ @@ -78,7 +78,7 @@ public final class ManagedClustersClientImpl implements InnerSupportsGet> getOSOptions(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @QueryParam("resource-type") String resourceType, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions") @ExpectedResponses({ 200 }) @@ -382,124 +373,12 @@ Mono> listMeshUpgradeProfilesNext( @HeaderParam("Accept") String accept, Context context); } - /** - * Gets supported OS options in the specified subscription. - * - * @param location The name of the Azure region. - * @param resourceType The resource type for which the OS options needs to be returned. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return supported OS options in the specified subscription along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getOSOptionsWithResponseAsync(String location, String resourceType) { - 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 = "2024-02-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getOSOptions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, resourceType, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets supported OS options in the specified subscription. - * - * @param location The name of the Azure region. - * @param resourceType The resource type for which the OS options needs to be returned. - * @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 supported OS options in the specified subscription along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getOSOptionsWithResponseAsync(String location, String resourceType, - 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 = "2024-02-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getOSOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, - resourceType, accept, context); - } - - /** - * Gets supported OS options in the specified subscription. - * - * @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 supported OS options in the specified subscription on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getOSOptionsAsync(String location) { - final String resourceType = null; - return getOSOptionsWithResponseAsync(location, resourceType).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets supported OS options in the specified subscription. - * - * @param location The name of the Azure region. - * @param resourceType The resource type for which the OS options needs to be returned. - * @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 supported OS options in the specified subscription along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getOSOptionsWithResponse(String location, String resourceType, - Context context) { - return getOSOptionsWithResponseAsync(location, resourceType, context).block(); - } - - /** - * Gets supported OS options in the specified subscription. - * - * @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 supported OS options in the specified subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public OSOptionProfileInner getOSOptions(String location) { - final String resourceType = null; - return getOSOptionsWithResponse(location, resourceType, Context.NONE).getValue(); - } - /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the version. - * + * * @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. @@ -520,7 +399,7 @@ public Mono> listKubernetesVersionsWi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, @@ -530,10 +409,10 @@ public Mono> listKubernetesVersionsWi /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the 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. @@ -556,7 +435,7 @@ private Mono> listKubernetesVersionsW if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -565,10 +444,10 @@ private Mono> listKubernetesVersionsW /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the version. - * + * * @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. @@ -582,10 +461,10 @@ public Mono listKubernetesVersionsAsync(String /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the 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. @@ -601,10 +480,10 @@ public Response listKubernetesVersionsWithResp /** * Gets a list of supported Kubernetes versions in the specified subscription. - * + * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and * details on preview status of the version. - * + * * @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. @@ -618,7 +497,7 @@ public KubernetesVersionListResultInner listKubernetesVersions(String location) /** * Gets a list of managed clusters 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 clusters in the specified subscription along with {@link PagedResponse} on successful @@ -634,7 +513,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -646,7 +525,7 @@ private Mono> listSinglePageAsync() { /** * Gets a list of managed clusters 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. @@ -664,7 +543,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -674,7 +553,7 @@ private Mono> listSinglePageAsync(Context con /** * Gets a list of managed clusters 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 clusters in the specified subscription as paginated response with {@link PagedFlux}. @@ -686,7 +565,7 @@ public PagedFlux listAsync() { /** * Gets a list of managed clusters 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. @@ -701,7 +580,7 @@ private PagedFlux listAsync(Context context) { /** * Gets a list of managed clusters 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 clusters in the specified subscription as paginated response with @@ -714,7 +593,7 @@ public PagedIterable list() { /** * Gets a list of managed clusters 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. @@ -729,7 +608,7 @@ public PagedIterable list(Context context) { /** * Lists managed clusters 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. @@ -751,7 +630,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -763,7 +642,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists managed clusters 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. @@ -787,7 +666,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -799,7 +678,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists managed clusters 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. @@ -814,7 +693,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists managed clusters 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. @@ -830,7 +709,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Lists managed clusters 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. @@ -844,7 +723,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Lists managed clusters 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. @@ -859,7 +738,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets the upgrade profile 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -886,7 +765,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -896,7 +775,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets the upgrade profile 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 context The context to associate with this operation. @@ -924,7 +803,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -933,7 +812,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets the upgrade profile 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -950,7 +829,7 @@ public Mono getUpgradeProfileAsync(String res /** * Gets the upgrade profile 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 context The context to associate with this operation. @@ -967,7 +846,7 @@ public Response getUpgradeProfileWithResponse /** * Gets the upgrade profile 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -982,13 +861,13 @@ public ManagedClusterUpgradeProfileInner getUpgradeProfile(String resourceGroupN /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -1018,7 +897,7 @@ public Mono> getAccessProfileWithResp if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAccessProfile(this.client.getEndpoint(), apiVersion, @@ -1028,13 +907,13 @@ public Mono> getAccessProfileWithResp /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -1065,7 +944,7 @@ private Mono> getAccessProfileWithRes if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAccessProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1074,13 +953,13 @@ private Mono> getAccessProfileWithRes /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -1098,13 +977,13 @@ public Mono getAccessProfileAsync(String resou /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -1122,13 +1001,13 @@ public Response getAccessProfileWithResponse(S /** * Gets an access profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Instead use * [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) * or * [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) * . - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. @@ -1145,7 +1024,7 @@ public ManagedClusterAccessProfileInner getAccessProfile(String resourceGroupNam /** * Lists the admin credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1172,7 +1051,7 @@ public Mono> listClusterAdminCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1182,7 +1061,7 @@ public Mono> listClusterAdminCredentialsWithRes /** * Lists the admin credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1210,7 +1089,7 @@ private Mono> listClusterAdminCredentialsWithRe if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1219,7 +1098,7 @@ private Mono> listClusterAdminCredentialsWithRe /** * Lists the admin credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1237,7 +1116,7 @@ public Mono listClusterAdminCredentialsAsync(String reso /** * Lists the admin credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1256,7 +1135,7 @@ public Response listClusterAdminCredentialsWithResponse( /** * Lists the admin credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1273,7 +1152,7 @@ public CredentialResultsInner listClusterAdminCredentials(String resourceGroupNa /** * Lists the user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1303,7 +1182,7 @@ public Mono> listClusterUserCredentialsWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1313,7 +1192,7 @@ public Mono> listClusterUserCredentialsWithResp /** * Lists the user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1344,7 +1223,7 @@ private Mono> listClusterUserCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1353,7 +1232,7 @@ private Mono> listClusterUserCredentialsWithRes /** * Lists the user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1371,7 +1250,7 @@ public Mono listClusterUserCredentialsAsync(String resou /** * Lists the user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1393,7 +1272,7 @@ public Response listClusterUserCredentialsWithResponse(S /** * Lists the user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1411,7 +1290,7 @@ public CredentialResultsInner listClusterUserCredentials(String resourceGroupNam /** * Lists the cluster monitoring user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1438,7 +1317,7 @@ public Mono> listClusterMonitoringUserCredentia if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1448,7 +1327,7 @@ public Mono> listClusterMonitoringUserCredentia /** * Lists the cluster monitoring user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1476,7 +1355,7 @@ private Mono> listClusterMonitoringUserCredenti if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1485,7 +1364,7 @@ private Mono> listClusterMonitoringUserCredenti /** * Lists the cluster monitoring user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1503,7 +1382,7 @@ public Mono listClusterMonitoringUserCredentialsAsync(St /** * Lists the cluster monitoring user credentials 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 serverFqdn server fqdn type for credentials to be returned. @@ -1522,7 +1401,7 @@ public Response listClusterMonitoringUserCredentialsWith /** * Lists the cluster monitoring user credentials 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1539,7 +1418,7 @@ public CredentialResultsInner listClusterMonitoringUserCredentials(String resour /** * Gets 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. @@ -1565,7 +1444,7 @@ public Mono> getByResourceGroupWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1575,7 +1454,7 @@ public Mono> getByResourceGroupWithResponseAsync(S /** * Gets 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. @@ -1602,7 +1481,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1611,7 +1490,7 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Gets 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. @@ -1627,7 +1506,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets 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. @@ -1644,7 +1523,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets 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. @@ -1659,7 +1538,7 @@ public ManagedClusterInner getByResourceGroup(String resourceGroupName, String r /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1691,7 +1570,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -1701,7 +1580,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1734,7 +1613,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1743,7 +1622,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1763,7 +1642,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1785,7 +1664,7 @@ private PollerFlux, ManagedClusterInner> beginCr /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1802,7 +1681,7 @@ private PollerFlux, ManagedClusterInner> beginCr /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1820,7 +1699,7 @@ public SyncPoller, ManagedClusterInner> beginCre /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1838,7 +1717,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1857,7 +1736,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1874,7 +1753,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou /** * Creates or updates a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. @@ -1892,7 +1771,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -1924,7 +1803,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, @@ -1934,7 +1813,7 @@ public Mono>> updateTagsWithResponseAsync(String resou /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -1967,7 +1846,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1976,7 +1855,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -1996,7 +1875,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2018,7 +1897,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2035,7 +1914,7 @@ public SyncPoller, ManagedClusterInner> beginUpd /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2053,7 +1932,7 @@ public SyncPoller, ManagedClusterInner> beginUpd /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2071,7 +1950,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2090,7 +1969,7 @@ private Mono updateTagsAsync(String resourceGroupName, Stri /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2106,7 +1985,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN /** * Updates tags on a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. @@ -2124,7 +2003,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2149,7 +2028,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -2159,7 +2038,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -2186,7 +2065,7 @@ private Mono>> deleteWithResponseAsync(String resource if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -2195,7 +2074,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2212,7 +2091,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -2232,7 +2111,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2247,7 +2126,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -2264,7 +2143,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2279,7 +2158,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -2296,7 +2175,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, Co /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2310,7 +2189,7 @@ public void delete(String resourceGroupName, String resourceName) { /** * Deletes a managed cluster. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param context The context to associate with this operation. @@ -2325,9 +2204,9 @@ public void delete(String resourceGroupName, String resourceName, Context contex /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2359,7 +2238,7 @@ public Mono>> resetServicePrincipalProfileWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2369,9 +2248,9 @@ public Mono>> resetServicePrincipalProfileWithResponse /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2404,7 +2283,7 @@ private Mono>> resetServicePrincipalProfileWithRespons } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2413,9 +2292,9 @@ private Mono>> resetServicePrincipalProfileWithRespons /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2435,9 +2314,9 @@ public PollerFlux, Void> beginResetServicePrincipalProfileAsync /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2459,9 +2338,9 @@ private PollerFlux, Void> beginResetServicePrincipalProfileAsyn /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2478,9 +2357,9 @@ public SyncPoller, Void> beginResetServicePrincipalProfile(Stri /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2499,9 +2378,9 @@ public SyncPoller, Void> beginResetServicePrincipalProfile(Stri /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2519,9 +2398,9 @@ public Mono resetServicePrincipalProfileAsync(String resourceGroupName, St /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2540,9 +2419,9 @@ private Mono resetServicePrincipalProfileAsync(String resourceGroupName, S /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2558,9 +2437,9 @@ public void resetServicePrincipalProfile(String resourceGroupName, String resour /** * Reset the Service Principal Profile of a managed cluster. - * + * * This action cannot be performed on a cluster that is not using a service principal. - * + * * @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 service principal profile to set on the managed cluster. @@ -2577,10 +2456,10 @@ public void resetServicePrincipalProfile(String resourceGroupName, String resour /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2612,7 +2491,7 @@ public Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetAadProfile(this.client.getEndpoint(), apiVersion, @@ -2622,10 +2501,10 @@ public Mono>> resetAadProfileWithResponseAsync(String /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2658,7 +2537,7 @@ private Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetAadProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2667,10 +2546,10 @@ private Mono>> resetAadProfileWithResponseAsync(String /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2690,10 +2569,10 @@ public PollerFlux, Void> beginResetAadProfileAsync(String resou /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2715,10 +2594,10 @@ private PollerFlux, Void> beginResetAadProfileAsync(String reso /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2735,10 +2614,10 @@ public SyncPoller, Void> beginResetAadProfile(String resourceGr /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2756,10 +2635,10 @@ public SyncPoller, Void> beginResetAadProfile(String resourceGr /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2777,10 +2656,10 @@ public Mono resetAadProfileAsync(String resourceGroupName, String resource /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2799,10 +2678,10 @@ private Mono resetAadProfileAsync(String resourceGroupName, String resourc /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2817,10 +2696,10 @@ public void resetAadProfile(String resourceGroupName, String resourceName, Manag /** * Reset the AAD Profile of a managed cluster. - * + * * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory * integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * + * * @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 AAD profile to set on the Managed Cluster. @@ -2837,10 +2716,10 @@ public void resetAadProfile(String resourceGroupName, String resourceName, Manag /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2866,7 +2745,7 @@ public Mono>> rotateClusterCertificatesWithResponseAsy if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, @@ -2876,10 +2755,10 @@ public Mono>> rotateClusterCertificatesWithResponseAsy /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -2906,7 +2785,7 @@ private Mono>> rotateClusterCertificatesWithResponseAs if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2915,10 +2794,10 @@ private Mono>> rotateClusterCertificatesWithResponseAs /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2937,10 +2816,10 @@ public PollerFlux, Void> beginRotateClusterCertificatesAsync(St /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -2961,10 +2840,10 @@ private PollerFlux, Void> beginRotateClusterCertificatesAsync(S /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2980,10 +2859,10 @@ public SyncPoller, Void> beginRotateClusterCertificates(String /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -3000,10 +2879,10 @@ public SyncPoller, Void> beginRotateClusterCertificates(String /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3019,10 +2898,10 @@ public Mono rotateClusterCertificatesAsync(String resourceGroupName, Strin /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -3039,10 +2918,10 @@ private Mono rotateClusterCertificatesAsync(String resourceGroupName, Stri /** * Rotates the certificates of a managed cluster. - * + * * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3056,10 +2935,10 @@ public void rotateClusterCertificates(String resourceGroupName, String resourceN /** * Rotates the certificates of a managed cluster. - * + * * 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. * @param context The context to associate with this operation. @@ -3074,11 +2953,11 @@ public void rotateClusterCertificates(String resourceGroupName, String resourceN /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3104,7 +2983,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -3114,11 +2993,11 @@ public Mono>> abortLatestOperationWithResponseAsync(St /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -3145,7 +3024,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3154,11 +3033,11 @@ private Mono>> abortLatestOperationWithResponseAsync(S /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3176,11 +3055,11 @@ public PollerFlux, Void> beginAbortLatestOperationAsync(String /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -3201,11 +3080,11 @@ private PollerFlux, Void> beginAbortLatestOperationAsync(String /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3220,11 +3099,11 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -3241,11 +3120,11 @@ public SyncPoller, Void> beginAbortLatestOperation(String resou /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3261,11 +3140,11 @@ public Mono abortLatestOperationAsync(String resourceGroupName, String res /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -3282,11 +3161,11 @@ private Mono abortLatestOperationAsync(String resourceGroupName, String re /** * Aborts last operation running on 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, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3300,11 +3179,11 @@ public void abortLatestOperation(String resourceGroupName, String resourceName) /** * Aborts last operation running on 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, 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. * @param context The context to associate with this operation. @@ -3319,7 +3198,7 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3345,7 +3224,7 @@ public Mono>> rotateServiceAccountSigningKeysWithRespo if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3355,7 +3234,7 @@ public Mono>> rotateServiceAccountSigningKeysWithRespo /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -3382,7 +3261,7 @@ private Mono>> rotateServiceAccountSigningKeysWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3391,7 +3270,7 @@ private Mono>> rotateServiceAccountSigningKeysWithResp /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3410,7 +3289,7 @@ public PollerFlux, Void> beginRotateServiceAccountSigningKeysAs /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -3431,7 +3310,7 @@ private PollerFlux, Void> beginRotateServiceAccountSigningKeysA /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3447,7 +3326,7 @@ public SyncPoller, Void> beginRotateServiceAccountSigningKeys(S /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -3464,7 +3343,7 @@ public SyncPoller, Void> beginRotateServiceAccountSigningKeys(S /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3480,7 +3359,7 @@ public Mono rotateServiceAccountSigningKeysAsync(String resourceGroupName, /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -3498,7 +3377,7 @@ private Mono rotateServiceAccountSigningKeysAsync(String resourceGroupName /** * Rotates the service account signing keys 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3512,7 +3391,7 @@ public void rotateServiceAccountSigningKeys(String resourceGroupName, String res /** * Rotates the service account signing keys 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 context The context to associate with this operation. @@ -3527,12 +3406,12 @@ public void rotateServiceAccountSigningKeys(String resourceGroupName, String res /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -3557,7 +3436,7 @@ public Mono>> stopWithResponseAsync(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3567,12 +3446,12 @@ public Mono>> stopWithResponseAsync(String resourceGro /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -3599,7 +3478,7 @@ private Mono>> stopWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3608,12 +3487,12 @@ private Mono>> stopWithResponseAsync(String resourceGr /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -3630,12 +3509,12 @@ public PollerFlux, Void> beginStopAsync(String resourceGroupNam /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -3655,12 +3534,12 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -3675,12 +3554,12 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -3697,12 +3576,12 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -3717,12 +3596,12 @@ public Mono stopAsync(String resourceGroupName, String resourceName) { /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -3739,12 +3618,12 @@ private Mono stopAsync(String resourceGroupName, String resourceName, Cont /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping a 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. @@ -3758,12 +3637,12 @@ public void stop(String resourceGroupName, String resourceName) { /** * Stops a Managed Cluster - * + * * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the * control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue * charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) * for more details about stopping 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 context The context to associate with this operation. @@ -3778,10 +3657,10 @@ public void stop(String resourceGroupName, String resourceName, Context context) /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -3806,7 +3685,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, @@ -3816,10 +3695,10 @@ public Mono>> startWithResponseAsync(String resourceGr /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -3846,7 +3725,7 @@ private Mono>> startWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3855,10 +3734,10 @@ private Mono>> startWithResponseAsync(String resourceG /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -3875,10 +3754,10 @@ public PollerFlux, Void> beginStartAsync(String resourceGroupNa /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -3898,10 +3777,10 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -3916,10 +3795,10 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -3936,10 +3815,10 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -3954,10 +3833,10 @@ public Mono startAsync(String resourceGroupName, String resourceName) { /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -3974,10 +3853,10 @@ private Mono startAsync(String resourceGroupName, String resourceName, Con /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * a 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. @@ -3991,10 +3870,10 @@ public void start(String resourceGroupName, String resourceName) { /** * Starts a previously stopped Managed Cluster - * + * * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting * 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 context The context to associate with this operation. @@ -4009,10 +3888,10 @@ public void start(String resourceGroupName, String resourceName, Context context /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4044,7 +3923,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { requestPayload.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.runCommand(this.client.getEndpoint(), apiVersion, @@ -4054,10 +3933,10 @@ public Mono>> runCommandWithResponseAsync(String resou /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4090,7 +3969,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { requestPayload.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.runCommand(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4099,10 +3978,10 @@ private Mono>> runCommandWithResponseAsync(String reso /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4123,10 +4002,10 @@ private Mono>> runCommandWithResponseAsync(String reso /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4148,10 +4027,10 @@ private PollerFlux, RunCommandResultInner> beg /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4168,10 +4047,10 @@ private PollerFlux, RunCommandResultInner> beg /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4189,10 +4068,10 @@ public SyncPoller, RunCommandResultInner> begi /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4210,10 +4089,10 @@ public Mono runCommandAsync(String resourceGroupName, Str /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4232,10 +4111,10 @@ private Mono runCommandAsync(String resourceGroupName, St /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4252,10 +4131,10 @@ public RunCommandResultInner runCommand(String resourceGroupName, String resourc /** * Submits a command to run against the Managed Cluster. - * + * * AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see * [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param requestPayload The run command request. @@ -4273,7 +4152,7 @@ public RunCommandResultInner runCommand(String resourceGroupName, String resourc /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -4304,7 +4183,7 @@ public Mono getCommandResultWithRespons if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCommandResult(this.client.getEndpoint(), apiVersion, @@ -4314,7 +4193,7 @@ public Mono getCommandResultWithRespons /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -4346,7 +4225,7 @@ private Mono getCommandResultWithRespon if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCommandResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4355,7 +4234,7 @@ private Mono getCommandResultWithRespon /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -4374,7 +4253,7 @@ public Mono getCommandResultAsync(String resourceGroupNam /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -4392,7 +4271,7 @@ public ManagedClustersGetCommandResultResponse getCommandResultWithResponse(Stri /** * Gets the results of a command which has been run on the 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 commandId Id of the command. @@ -4409,10 +4288,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4439,7 +4318,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), @@ -4452,10 +4331,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4484,7 +4363,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4497,10 +4376,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4520,10 +4399,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4544,10 +4423,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4565,10 +4444,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. - * + * * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed * cluster. The operation returns properties of each egress endpoint. - * + * * @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. @@ -4587,10 +4466,10 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r /** * 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. @@ -4611,7 +4490,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, @@ -4623,10 +4502,10 @@ private Mono> listMeshRevisionProfilesSi /** * 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. @@ -4649,7 +4528,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4661,10 +4540,10 @@ private Mono> listMeshRevisionProfilesSi /** * 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. @@ -4679,10 +4558,10 @@ public PagedFlux listMeshRevisionProfilesAsync(String /** * 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. @@ -4698,10 +4577,10 @@ private PagedFlux listMeshRevisionProfilesAsync(String /** * 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. @@ -4715,10 +4594,10 @@ public PagedIterable listMeshRevisionProfiles(String l /** * 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. @@ -4733,10 +4612,10 @@ public PagedIterable listMeshRevisionProfiles(String l /** * 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. @@ -4761,7 +4640,7 @@ public Mono> getMeshRevisionProfileWithRespon if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, @@ -4771,10 +4650,10 @@ public Mono> getMeshRevisionProfileWithRespon /** * 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. @@ -4800,7 +4679,7 @@ private Mono> getMeshRevisionProfileWithRespo if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4809,10 +4688,10 @@ private Mono> getMeshRevisionProfileWithRespo /** * 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. @@ -4827,10 +4706,10 @@ public Mono getMeshRevisionProfileAsync(String locatio /** * 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. @@ -4847,10 +4726,10 @@ public Response getMeshRevisionProfileWithResponse(Str /** * 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. @@ -4865,7 +4744,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m /** * 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. @@ -4892,7 +4771,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, @@ -4904,7 +4783,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m /** * 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. @@ -4932,7 +4811,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4944,7 +4823,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m /** * 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. @@ -4961,7 +4840,7 @@ public PagedFlux listMeshUpgradeProfilesAsync(String re /** * 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. @@ -4979,7 +4858,7 @@ private PagedFlux listMeshUpgradeProfilesAsync(String r /** * 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. @@ -4995,7 +4874,7 @@ public PagedIterable listMeshUpgradeProfiles(String res /** * 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. @@ -5012,7 +4891,7 @@ public PagedIterable listMeshUpgradeProfiles(String res /** * 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. @@ -5043,7 +4922,7 @@ public Mono> getMeshUpgradeProfileWithResponse if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -5053,7 +4932,7 @@ public Mono> getMeshUpgradeProfileWithResponse /** * 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. @@ -5085,7 +4964,7 @@ private Mono> getMeshUpgradeProfileWithRespons if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -5094,7 +4973,7 @@ private Mono> getMeshUpgradeProfileWithRespons /** * 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. @@ -5112,7 +4991,7 @@ public Mono getMeshUpgradeProfileAsync(String resourceG /** * 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. @@ -5130,7 +5009,7 @@ public Response getMeshUpgradeProfileWithResponse(Strin /** * 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. @@ -5146,10 +5025,8 @@ public MeshUpgradeProfileInner getMeshUpgradeProfile(String resourceGroupName, S /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5174,10 +5051,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5203,10 +5078,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5233,10 +5106,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5263,10 +5134,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5294,10 +5163,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5325,10 +5192,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5355,10 +5220,8 @@ private Mono> listMeshRevisionProfilesNe /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5385,10 +5248,8 @@ private Mono> listMeshRevisionProfilesNe /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -5415,10 +5276,8 @@ private Mono> listMeshUpgradeProfilesNext /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java index 8a8995cbf50c..e421878e6f2d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java @@ -39,10 +39,11 @@ 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 java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in OpenShiftManagedClustersClient. */ @@ -60,7 +61,7 @@ public final class OpenShiftManagedClustersClientImpl implements InnerSupportsGe /** * Initializes an instance of OpenShiftManagedClustersClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OpenShiftManagedClustersClientImpl(ContainerServiceManagementClientImpl client) { @@ -150,10 +151,10 @@ Mono> listByResourceGroupNext( /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @throws 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 OpenShift managed clusters in the specified subscription along with {@link PagedResponse} on @@ -181,10 +182,10 @@ private Mono> listSinglePageAsync() /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @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. @@ -212,10 +213,10 @@ private Mono> listSinglePageAsync(Co /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @throws 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 OpenShift managed clusters in the specified subscription as paginated response with @@ -228,10 +229,10 @@ public PagedFlux listAsync() { /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @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. @@ -247,10 +248,10 @@ private PagedFlux listAsync(Context context) { /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @throws 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 OpenShift managed clusters in the specified subscription as paginated response with @@ -263,10 +264,10 @@ public PagedIterable list() { /** * Gets a list of OpenShift managed clusters in the specified subscription. - * + * * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each * OpenShift managed cluster. - * + * * @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. @@ -281,10 +282,10 @@ public PagedIterable list(Context context) { /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -319,10 +320,10 @@ public PagedIterable list(Context context) { /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -358,10 +359,10 @@ public PagedIterable list(Context context) { /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,10 +378,10 @@ public PagedFlux listByResourceGroupAsync(String r /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -398,10 +399,10 @@ private PagedFlux listByResourceGroupAsync(String /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -416,10 +417,10 @@ public PagedIterable listByResourceGroup(String re /** * Lists OpenShift managed clusters in the specified subscription and resource group. - * + * * Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns * properties of each OpenShift managed cluster. - * + * * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,9 +436,9 @@ public PagedIterable listByResourceGroup(String re /** * Gets a OpenShift managed cluster. - * + * * Gets the details of the managed OpenShift cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -474,9 +475,9 @@ public Mono> getByResourceGroupWithRespon /** * Gets a OpenShift managed cluster. - * + * * Gets the details of the managed OpenShift cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -513,9 +514,9 @@ private Mono> getByResourceGroupWithRespo /** * Gets a OpenShift managed cluster. - * + * * Gets the details of the managed OpenShift cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -532,9 +533,9 @@ public Mono getByResourceGroupAsync(String resourc /** * Gets a OpenShift managed cluster. - * + * * Gets the details of the managed OpenShift cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -552,9 +553,9 @@ public Response getByResourceGroupWithResponse(Str /** * Gets a OpenShift managed cluster. - * + * * Gets the details of the managed OpenShift cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -569,9 +570,9 @@ public OpenShiftManagedClusterInner getByResourceGroup(String resourceGroupName, /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -613,9 +614,9 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -657,9 +658,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -680,9 +681,9 @@ public PollerFlux, OpenShiftManagedClus /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -705,9 +706,9 @@ private PollerFlux, OpenShiftManagedClu /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -724,9 +725,9 @@ private PollerFlux, OpenShiftManagedClu /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -744,9 +745,9 @@ public SyncPoller, OpenShiftManagedClus /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -764,9 +765,9 @@ public Mono createOrUpdateAsync(String resourceGro /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -785,9 +786,9 @@ private Mono createOrUpdateAsync(String resourceGr /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -804,9 +805,9 @@ public OpenShiftManagedClusterInner createOrUpdate(String resourceGroupName, Str /** * Creates or updates an OpenShift managed cluster. - * + * * Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. @@ -824,9 +825,9 @@ public OpenShiftManagedClusterInner createOrUpdate(String resourceGroupName, Str /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -868,9 +869,9 @@ public Mono>> updateTagsWithResponseAsync(String resou /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -912,9 +913,9 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -935,9 +936,9 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -960,9 +961,9 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -979,9 +980,9 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -999,9 +1000,9 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -1019,9 +1020,9 @@ public Mono updateTagsAsync(String resourceGroupNa /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -1040,9 +1041,9 @@ private Mono updateTagsAsync(String resourceGroupN /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -1059,9 +1060,9 @@ public OpenShiftManagedClusterInner updateTags(String resourceGroupName, String /** * Updates tags on an OpenShift managed cluster. - * + * * Updates an OpenShift managed cluster with the specified tags. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. @@ -1079,9 +1080,9 @@ public OpenShiftManagedClusterInner updateTags(String resourceGroupName, String /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1116,9 +1117,9 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -1154,9 +1155,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1173,9 +1174,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -1195,9 +1196,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1212,9 +1213,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -1231,9 +1232,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1248,9 +1249,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -1267,9 +1268,9 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, Co /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1283,9 +1284,9 @@ public void delete(String resourceGroupName, String resourceName) { /** * Deletes an OpenShift managed cluster. - * + * * Deletes the OpenShift managed cluster with a specified resource group and name. - * + * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @param context The context to associate with this operation. @@ -1300,10 +1301,8 @@ public void delete(String resourceGroupName, String resourceName, Context contex /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -1328,10 +1327,8 @@ private Mono> listNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -1358,10 +1355,8 @@ private Mono> listNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -1388,10 +1383,8 @@ private Mono> listByResourceGroupNex /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java index 11d76cef5ee0..910d6dfab2a8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java @@ -82,7 +82,7 @@ private Mono> listSinglePageAsync() { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -105,7 +105,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java index 61f07e9f595d..89e02b86d25b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java @@ -30,10 +30,11 @@ import com.azure.resourcemanager.containerservice.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionListResultInner; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ @@ -50,7 +51,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi /** * Initializes an instance of PrivateEndpointConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateEndpointConnectionsClientImpl(ContainerServiceManagementClientImpl client) { @@ -60,8 +61,8 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi } /** - * The interface defining all the services for ContainerServiceManagementClientPrivateEndpointConnections to be - * used by the proxy service to perform REST calls. + * The interface defining all the services for ContainerServiceManagementClientPrivateEndpointConnections to be used + * by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "ContainerServiceMana") @@ -109,9 +110,9 @@ Mono>> delete(@HostParam("$host") String endpoint, /** * Gets a list of private endpoint connections in the specified managed cluster. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @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. @@ -138,7 +139,7 @@ public Mono> listWithResponse if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -148,9 +149,9 @@ public Mono> listWithResponse /** * Gets a list of private endpoint connections in the specified managed cluster. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @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. @@ -178,7 +179,7 @@ private Mono> listWithRespons if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -187,9 +188,9 @@ private Mono> listWithRespons /** * Gets a list of private endpoint connections in the specified managed cluster. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @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. @@ -204,9 +205,9 @@ public Mono listAsync(String resourceG /** * Gets a list of private endpoint connections in the specified managed cluster. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @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. @@ -223,9 +224,9 @@ public Response listWithResponse(Strin /** * Gets a list of private endpoint connections in the specified managed cluster. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @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. @@ -240,9 +241,9 @@ public PrivateEndpointConnectionListResultInner list(String resourceGroupName, S /** * Gets the specified private endpoint connection. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -273,7 +274,7 @@ public Mono> getWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -283,9 +284,9 @@ public Mono> getWithResponseAsync(Strin /** * Gets the specified private endpoint connection. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -317,7 +318,7 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -326,9 +327,9 @@ private Mono> getWithResponseAsync(Stri /** * Gets the specified private endpoint connection. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -346,9 +347,9 @@ public Mono getAsync(String resourceGroupName, S /** * Gets the specified private endpoint connection. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -366,9 +367,9 @@ public Response getWithResponse(String resourceG /** * Gets the specified private endpoint connection. - * + * * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -385,7 +386,7 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String resou /** * Updates a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -422,7 +423,7 @@ public Mono> updateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -433,7 +434,7 @@ public Mono> updateWithResponseAsync(St /** * Updates a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -472,7 +473,7 @@ private Mono> updateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -481,7 +482,7 @@ private Mono> updateWithResponseAsync(S /** * Updates a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -500,7 +501,7 @@ public Mono updateAsync(String resourceGroupName /** * Updates a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -520,7 +521,7 @@ public Response updateWithResponse(String resour /** * Updates a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -539,7 +540,7 @@ public PrivateEndpointConnectionInner update(String resourceGroupName, String re /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -570,7 +571,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -581,7 +582,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -613,7 +614,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -622,7 +623,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -642,7 +643,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -664,7 +665,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -681,7 +682,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -700,7 +701,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -717,7 +718,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -736,7 +737,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -751,7 +752,7 @@ public void delete(String resourceGroupName, String resourceName, String private /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java index 7250d2addea1..1fd74e95a789 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java @@ -97,7 +97,7 @@ public Mono> listWithResponseAsync if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -136,7 +136,7 @@ private Mono> listWithResponseAsyn if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java index ffe64af72261..791c06a0efdf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java @@ -104,7 +104,7 @@ public Mono> postWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -148,7 +148,7 @@ private Mono> postWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java index c7b09b516cba..bec5ced67836 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java @@ -160,7 +160,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -190,7 +190,7 @@ private Mono> listSinglePageAsync(Context context) return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -275,7 +275,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -311,7 +311,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -409,7 +409,7 @@ public Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -446,7 +446,7 @@ private Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -535,7 +535,7 @@ public Mono> createOrUpdateWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -578,7 +578,7 @@ private Mono> createOrUpdateWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -671,7 +671,7 @@ public Mono> updateTagsWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, @@ -714,7 +714,7 @@ private Mono> updateTagsWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -799,7 +799,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -836,7 +836,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -891,9 +891,7 @@ public void delete(String resourceGroupName, String resourceName) { /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. @@ -919,9 +917,7 @@ private Mono> listNextSinglePageAsync(String nextLi /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. @@ -948,9 +944,7 @@ private Mono> listNextSinglePageAsync(String nextLi /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. @@ -978,9 +972,7 @@ private Mono> listByResourceGroupNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java index 8c4ad3818274..e2ccaedc4019 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.containerservice.fluent.TrustedAccessRoleBindingsClient; import com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingInner; import com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in TrustedAccessRoleBindingsClient. */ @@ -54,7 +55,7 @@ public final class TrustedAccessRoleBindingsClientImpl implements TrustedAccessR /** * Initializes an instance of TrustedAccessRoleBindingsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ TrustedAccessRoleBindingsClientImpl(ContainerServiceManagementClientImpl client) { @@ -121,7 +122,7 @@ Mono> listNext( /** * List trusted access role bindings. - * + * * @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. @@ -148,7 +149,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -160,7 +161,7 @@ private Mono> listSinglePageAsync(S /** * List trusted access role bindings. - * + * * @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. @@ -188,7 +189,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -200,7 +201,7 @@ private Mono> listSinglePageAsync(S /** * List trusted access role bindings. - * + * * @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. @@ -216,7 +217,7 @@ public PagedFlux listAsync(String resourceGroupNa /** * List trusted access role bindings. - * + * * @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. @@ -234,7 +235,7 @@ private PagedFlux listAsync(String resourceGroupN /** * List trusted access role bindings. - * + * * @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. @@ -249,7 +250,7 @@ public PagedIterable list(String resourceGroupNam /** * List trusted access role bindings. - * + * * @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. @@ -266,7 +267,7 @@ public PagedIterable list(String resourceGroupNam /** * Get a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -297,7 +298,7 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -307,7 +308,7 @@ public Mono> getWithResponseAsync(String /** * Get a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -339,7 +340,7 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -348,7 +349,7 @@ private Mono> getWithResponseAsync(Strin /** * Get a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -366,7 +367,7 @@ public Mono getAsync(String resourceGroupName, St /** * Get a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -384,7 +385,7 @@ public Response getWithResponse(String resourceGr /** * Get a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -401,7 +402,7 @@ public TrustedAccessRoleBindingInner get(String resourceGroupName, String resour /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -441,7 +442,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -452,7 +453,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -493,7 +494,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -502,7 +503,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -525,7 +526,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -550,7 +551,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -564,13 +565,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, TrustedAccessRoleBindingInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, String trustedAccessRoleBindingName, TrustedAccessRoleBindingInner trustedAccessRoleBinding) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, trustedAccessRoleBindingName, - trustedAccessRoleBinding).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, trustedAccessRoleBindingName, + trustedAccessRoleBinding) + .getSyncPoller(); } /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -585,13 +588,15 @@ public SyncPoller, TrustedAccessRoleBi public SyncPoller, TrustedAccessRoleBindingInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, String trustedAccessRoleBindingName, TrustedAccessRoleBindingInner trustedAccessRoleBinding, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, trustedAccessRoleBindingName, - trustedAccessRoleBinding, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, trustedAccessRoleBindingName, + trustedAccessRoleBinding, context) + .getSyncPoller(); } /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -610,7 +615,7 @@ public Mono createOrUpdateAsync(String resourceGr /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -630,7 +635,7 @@ private Mono createOrUpdateAsync(String resourceG /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -649,7 +654,7 @@ public TrustedAccessRoleBindingInner createOrUpdate(String resourceGroupName, St /** * Create or update a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -669,7 +674,7 @@ public TrustedAccessRoleBindingInner createOrUpdate(String resourceGroupName, St /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -700,7 +705,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -711,7 +716,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -743,7 +748,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -752,7 +757,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -772,7 +777,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -794,7 +799,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -811,7 +816,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -830,7 +835,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -847,7 +852,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -866,7 +871,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -881,7 +886,7 @@ public void delete(String resourceGroupName, String resourceName, String trusted /** * Delete a trusted access role binding. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param trustedAccessRoleBindingName The name of trusted access role binding. @@ -898,10 +903,8 @@ public void delete(String resourceGroupName, String resourceName, String trusted /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. @@ -926,10 +929,8 @@ private Mono> listNextSinglePageAsy /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java index 98cb9d2c5963..a1f7a2a10e64 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java @@ -101,7 +101,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -134,7 +134,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-02-01"; + final String apiVersion = "2024-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -205,9 +205,7 @@ public PagedIterable list(String location, Context conte /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. @@ -232,9 +230,7 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @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. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java index e0f186c922b7..9725e62e640a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java @@ -13,10 +13,8 @@ @Fluent public final class AgentPoolUpgradeSettings { /* - * The maximum number or percentage of nodes that are surged during upgrade. - * - * 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 agent pool size at the time of the upgrade. For percentages, fractional nodes are + * 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 agent pool size at the time of the upgrade. For percentages, fractional nodes are * rounded up. If not specified, the default is 1. For more information, including best practices, see: * https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade */ @@ -24,20 +22,16 @@ public final class AgentPoolUpgradeSettings { private String maxSurge; /* - * The drain timeout for a node - * - * 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. + * 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. */ @JsonProperty(value = "drainTimeoutInMinutes") private Integer drainTimeoutInMinutes; /* - * The soak duration for a node - * - * The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next - * node. If not specified, the default is 0 minutes. + * The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next node. + * If not specified, the default is 0 minutes. */ @JsonProperty(value = "nodeSoakDurationInMinutes") private Integer nodeSoakDurationInMinutes; @@ -49,12 +43,10 @@ public AgentPoolUpgradeSettings() { } /** - * Get the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade. - * - * 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 agent pool size at the time of the upgrade. For percentages, fractional nodes are - * rounded up. If not specified, the default is 1. For more information, including best practices, see: - * https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade. + * Get the maxSurge property: 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 agent pool size at the time of the upgrade. For + * percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including + * best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade. * * @return the maxSurge value. */ @@ -63,12 +55,10 @@ public String maxSurge() { } /** - * Set the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade. - * - * 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 agent pool size at the time of the upgrade. For percentages, fractional nodes are - * rounded up. If not specified, the default is 1. For more information, including best practices, see: - * https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade. + * Set the maxSurge property: 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 agent pool size at the time of the upgrade. For + * percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including + * best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade. * * @param maxSurge the maxSurge value to set. * @return the AgentPoolUpgradeSettings object itself. @@ -79,11 +69,9 @@ public AgentPoolUpgradeSettings withMaxSurge(String maxSurge) { } /** - * Get the drainTimeoutInMinutes property: The drain timeout for a node - * - * 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. + * Get the drainTimeoutInMinutes property: 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. */ @@ -92,11 +80,9 @@ public Integer drainTimeoutInMinutes() { } /** - * Set the drainTimeoutInMinutes property: The drain timeout for a node - * - * 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. + * Set the drainTimeoutInMinutes property: 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 AgentPoolUpgradeSettings object itself. @@ -107,10 +93,8 @@ public AgentPoolUpgradeSettings withDrainTimeoutInMinutes(Integer drainTimeoutIn } /** - * Get the nodeSoakDurationInMinutes property: The soak duration for a node - * - * The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next - * node. If not specified, the default is 0 minutes. + * Get the nodeSoakDurationInMinutes property: The amount of time (in minutes) to wait after draining a node and + * before reimaging it and moving on to next node. If not specified, the default is 0 minutes. * * @return the nodeSoakDurationInMinutes value. */ @@ -119,10 +103,8 @@ public Integer nodeSoakDurationInMinutes() { } /** - * Set the nodeSoakDurationInMinutes property: The soak duration for a node - * - * The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next - * node. If not specified, the default is 0 minutes. + * Set the nodeSoakDurationInMinutes property: The amount of time (in minutes) to wait after draining a node and + * before reimaging it and moving on to next node. If not specified, the default is 0 minutes. * * @param nodeSoakDurationInMinutes the nodeSoakDurationInMinutes value to set. * @return the AgentPoolUpgradeSettings object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java index bfd671af88c8..6a9c7edbcdc2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java @@ -13,8 +13,6 @@ @Fluent public final class AgentPoolWindowsProfile { /* - * Whether to disable OutboundNAT in windows nodes - * * The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the * Windows agent pool does not have node public IP enabled. */ @@ -28,10 +26,8 @@ public AgentPoolWindowsProfile() { } /** - * Get the disableOutboundNat property: Whether to disable OutboundNAT in windows nodes - * - * The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the - * Windows agent pool does not have node public IP enabled. + * Get the disableOutboundNat property: The default value is false. Outbound NAT can only be disabled if the cluster + * outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. * * @return the disableOutboundNat value. */ @@ -40,10 +36,8 @@ public Boolean disableOutboundNat() { } /** - * Set the disableOutboundNat property: Whether to disable OutboundNAT in windows nodes - * - * The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the - * Windows agent pool does not have node public IP enabled. + * Set the disableOutboundNat property: The default value is false. Outbound NAT can only be disabled if the cluster + * outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. * * @param disableOutboundNat the disableOutboundNat value to set. * @return the AgentPoolWindowsProfile object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java index 4e7d7aaa4e6f..13160237c3e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java @@ -21,16 +21,13 @@ public final class AzureKeyVaultKms { /* * Identifier of Azure Key Vault key. See [key identifier * format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and- - * object-name) - * for more details. When Azure Key Vault key management service is enabled, this field is required and must be a - * valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty. + * object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and + * must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty. */ @JsonProperty(value = "keyId") private String keyId; /* - * Network access of the key vault - * * Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows * public access from all networks. `Private` means the key vault disables public access and enables private link. * The default value is `Public`. @@ -98,11 +95,9 @@ public AzureKeyVaultKms withKeyId(String keyId) { } /** - * Get the keyVaultNetworkAccess property: Network access of the key vault - * - * Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows - * public access from all networks. `Private` means the key vault disables public access and enables private link. - * The default value is `Public`. + * Get the keyVaultNetworkAccess property: Network access of key vault. The possible values are `Public` and + * `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault + * disables public access and enables private link. The default value is `Public`. * * @return the keyVaultNetworkAccess value. */ @@ -111,11 +106,9 @@ public KeyVaultNetworkAccessTypes keyVaultNetworkAccess() { } /** - * Set the keyVaultNetworkAccess property: Network access of the key vault - * - * Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows - * public access from all networks. `Private` means the key vault disables public access and enables private link. - * The default value is `Public`. + * Set the keyVaultNetworkAccess property: Network access of key vault. The possible values are `Public` and + * `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault + * disables public access and enables private link. The default value is `Public`. * * @param keyVaultNetworkAccess the keyVaultNetworkAccess value to set. * @return the AzureKeyVaultKms object itself. @@ -127,8 +120,7 @@ public AzureKeyVaultKms withKeyVaultNetworkAccess(KeyVaultNetworkAccessTypes key /** * Get the keyVaultResourceId property: Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this - * field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field - * empty. + * field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty. * * @return the keyVaultResourceId value. */ @@ -138,8 +130,7 @@ public String keyVaultResourceId() { /** * Set the keyVaultResourceId property: Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this - * field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field - * empty. + * field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty. * * @param keyVaultResourceId the keyVaultResourceId value to set. * @return the AzureKeyVaultKms object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java index 02074ae1e419..102137f9d9c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java @@ -78,12 +78,14 @@ public ContainerServiceLinuxProfile withSsh(ContainerServiceSshConfiguration ssh */ public void validate() { if (adminUsername() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property adminUsername in model ContainerServiceLinuxProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property adminUsername in model ContainerServiceLinuxProfile")); } if (ssh() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ssh in model ContainerServiceLinuxProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ssh in model ContainerServiceLinuxProfile")); } else { ssh().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java index d24fabb8265d..70a76c2fee20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -32,8 +33,6 @@ public final class ContainerServiceNetworkProfile { private NetworkPolicy networkPolicy; /* - * The network mode Azure CNI is configured with. - * * This cannot be specified if networkPlugin is anything other than 'azure'. */ @JsonProperty(value = "networkMode") @@ -52,8 +51,7 @@ public final class ContainerServiceNetworkProfile { private String podCidr; /* - * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP - * ranges. + * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ @JsonProperty(value = "serviceCidr") private String serviceCidr; @@ -66,8 +64,6 @@ public final class ContainerServiceNetworkProfile { private String dnsServiceIp; /* - * The outbound (egress) routing method. - * * This can only be set at cluster creation time and cannot be changed later. For more information see [egress * outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). */ @@ -75,8 +71,6 @@ public final class ContainerServiceNetworkProfile { private OutboundType outboundType; /* - * The load balancer sku for the managed cluster. - * * The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) * for more information about the differences between load balancer SKUs. */ @@ -96,26 +90,20 @@ public final class ContainerServiceNetworkProfile { private ManagedClusterNatGatewayProfile natGatewayProfile; /* - * The CIDR notation IP ranges from which to assign pod IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. + * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected + * for dual-stack networking. */ @JsonProperty(value = "podCidrs") private List podCidrs; /* - * The CIDR notation IP ranges from which to assign service cluster IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. They must not overlap with any Subnet IP ranges. + * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected + * for dual-stack networking. They must not overlap with any Subnet IP ranges. */ @JsonProperty(value = "serviceCidrs") private List serviceCidrs; /* - * The IP families used to specify IP versions available to the cluster. - * * IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is * IPv4. For dual-stack, the expected values are IPv4 and IPv6. */ @@ -130,7 +118,7 @@ public ContainerServiceNetworkProfile() { /** * Get the networkPlugin property: Network plugin used for building the Kubernetes network. - * + * * @return the networkPlugin value. */ public NetworkPlugin networkPlugin() { @@ -139,7 +127,7 @@ public NetworkPlugin networkPlugin() { /** * Set the networkPlugin property: Network plugin used for building the Kubernetes network. - * + * * @param networkPlugin the networkPlugin value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -150,7 +138,7 @@ public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlu /** * Get the networkPluginMode property: The mode the network plugin should use. - * + * * @return the networkPluginMode value. */ public NetworkPluginMode networkPluginMode() { @@ -159,7 +147,7 @@ public NetworkPluginMode networkPluginMode() { /** * Set the networkPluginMode property: The mode the network plugin should use. - * + * * @param networkPluginMode the networkPluginMode value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -170,7 +158,7 @@ public ContainerServiceNetworkProfile withNetworkPluginMode(NetworkPluginMode ne /** * Get the networkPolicy property: Network policy used for building the Kubernetes network. - * + * * @return the networkPolicy value. */ public NetworkPolicy networkPolicy() { @@ -179,7 +167,7 @@ public NetworkPolicy networkPolicy() { /** * Set the networkPolicy property: Network policy used for building the Kubernetes network. - * + * * @param networkPolicy the networkPolicy value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -189,10 +177,8 @@ public ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPol } /** - * Get the networkMode property: The network mode Azure CNI is configured with. - * - * This cannot be specified if networkPlugin is anything other than 'azure'. - * + * Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'. + * * @return the networkMode value. */ public NetworkMode networkMode() { @@ -200,10 +186,8 @@ public NetworkMode networkMode() { } /** - * Set the networkMode property: The network mode Azure CNI is configured with. - * - * This cannot be specified if networkPlugin is anything other than 'azure'. - * + * Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'. + * * @param networkMode the networkMode value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -214,7 +198,7 @@ public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode) { /** * Get the networkDataplane property: Network dataplane used in the Kubernetes cluster. - * + * * @return the networkDataplane value. */ public NetworkDataplane networkDataplane() { @@ -223,7 +207,7 @@ public NetworkDataplane networkDataplane() { /** * Set the networkDataplane property: Network dataplane used in the Kubernetes cluster. - * + * * @param networkDataplane the networkDataplane value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -234,7 +218,7 @@ public ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane netw /** * Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used. - * + * * @return the podCidr value. */ public String podCidr() { @@ -243,7 +227,7 @@ public String podCidr() { /** * Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used. - * + * * @param podCidr the podCidr value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -255,7 +239,7 @@ public ContainerServiceNetworkProfile withPodCidr(String podCidr) { /** * Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not * overlap with any Subnet IP ranges. - * + * * @return the serviceCidr value. */ public String serviceCidr() { @@ -265,7 +249,7 @@ public String serviceCidr() { /** * Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not * overlap with any Subnet IP ranges. - * + * * @param serviceCidr the serviceCidr value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -277,7 +261,7 @@ public ContainerServiceNetworkProfile withServiceCidr(String serviceCidr) { /** * Get the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the * Kubernetes service address range specified in serviceCidr. - * + * * @return the dnsServiceIp value. */ public String dnsServiceIp() { @@ -287,7 +271,7 @@ public String dnsServiceIp() { /** * Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the * Kubernetes service address range specified in serviceCidr. - * + * * @param dnsServiceIp the dnsServiceIp value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -297,11 +281,9 @@ public ContainerServiceNetworkProfile withDnsServiceIp(String dnsServiceIp) { } /** - * Get the outboundType property: The outbound (egress) routing method. - * - * This can only be set at cluster creation time and cannot be changed later. For more information see [egress - * outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). - * + * Get the outboundType property: This can only be set at cluster creation time and cannot be changed later. For + * more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). + * * @return the outboundType value. */ public OutboundType outboundType() { @@ -309,11 +291,9 @@ public OutboundType outboundType() { } /** - * Set the outboundType property: The outbound (egress) routing method. - * - * This can only be set at cluster creation time and cannot be changed later. For more information see [egress - * outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). - * + * Set the outboundType property: This can only be set at cluster creation time and cannot be changed later. For + * more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype). + * * @param outboundType the outboundType value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -323,11 +303,10 @@ public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType } /** - * Get the loadBalancerSku property: The load balancer sku for the managed cluster. - * - * The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) - * for more information about the differences between load balancer SKUs. - * + * Get the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer + * SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between + * load balancer SKUs. + * * @return the loadBalancerSku value. */ public LoadBalancerSku loadBalancerSku() { @@ -335,11 +314,10 @@ public LoadBalancerSku loadBalancerSku() { } /** - * Set the loadBalancerSku property: The load balancer sku for the managed cluster. - * - * The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) - * for more information about the differences between load balancer SKUs. - * + * Set the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer + * SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between + * load balancer SKUs. + * * @param loadBalancerSku the loadBalancerSku value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -350,7 +328,7 @@ public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBa /** * Get the loadBalancerProfile property: Profile of the cluster load balancer. - * + * * @return the loadBalancerProfile value. */ public ManagedClusterLoadBalancerProfile loadBalancerProfile() { @@ -359,7 +337,7 @@ public ManagedClusterLoadBalancerProfile loadBalancerProfile() { /** * Set the loadBalancerProfile property: Profile of the cluster load balancer. - * + * * @param loadBalancerProfile the loadBalancerProfile value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -371,7 +349,7 @@ public ManagedClusterLoadBalancerProfile loadBalancerProfile() { /** * Get the natGatewayProfile property: Profile of the cluster NAT gateway. - * + * * @return the natGatewayProfile value. */ public ManagedClusterNatGatewayProfile natGatewayProfile() { @@ -380,7 +358,7 @@ public ManagedClusterNatGatewayProfile natGatewayProfile() { /** * Set the natGatewayProfile property: Profile of the cluster NAT gateway. - * + * * @param natGatewayProfile the natGatewayProfile value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -390,11 +368,9 @@ public ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGat } /** - * Get the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. - * + * Get the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP + * family (IPv4/IPv6), is expected for dual-stack networking. + * * @return the podCidrs value. */ public List podCidrs() { @@ -402,11 +378,9 @@ public List podCidrs() { } /** - * Set the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. - * + * Set the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP + * family (IPv4/IPv6), is expected for dual-stack networking. + * * @param podCidrs the podCidrs value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -416,11 +390,9 @@ public ContainerServiceNetworkProfile withPodCidrs(List podCidrs) { } /** - * Get the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. They must not overlap with any Subnet IP ranges. - * + * Get the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP + * family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges. + * * @return the serviceCidrs value. */ public List serviceCidrs() { @@ -428,11 +400,9 @@ public List serviceCidrs() { } /** - * Set the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs. - * - * One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is - * expected for dual-stack networking. They must not overlap with any Subnet IP ranges. - * + * Set the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP + * family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges. + * * @param serviceCidrs the serviceCidrs value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -442,11 +412,9 @@ public ContainerServiceNetworkProfile withServiceCidrs(List serviceCidrs } /** - * Get the ipFamilies property: The IP families used to specify IP versions available to the cluster. - * - * IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is - * IPv4. For dual-stack, the expected values are IPv4 and IPv6. - * + * Get the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For + * single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6. + * * @return the ipFamilies value. */ public List ipFamilies() { @@ -454,11 +422,9 @@ public List ipFamilies() { } /** - * Set the ipFamilies property: The IP families used to specify IP versions available to the cluster. - * - * IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is - * IPv4. For dual-stack, the expected values are IPv4 and IPv6. - * + * Set the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For + * single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6. + * * @param ipFamilies the ipFamilies value to set. * @return the ContainerServiceNetworkProfile object itself. */ @@ -469,7 +435,7 @@ public ContainerServiceNetworkProfile withIpFamilies(List ipFamilies) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java index 61b0fc488138..6b1191a72028 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -29,7 +30,7 @@ public ContainerServiceSshConfiguration() { /** * Get the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs. A maximum of * 1 key may be specified. - * + * * @return the publicKeys value. */ public List publicKeys() { @@ -39,7 +40,7 @@ public List publicKeys() { /** * Set the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs. A maximum of * 1 key may be specified. - * + * * @param publicKeys the publicKeys value to set. * @return the ContainerServiceSshConfiguration object itself. */ @@ -50,13 +51,14 @@ public ContainerServiceSshConfiguration withPublicKeys(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java index e4ba28089f2d..59f7daac8f22 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java @@ -55,8 +55,9 @@ public ContainerServiceSshPublicKey withKeyData(String keyData) { */ public void validate() { if (keyData() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property keyData in model ContainerServiceSshPublicKey")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property keyData in model ContainerServiceSshPublicKey")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java index 2e62ad979892..349dd1bd3664 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java @@ -7,11 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.time.LocalDate; /** * A date range. - * + * * For example, between '2022-12-23' and '2023-01-05'. */ @Fluent @@ -36,7 +37,7 @@ public DateSpan() { /** * Get the start property: The start date of the date span. - * + * * @return the start value. */ public LocalDate start() { @@ -45,7 +46,7 @@ public LocalDate start() { /** * Set the start property: The start date of the date span. - * + * * @param start the start value to set. * @return the DateSpan object itself. */ @@ -56,7 +57,7 @@ public DateSpan withStart(LocalDate start) { /** * Get the end property: The end date of the date span. - * + * * @return the end value. */ public LocalDate end() { @@ -65,7 +66,7 @@ public LocalDate end() { /** * Set the end property: The end date of the date span. - * + * * @param end the end value to set. * @return the DateSpan object itself. */ @@ -76,17 +77,16 @@ public DateSpan withEnd(LocalDate end) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (start() == null) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("Missing required property start in model DateSpan")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property start in model DateSpan")); } if (end() == null) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("Missing required property end in model DateSpan")); + throw LOGGER.atError().log(new IllegalArgumentException("Missing required property end in model DateSpan")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java index 8ccf2fcd8ac1..c4f81b0877f6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java @@ -79,8 +79,8 @@ public IstioIngressGateway withEnabled(boolean enabled) { */ public void validate() { if (mode() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property mode in model IstioIngressGateway")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property mode in model IstioIngressGateway")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java index 4498da32aaef..92e9ca25569b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -42,7 +43,7 @@ public IstioServiceMesh() { /** * Get the components property: Istio components configuration. - * + * * @return the components value. */ public IstioComponents components() { @@ -51,7 +52,7 @@ public IstioComponents components() { /** * Set the components property: Istio components configuration. - * + * * @param components the components value to set. * @return the IstioServiceMesh object itself. */ @@ -63,7 +64,7 @@ public IstioServiceMesh withComponents(IstioComponents components) { /** * Get the certificateAuthority property: Istio Service Mesh Certificate Authority (CA) configuration. For now, we * only support plugin certificates as described here https://aka.ms/asm-plugin-ca. - * + * * @return the certificateAuthority value. */ public IstioCertificateAuthority certificateAuthority() { @@ -73,7 +74,7 @@ public IstioCertificateAuthority certificateAuthority() { /** * Set the certificateAuthority property: Istio Service Mesh Certificate Authority (CA) configuration. For now, we * only support plugin certificates as described here https://aka.ms/asm-plugin-ca. - * + * * @param certificateAuthority the certificateAuthority value to set. * @return the IstioServiceMesh object itself. */ @@ -83,10 +84,10 @@ public IstioServiceMesh withCertificateAuthority(IstioCertificateAuthority certi } /** - * Get the revisions property: The list of revisions of the Istio control plane. When an upgrade is not in - * progress, this holds one value. When canary upgrade is in progress, this can only hold two consecutive values. - * For more information, see: https://learn.microsoft.com/en-us/azure/aks/istio-upgrade. - * + * Get the revisions property: The list of revisions of the Istio control plane. When an upgrade is not in progress, + * this holds one value. When canary upgrade is in progress, this can only hold two consecutive values. For more + * information, see: https://learn.microsoft.com/en-us/azure/aks/istio-upgrade. + * * @return the revisions value. */ public List revisions() { @@ -94,10 +95,10 @@ public List revisions() { } /** - * Set the revisions property: The list of revisions of the Istio control plane. When an upgrade is not in - * progress, this holds one value. When canary upgrade is in progress, this can only hold two consecutive values. - * For more information, see: https://learn.microsoft.com/en-us/azure/aks/istio-upgrade. - * + * Set the revisions property: The list of revisions of the Istio control plane. When an upgrade is not in progress, + * this holds one value. When canary upgrade is in progress, this can only hold two consecutive values. For more + * information, see: https://learn.microsoft.com/en-us/azure/aks/istio-upgrade. + * * @param revisions the revisions value to set. * @return the IstioServiceMesh object itself. */ @@ -108,7 +109,7 @@ public IstioServiceMesh withRevisions(List revisions) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java index 813b556557ec..0b7444fb7e8f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java @@ -6,19 +6,17 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** * Kubelet configurations of agent nodes. - * - * See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more - * details. + * + * See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details. */ @Fluent public final class KubeletConfig { /* - * The CPU Manager policy to use. - * * The default is 'none'. See [Kubernetes CPU management * policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#cpu-management-policies) * for more information. Allowed values are 'none' and 'static'. @@ -27,16 +25,12 @@ public final class KubeletConfig { private String cpuManagerPolicy; /* - * If CPU CFS quota enforcement is enabled for containers that specify CPU limits. - * * The default is true. */ @JsonProperty(value = "cpuCfsQuota") private Boolean cpuCfsQuota; /* - * The CPU CFS quota period value. - * * The default is '100ms.' Valid values are a sequence of decimal numbers with an optional fraction and a unit * suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. */ @@ -44,24 +38,18 @@ public final class KubeletConfig { private String cpuCfsQuotaPeriod; /* - * The percent of disk usage after which image garbage collection is always run. - * * To disable image garbage collection, set to 100. The default is 85% */ @JsonProperty(value = "imageGcHighThreshold") private Integer imageGcHighThreshold; /* - * The percent of disk usage before which image garbage collection is never run. - * * This cannot be set higher than imageGcHighThreshold. The default is 80% */ @JsonProperty(value = "imageGcLowThreshold") private Integer imageGcLowThreshold; /* - * The Topology Manager policy to use. - * * For more information see [Kubernetes Topology * Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed * values are 'none', 'best-effort', 'restricted', and 'single-numa-node'. @@ -106,12 +94,10 @@ public KubeletConfig() { } /** - * Get the cpuManagerPolicy property: The CPU Manager policy to use. - * - * The default is 'none'. See [Kubernetes CPU management + * Get the cpuManagerPolicy property: The default is 'none'. See [Kubernetes CPU management * policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#cpu-management-policies) * for more information. Allowed values are 'none' and 'static'. - * + * * @return the cpuManagerPolicy value. */ public String cpuManagerPolicy() { @@ -119,12 +105,10 @@ public String cpuManagerPolicy() { } /** - * Set the cpuManagerPolicy property: The CPU Manager policy to use. - * - * The default is 'none'. See [Kubernetes CPU management + * Set the cpuManagerPolicy property: The default is 'none'. See [Kubernetes CPU management * policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#cpu-management-policies) * for more information. Allowed values are 'none' and 'static'. - * + * * @param cpuManagerPolicy the cpuManagerPolicy value to set. * @return the KubeletConfig object itself. */ @@ -134,10 +118,8 @@ public KubeletConfig withCpuManagerPolicy(String cpuManagerPolicy) { } /** - * Get the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits. - * - * The default is true. - * + * Get the cpuCfsQuota property: The default is true. + * * @return the cpuCfsQuota value. */ public Boolean cpuCfsQuota() { @@ -145,10 +127,8 @@ public Boolean cpuCfsQuota() { } /** - * Set the cpuCfsQuota property: If CPU CFS quota enforcement is enabled for containers that specify CPU limits. - * - * The default is true. - * + * Set the cpuCfsQuota property: The default is true. + * * @param cpuCfsQuota the cpuCfsQuota value to set. * @return the KubeletConfig object itself. */ @@ -158,11 +138,10 @@ public KubeletConfig withCpuCfsQuota(Boolean cpuCfsQuota) { } /** - * Get the cpuCfsQuotaPeriod property: The CPU CFS quota period value. - * - * The default is '100ms.' Valid values are a sequence of decimal numbers with an optional fraction and a unit - * suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. - * + * Get the cpuCfsQuotaPeriod property: The default is '100ms.' Valid values are a sequence of decimal numbers with + * an optional fraction and a unit suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', + * 'm', and 'h'. + * * @return the cpuCfsQuotaPeriod value. */ public String cpuCfsQuotaPeriod() { @@ -170,11 +149,10 @@ public String cpuCfsQuotaPeriod() { } /** - * Set the cpuCfsQuotaPeriod property: The CPU CFS quota period value. - * - * The default is '100ms.' Valid values are a sequence of decimal numbers with an optional fraction and a unit - * suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. - * + * Set the cpuCfsQuotaPeriod property: The default is '100ms.' Valid values are a sequence of decimal numbers with + * an optional fraction and a unit suffix. For example: '300ms', '2h45m'. Supported units are 'ns', 'us', 'ms', 's', + * 'm', and 'h'. + * * @param cpuCfsQuotaPeriod the cpuCfsQuotaPeriod value to set. * @return the KubeletConfig object itself. */ @@ -184,11 +162,8 @@ public KubeletConfig withCpuCfsQuotaPeriod(String cpuCfsQuotaPeriod) { } /** - * Get the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always - * run. - * - * To disable image garbage collection, set to 100. The default is 85%. - * + * Get the imageGcHighThreshold property: To disable image garbage collection, set to 100. The default is 85%. + * * @return the imageGcHighThreshold value. */ public Integer imageGcHighThreshold() { @@ -196,11 +171,8 @@ public Integer imageGcHighThreshold() { } /** - * Set the imageGcHighThreshold property: The percent of disk usage after which image garbage collection is always - * run. - * - * To disable image garbage collection, set to 100. The default is 85%. - * + * Set the imageGcHighThreshold property: To disable image garbage collection, set to 100. The default is 85%. + * * @param imageGcHighThreshold the imageGcHighThreshold value to set. * @return the KubeletConfig object itself. */ @@ -210,11 +182,8 @@ public KubeletConfig withImageGcHighThreshold(Integer imageGcHighThreshold) { } /** - * Get the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never - * run. - * - * This cannot be set higher than imageGcHighThreshold. The default is 80%. - * + * Get the imageGcLowThreshold property: This cannot be set higher than imageGcHighThreshold. The default is 80%. + * * @return the imageGcLowThreshold value. */ public Integer imageGcLowThreshold() { @@ -222,11 +191,8 @@ public Integer imageGcLowThreshold() { } /** - * Set the imageGcLowThreshold property: The percent of disk usage before which image garbage collection is never - * run. - * - * This cannot be set higher than imageGcHighThreshold. The default is 80%. - * + * Set the imageGcLowThreshold property: This cannot be set higher than imageGcHighThreshold. The default is 80%. + * * @param imageGcLowThreshold the imageGcLowThreshold value to set. * @return the KubeletConfig object itself. */ @@ -236,12 +202,10 @@ public KubeletConfig withImageGcLowThreshold(Integer imageGcLowThreshold) { } /** - * Get the topologyManagerPolicy property: The Topology Manager policy to use. - * - * For more information see [Kubernetes Topology + * Get the topologyManagerPolicy property: For more information see [Kubernetes Topology * Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed * values are 'none', 'best-effort', 'restricted', and 'single-numa-node'. - * + * * @return the topologyManagerPolicy value. */ public String topologyManagerPolicy() { @@ -249,12 +213,10 @@ public String topologyManagerPolicy() { } /** - * Set the topologyManagerPolicy property: The Topology Manager policy to use. - * - * For more information see [Kubernetes Topology + * Set the topologyManagerPolicy property: For more information see [Kubernetes Topology * Manager](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). The default is 'none'. Allowed * values are 'none', 'best-effort', 'restricted', and 'single-numa-node'. - * + * * @param topologyManagerPolicy the topologyManagerPolicy value to set. * @return the KubeletConfig object itself. */ @@ -265,7 +227,7 @@ public KubeletConfig withTopologyManagerPolicy(String topologyManagerPolicy) { /** * Get the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`). - * + * * @return the allowedUnsafeSysctls value. */ public List allowedUnsafeSysctls() { @@ -274,7 +236,7 @@ public List allowedUnsafeSysctls() { /** * Set the allowedUnsafeSysctls property: Allowed list of unsafe sysctls or unsafe sysctl patterns (ending in `*`). - * + * * @param allowedUnsafeSysctls the allowedUnsafeSysctls value to set. * @return the KubeletConfig object itself. */ @@ -286,7 +248,7 @@ public KubeletConfig withAllowedUnsafeSysctls(List allowedUnsafeSysctls) /** * Get the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the * node. - * + * * @return the failSwapOn value. */ public Boolean failSwapOn() { @@ -296,7 +258,7 @@ public Boolean failSwapOn() { /** * Set the failSwapOn property: If set to true it will make the Kubelet fail to start if swap is enabled on the * node. - * + * * @param failSwapOn the failSwapOn value to set. * @return the KubeletConfig object itself. */ @@ -307,7 +269,7 @@ public KubeletConfig withFailSwapOn(Boolean failSwapOn) { /** * Get the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated. - * + * * @return the containerLogMaxSizeMB value. */ public Integer containerLogMaxSizeMB() { @@ -316,7 +278,7 @@ public Integer containerLogMaxSizeMB() { /** * Set the containerLogMaxSizeMB property: The maximum size (e.g. 10Mi) of container log file before it is rotated. - * + * * @param containerLogMaxSizeMB the containerLogMaxSizeMB value to set. * @return the KubeletConfig object itself. */ @@ -328,7 +290,7 @@ public KubeletConfig withContainerLogMaxSizeMB(Integer containerLogMaxSizeMB) { /** * Get the containerLogMaxFiles property: The maximum number of container log files that can be present for a * container. The number must be ≥ 2. - * + * * @return the containerLogMaxFiles value. */ public Integer containerLogMaxFiles() { @@ -338,7 +300,7 @@ public Integer containerLogMaxFiles() { /** * Set the containerLogMaxFiles property: The maximum number of container log files that can be present for a * container. The number must be ≥ 2. - * + * * @param containerLogMaxFiles the containerLogMaxFiles value to set. * @return the KubeletConfig object itself. */ @@ -349,7 +311,7 @@ public KubeletConfig withContainerLogMaxFiles(Integer containerLogMaxFiles) { /** * Get the podMaxPids property: The maximum number of processes per pod. - * + * * @return the podMaxPids value. */ public Integer podMaxPids() { @@ -358,7 +320,7 @@ public Integer podMaxPids() { /** * Set the podMaxPids property: The maximum number of processes per pod. - * + * * @param podMaxPids the podMaxPids value to set. * @return the KubeletConfig object itself. */ @@ -369,7 +331,7 @@ public KubeletConfig withPodMaxPids(Integer podMaxPids) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java index 9cc3bb4c756a..31f2a97e5b25 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java @@ -10,8 +10,7 @@ /** * OS configurations of Linux agent nodes. * - * See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more - * details. + * See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details. */ @Fluent public final class LinuxOSConfig { @@ -22,18 +21,13 @@ public final class LinuxOSConfig { private SysctlConfig sysctls; /* - * Whether transparent hugepages are enabled. - * - * Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see - * [Transparent + * Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). */ @JsonProperty(value = "transparentHugePageEnabled") private String transparentHugePageEnabled; /* - * Whether the kernel should make aggressive use of memory compaction to make more hugepages available. - * * Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more * information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). @@ -74,10 +68,8 @@ public LinuxOSConfig withSysctls(SysctlConfig sysctls) { } /** - * Get the transparentHugePageEnabled property: Whether transparent hugepages are enabled. - * - * Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see - * [Transparent + * Get the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'. The default is + * 'always'. For more information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). * * @return the transparentHugePageEnabled value. @@ -87,10 +79,8 @@ public String transparentHugePageEnabled() { } /** - * Set the transparentHugePageEnabled property: Whether transparent hugepages are enabled. - * - * Valid values are 'always', 'madvise', and 'never'. The default is 'always'. For more information see - * [Transparent + * Set the transparentHugePageEnabled property: Valid values are 'always', 'madvise', and 'never'. The default is + * 'always'. For more information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). * * @param transparentHugePageEnabled the transparentHugePageEnabled value to set. @@ -102,11 +92,8 @@ public LinuxOSConfig withTransparentHugePageEnabled(String transparentHugePageEn } /** - * Get the transparentHugePageDefrag property: Whether the kernel should make aggressive use of memory compaction - * to make more hugepages available. - * - * Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more - * information see [Transparent + * Get the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and + * 'never'. The default is 'madvise'. For more information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). * * @return the transparentHugePageDefrag value. @@ -116,11 +103,8 @@ public String transparentHugePageDefrag() { } /** - * Set the transparentHugePageDefrag property: Whether the kernel should make aggressive use of memory compaction - * to make more hugepages available. - * - * Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and 'never'. The default is 'madvise'. For more - * information see [Transparent + * Set the transparentHugePageDefrag property: Valid values are 'always', 'defer', 'defer+madvise', 'madvise' and + * 'never'. The default is 'madvise'. For more information see [Transparent * Hugepages](https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html#admin-guide-transhuge). * * @param transparentHugePageDefrag the transparentHugePageDefrag value to set. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java index 1d2995c90a16..2bd43fbd7726 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.time.LocalDate; import java.util.List; @@ -50,8 +51,8 @@ public final class MaintenanceWindow { /* * Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: - * +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' - * to '2023-01-03 22:00' in UTC time. + * +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to + * '2023-01-03 22:00' in UTC time. */ @JsonProperty(value = "notAllowedDates") private List notAllowedDates; @@ -64,7 +65,7 @@ public MaintenanceWindow() { /** * Get the schedule property: Recurrence schedule for the maintenance window. - * + * * @return the schedule value. */ public Schedule schedule() { @@ -73,7 +74,7 @@ public Schedule schedule() { /** * Set the schedule property: Recurrence schedule for the maintenance window. - * + * * @param schedule the schedule value to set. * @return the MaintenanceWindow object itself. */ @@ -84,7 +85,7 @@ public MaintenanceWindow withSchedule(Schedule schedule) { /** * Get the durationHours property: Length of maintenance window range from 4 to 24 hours. - * + * * @return the durationHours value. */ public int durationHours() { @@ -93,7 +94,7 @@ public int durationHours() { /** * Set the durationHours property: Length of maintenance window range from 4 to 24 hours. - * + * * @param durationHours the durationHours value to set. * @return the MaintenanceWindow object itself. */ @@ -105,7 +106,7 @@ public MaintenanceWindow withDurationHours(int durationHours) { /** * Get the utcOffset property: The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for * PST. If not specified, the default is '+00:00'. - * + * * @return the utcOffset value. */ public String utcOffset() { @@ -115,7 +116,7 @@ public String utcOffset() { /** * Set the utcOffset property: The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for * PST. If not specified, the default is '+00:00'. - * + * * @param utcOffset the utcOffset value to set. * @return the MaintenanceWindow object itself. */ @@ -128,7 +129,7 @@ public MaintenanceWindow withUtcOffset(String utcOffset) { * Get the startDate property: The date the maintenance window activates. If the current date is before this date, * the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window * will be active right away. - * + * * @return the startDate value. */ public LocalDate startDate() { @@ -139,7 +140,7 @@ public LocalDate startDate() { * Set the startDate property: The date the maintenance window activates. If the current date is before this date, * the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window * will be active right away. - * + * * @param startDate the startDate value to set. * @return the MaintenanceWindow object itself. */ @@ -150,9 +151,8 @@ public MaintenanceWindow withStartDate(LocalDate startDate) { /** * Get the startTime property: The start time of the maintenance window. Accepted values are from '00:00' to - * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time - * '00:00'. - * + * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. + * * @return the startTime value. */ public String startTime() { @@ -161,9 +161,8 @@ public String startTime() { /** * Set the startTime property: The start time of the maintenance window. Accepted values are from '00:00' to - * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time - * '00:00'. - * + * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. + * * @param startTime the startTime value to set. * @return the MaintenanceWindow object itself. */ @@ -173,10 +172,10 @@ public MaintenanceWindow withStartTime(String startTime) { } /** - * Get the notAllowedDates property: Date ranges on which upgrade is not allowed. 'utcOffset' applies to this - * field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will - * be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. - * + * Get the notAllowedDates property: Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. + * For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be + * blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. + * * @return the notAllowedDates value. */ public List notAllowedDates() { @@ -184,10 +183,10 @@ public List notAllowedDates() { } /** - * Set the notAllowedDates property: Date ranges on which upgrade is not allowed. 'utcOffset' applies to this - * field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will - * be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. - * + * Set the notAllowedDates property: Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. + * For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be + * blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. + * * @param notAllowedDates the notAllowedDates value to set. * @return the MaintenanceWindow object itself. */ @@ -198,19 +197,19 @@ public MaintenanceWindow withNotAllowedDates(List notAllowedDates) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (schedule() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property schedule in model MaintenanceWindow")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property schedule in model MaintenanceWindow")); } else { schedule().validate(); } if (startTime() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property startTime in model MaintenanceWindow")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property startTime in model MaintenanceWindow")); } if (notAllowedDates() != null) { notAllowedDates().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java index 97255146c809..6a8e08a206ff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -17,8 +18,6 @@ @Fluent public final class ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { /* - * Unique name of the agent pool profile in the context of the subscription and resource group. - * * Windows agent pool names must be 6 characters or less. */ @JsonProperty(value = "name", required = true) @@ -31,11 +30,8 @@ public ManagedClusterAgentPoolProfile() { } /** - * Get the name property: Unique name of the agent pool profile in the context of the subscription and resource - * group. - * - * Windows agent pool names must be 6 characters or less. - * + * Get the name property: Windows agent pool names must be 6 characters or less. + * * @return the name value. */ public String name() { @@ -43,11 +39,8 @@ public String name() { } /** - * Set the name property: Unique name of the agent pool profile in the context of the subscription and resource - * group. - * - * Windows agent pool names must be 6 characters or less. - * + * Set the name property: Windows agent pool names must be 6 characters or less. + * * @param name the name value to set. * @return the ManagedClusterAgentPoolProfile object itself. */ @@ -427,15 +420,16 @@ public ManagedClusterAgentPoolProfile withWindowsProfile(AgentPoolWindowsProfile /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ManagedClusterAgentPoolProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model ManagedClusterAgentPoolProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java index 222c7c9b9d6a..741c3e336bd6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -14,26 +15,20 @@ @Fluent public final class ManagedClusterApiServerAccessProfile { /* - * The IP ranges authorized to access the Kubernetes API server. - * - * IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters - * that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API - * server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). + * IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that + * use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server + * authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). */ @JsonProperty(value = "authorizedIPRanges") private List authorizedIpRanges; /* - * Whether to create the cluster as a private cluster or not. - * * For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters). */ @JsonProperty(value = "enablePrivateCluster") private Boolean enablePrivateCluster; /* - * The private DNS zone mode for the cluster. - * * The default is System. For more details see [configure private DNS * zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are * 'system' and 'none'. @@ -60,12 +55,11 @@ public ManagedClusterApiServerAccessProfile() { } /** - * Get the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server. - * - * IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters - * that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API - * server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). - * + * Get the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature + * is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. + * For more information see [API server authorized IP + * ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). + * * @return the authorizedIpRanges value. */ public List authorizedIpRanges() { @@ -73,12 +67,11 @@ public List authorizedIpRanges() { } /** - * Set the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server. - * - * IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters - * that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API - * server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). - * + * Set the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature + * is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. + * For more information see [API server authorized IP + * ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). + * * @param authorizedIpRanges the authorizedIpRanges value to set. * @return the ManagedClusterApiServerAccessProfile object itself. */ @@ -88,10 +81,9 @@ public ManagedClusterApiServerAccessProfile withAuthorizedIpRanges(List } /** - * Get the enablePrivateCluster property: Whether to create the cluster as a private cluster or not. - * - * For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters). - * + * Get the enablePrivateCluster property: For more details, see [Creating a private AKS + * cluster](https://docs.microsoft.com/azure/aks/private-clusters). + * * @return the enablePrivateCluster value. */ public Boolean enablePrivateCluster() { @@ -99,10 +91,9 @@ public Boolean enablePrivateCluster() { } /** - * Set the enablePrivateCluster property: Whether to create the cluster as a private cluster or not. - * - * For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters). - * + * Set the enablePrivateCluster property: For more details, see [Creating a private AKS + * cluster](https://docs.microsoft.com/azure/aks/private-clusters). + * * @param enablePrivateCluster the enablePrivateCluster value to set. * @return the ManagedClusterApiServerAccessProfile object itself. */ @@ -112,12 +103,10 @@ public ManagedClusterApiServerAccessProfile withEnablePrivateCluster(Boolean ena } /** - * Get the privateDnsZone property: The private DNS zone mode for the cluster. - * - * The default is System. For more details see [configure private DNS + * Get the privateDnsZone property: The default is System. For more details see [configure private DNS * zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are * 'system' and 'none'. - * + * * @return the privateDnsZone value. */ public String privateDnsZone() { @@ -125,12 +114,10 @@ public String privateDnsZone() { } /** - * Set the privateDnsZone property: The private DNS zone mode for the cluster. - * - * The default is System. For more details see [configure private DNS + * Set the privateDnsZone property: The default is System. For more details see [configure private DNS * zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are * 'system' and 'none'. - * + * * @param privateDnsZone the privateDnsZone value to set. * @return the ManagedClusterApiServerAccessProfile object itself. */ @@ -142,7 +129,7 @@ public ManagedClusterApiServerAccessProfile withPrivateDnsZone(String privateDns /** * Get the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or * not. - * + * * @return the enablePrivateClusterPublicFqdn value. */ public Boolean enablePrivateClusterPublicFqdn() { @@ -152,7 +139,7 @@ public Boolean enablePrivateClusterPublicFqdn() { /** * Set the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or * not. - * + * * @param enablePrivateClusterPublicFqdn the enablePrivateClusterPublicFqdn value to set. * @return the ManagedClusterApiServerAccessProfile object itself. */ @@ -164,7 +151,7 @@ public Boolean enablePrivateClusterPublicFqdn() { /** * Get the disableRunCommand property: Whether to disable run command for the cluster or not. - * + * * @return the disableRunCommand value. */ public Boolean disableRunCommand() { @@ -173,7 +160,7 @@ public Boolean disableRunCommand() { /** * Set the disableRunCommand property: Whether to disable run command for the cluster or not. - * + * * @param disableRunCommand the disableRunCommand value to set. * @return the ManagedClusterApiServerAccessProfile object itself. */ @@ -184,7 +171,7 @@ public ManagedClusterApiServerAccessProfile withDisableRunCommand(Boolean disabl /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java index 71c03cb867f0..5ae067b6d309 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java @@ -13,8 +13,6 @@ @Fluent public final class ManagedClusterAutoUpgradeProfile { /* - * The upgrade channel for auto upgrade. The default is 'none'. - * * For more information see [setting the AKS cluster auto-upgrade * channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). */ @@ -22,8 +20,6 @@ public final class ManagedClusterAutoUpgradeProfile { private UpgradeChannel upgradeChannel; /* - * Node OS Upgrade Channel - * * Manner in which the OS on your nodes is updated. The default is NodeImage. */ @JsonProperty(value = "nodeOSUpgradeChannel") @@ -36,9 +32,7 @@ public ManagedClusterAutoUpgradeProfile() { } /** - * Get the upgradeChannel property: The upgrade channel for auto upgrade. The default is 'none'. - * - * For more information see [setting the AKS cluster auto-upgrade + * Get the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade * channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). * * @return the upgradeChannel value. @@ -48,9 +42,7 @@ public UpgradeChannel upgradeChannel() { } /** - * Set the upgradeChannel property: The upgrade channel for auto upgrade. The default is 'none'. - * - * For more information see [setting the AKS cluster auto-upgrade + * Set the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade * channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). * * @param upgradeChannel the upgradeChannel value to set. @@ -62,9 +54,7 @@ public ManagedClusterAutoUpgradeProfile withUpgradeChannel(UpgradeChannel upgrad } /** - * Get the nodeOSUpgradeChannel property: Node OS Upgrade Channel - * - * Manner in which the OS on your nodes is updated. The default is NodeImage. + * Get the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated. The default is NodeImage. * * @return the nodeOSUpgradeChannel value. */ @@ -73,9 +63,7 @@ public NodeOSUpgradeChannel nodeOSUpgradeChannel() { } /** - * Set the nodeOSUpgradeChannel property: Node OS Upgrade Channel - * - * Manner in which the OS on your nodes is updated. The default is NodeImage. + * Set the nodeOSUpgradeChannel property: 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/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java index 2850ef47d4c0..74f24546ac93 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java @@ -61,10 +61,9 @@ public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricLabelsAllowli } /** - * 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. + * 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. */ @@ -73,10 +72,9 @@ public String metricAnnotationsAllowList() { } /** - * 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. + * 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/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java index 9d729c14d03b..f936939bee23 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java @@ -23,8 +23,8 @@ public final class ManagedClusterAzureMonitorProfileMetrics { /* * 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. + * kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for + * details. */ @JsonProperty(value = "kubeStateMetrics") private ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics; diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java index 1c4a4cf8bbf4..5ed5f7783f88 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java @@ -13,11 +13,9 @@ @Fluent public final class ManagedClusterCostAnalysis { /* - * Whether to enable cost analysis - * * The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature. Enabling this will - * add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not - * specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. + * add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not specified, + * the default is false. For more information see aka.ms/aks/docs/cost-analysis. */ @JsonProperty(value = "enabled") private Boolean enabled; @@ -29,11 +27,9 @@ public ManagedClusterCostAnalysis() { } /** - * Get the enabled property: Whether to enable cost analysis - * - * The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature. Enabling this will - * add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not - * specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. + * Get the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this + * feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the + * Azure portal. If not specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. * * @return the enabled value. */ @@ -42,11 +38,9 @@ public Boolean enabled() { } /** - * Set the enabled property: Whether to enable cost analysis - * - * The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature. Enabling this will - * add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not - * specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. + * Set the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this + * feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the + * Azure portal. If not specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis. * * @param enabled the enabled value to set. * @return the ManagedClusterCostAnalysis object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java index 0d81e4f46c6e..928b5563bb29 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.Map; /** @@ -27,8 +28,6 @@ public final class ManagedClusterIdentity { private String tenantId; /* - * The type of identity used for the managed cluster. - * * For more information see [use managed identities in * AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). */ @@ -36,8 +35,8 @@ public final class ManagedClusterIdentity { private ResourceIdentityType type; /* - * The delegated identity resources assigned to this managed cluster. This can only be set by another Azure - * Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only. + * The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource + * Provider, and managed cluster only accept one delegated identity resource. Internal use only. */ @JsonProperty(value = "delegatedResources") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) @@ -61,7 +60,7 @@ public ManagedClusterIdentity() { /** * Get the principalId property: The principal id of the system assigned identity which is used by master * components. - * + * * @return the principalId value. */ public String principalId() { @@ -70,7 +69,7 @@ public String principalId() { /** * Get the tenantId property: The tenant id of the system assigned identity which is used by master components. - * + * * @return the tenantId value. */ public String tenantId() { @@ -78,11 +77,9 @@ public String tenantId() { } /** - * Get the type property: The type of identity used for the managed cluster. - * - * For more information see [use managed identities in + * Get the type property: For more information see [use managed identities in * AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). - * + * * @return the type value. */ public ResourceIdentityType type() { @@ -90,11 +87,9 @@ public ResourceIdentityType type() { } /** - * Set the type property: The type of identity used for the managed cluster. - * - * For more information see [use managed identities in + * Set the type property: For more information see [use managed identities in * AKS](https://docs.microsoft.com/azure/aks/use-managed-identity). - * + * * @param type the type value to set. * @return the ManagedClusterIdentity object itself. */ @@ -107,7 +102,7 @@ public ManagedClusterIdentity withType(ResourceIdentityType type) { * Get the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can * only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. * Internal use only. - * + * * @return the delegatedResources value. */ public Map delegatedResources() { @@ -118,7 +113,7 @@ public Map delegatedResources() { * Set the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can * only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. * Internal use only. - * + * * @param delegatedResources the delegatedResources value to set. * @return the ManagedClusterIdentity object itself. */ @@ -130,7 +125,7 @@ public ManagedClusterIdentity withDelegatedResources(Map userAssignedIdentities() { @@ -140,7 +135,7 @@ public Map userAssign /** * Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedClusterIdentity object itself. */ @@ -152,7 +147,7 @@ public ManagedClusterIdentity withUserAssignedIdentities( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java index 485e0feee3e3..ce8a6233170b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -44,7 +45,7 @@ public ManagedClusterIngressProfileWebAppRouting() { /** * Get the enabled property: Whether to enable the Application Routing add-on. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -53,7 +54,7 @@ public Boolean enabled() { /** * Set the enabled property: Whether to enable the Application Routing add-on. - * + * * @param enabled the enabled value to set. * @return the ManagedClusterIngressProfileWebAppRouting object itself. */ @@ -65,9 +66,9 @@ public ManagedClusterIngressProfileWebAppRouting withEnabled(Boolean enabled) { /** * 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. - * + * 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. */ public List dnsZoneResourceIds() { @@ -77,9 +78,9 @@ public List dnsZoneResourceIds() { /** * 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. - * + * 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. */ @@ -93,7 +94,7 @@ public ManagedClusterIngressProfileWebAppRouting withDnsZoneResourceIds(List effectiveOutboundIPs; /* - * The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). - * The default value is 0 which results in Azure dynamically allocating ports. + * The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). The + * default value is 0 which results in Azure dynamically allocating ports. */ @JsonProperty(value = "allocatedOutboundPorts") private Integer allocatedOutboundPorts; @@ -71,7 +72,7 @@ public ManagedClusterLoadBalancerProfile() { /** * Get the managedOutboundIPs property: Desired managed outbound IPs for the cluster load balancer. - * + * * @return the managedOutboundIPs value. */ public ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs() { @@ -80,7 +81,7 @@ public ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs() /** * Set the managedOutboundIPs property: Desired managed outbound IPs for the cluster load balancer. - * + * * @param managedOutboundIPs the managedOutboundIPs value to set. * @return the ManagedClusterLoadBalancerProfile object itself. */ @@ -92,7 +93,7 @@ public ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs() /** * Get the outboundIpPrefixes property: Desired outbound IP Prefix resources for the cluster load balancer. - * + * * @return the outboundIpPrefixes value. */ public ManagedClusterLoadBalancerProfileOutboundIpPrefixes outboundIpPrefixes() { @@ -101,7 +102,7 @@ public ManagedClusterLoadBalancerProfileOutboundIpPrefixes outboundIpPrefixes() /** * Set the outboundIpPrefixes property: Desired outbound IP Prefix resources for the cluster load balancer. - * + * * @param outboundIpPrefixes the outboundIpPrefixes value to set. * @return the ManagedClusterLoadBalancerProfile object itself. */ @@ -113,7 +114,7 @@ public ManagedClusterLoadBalancerProfileOutboundIpPrefixes outboundIpPrefixes() /** * Get the outboundIPs property: Desired outbound IP resources for the cluster load balancer. - * + * * @return the outboundIPs value. */ public ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs() { @@ -122,7 +123,7 @@ public ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs() { /** * Set the outboundIPs property: Desired outbound IP resources for the cluster load balancer. - * + * * @param outboundIPs the outboundIPs value to set. * @return the ManagedClusterLoadBalancerProfile object itself. */ @@ -133,7 +134,7 @@ public ManagedClusterLoadBalancerProfile withOutboundIPs(ManagedClusterLoadBalan /** * Get the effectiveOutboundIPs property: The effective outbound IP resources of the cluster load balancer. - * + * * @return the effectiveOutboundIPs value. */ public List effectiveOutboundIPs() { @@ -142,7 +143,7 @@ public List effectiveOutboundIPs() { /** * Set the effectiveOutboundIPs property: The effective outbound IP resources of the cluster load balancer. - * + * * @param effectiveOutboundIPs the effectiveOutboundIPs value to set. * @return the ManagedClusterLoadBalancerProfile object itself. */ @@ -152,10 +153,9 @@ public ManagedClusterLoadBalancerProfile withEffectiveOutboundIPs(List podLabels() { @@ -95,7 +96,7 @@ public Map podLabels() { /** * Set the podLabels property: The pod labels to match. - * + * * @param podLabels the podLabels value to set. * @return the ManagedClusterPodIdentityException object itself. */ @@ -106,21 +107,24 @@ public ManagedClusterPodIdentityException withPodLabels(Map podL /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property name in model ManagedClusterPodIdentityException")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model ManagedClusterPodIdentityException")); } if (namespace() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property namespace in model ManagedClusterPodIdentityException")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property namespace in model ManagedClusterPodIdentityException")); } if (podLabels() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property podLabels in model ManagedClusterPodIdentityException")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property podLabels in model ManagedClusterPodIdentityException")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java index c21a86b70e73..951876c3ecf6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java @@ -6,11 +6,12 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** * The pod identity profile of the Managed Cluster. - * + * * See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on pod * identity integration. */ @@ -23,13 +24,10 @@ public final class ManagedClusterPodIdentityProfile { private Boolean enabled; /* - * Whether pod identity is allowed to run on clusters with Kubenet networking. - * - * Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks - * of IP spoofing. See [using Kubenet network plugin with AAD Pod + * Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of + * IP spoofing. See [using Kubenet network plugin with AAD Pod * Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure- - * active-directory-pod-managed-identities) - * for more information. + * active-directory-pod-managed-identities) for more information. */ @JsonProperty(value = "allowNetworkPluginKubenet") private Boolean allowNetworkPluginKubenet; @@ -54,7 +52,7 @@ public ManagedClusterPodIdentityProfile() { /** * Get the enabled property: Whether the pod identity addon is enabled. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -63,7 +61,7 @@ public Boolean enabled() { /** * Set the enabled property: Whether the pod identity addon is enabled. - * + * * @param enabled the enabled value to set. * @return the ManagedClusterPodIdentityProfile object itself. */ @@ -73,14 +71,11 @@ public ManagedClusterPodIdentityProfile withEnabled(Boolean enabled) { } /** - * Get the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet - * networking. - * - * Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks - * of IP spoofing. See [using Kubenet network plugin with AAD Pod + * Get the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related + * nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod * Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) * for more information. - * + * * @return the allowNetworkPluginKubenet value. */ public Boolean allowNetworkPluginKubenet() { @@ -88,14 +83,11 @@ public Boolean allowNetworkPluginKubenet() { } /** - * Set the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet - * networking. - * - * Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks - * of IP spoofing. See [using Kubenet network plugin with AAD Pod + * Set the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related + * nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod * Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) * for more information. - * + * * @param allowNetworkPluginKubenet the allowNetworkPluginKubenet value to set. * @return the ManagedClusterPodIdentityProfile object itself. */ @@ -106,7 +98,7 @@ public ManagedClusterPodIdentityProfile withAllowNetworkPluginKubenet(Boolean al /** * Get the userAssignedIdentities property: The pod identities to use in the cluster. - * + * * @return the userAssignedIdentities value. */ public List userAssignedIdentities() { @@ -115,7 +107,7 @@ public List userAssignedIdentities() { /** * Set the userAssignedIdentities property: The pod identities to use in the cluster. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedClusterPodIdentityProfile object itself. */ @@ -127,7 +119,7 @@ public List userAssignedIdentities() { /** * Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow. - * + * * @return the userAssignedIdentityExceptions value. */ public List userAssignedIdentityExceptions() { @@ -136,7 +128,7 @@ public List userAssignedIdentityExceptions() /** * Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow. - * + * * @param userAssignedIdentityExceptions the userAssignedIdentityExceptions value to set. * @return the ManagedClusterPodIdentityProfile object itself. */ @@ -148,7 +140,7 @@ public List userAssignedIdentityExceptions() /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java index b16133c7395c..44887a8fa4dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -46,7 +47,7 @@ public ManagedClusterPoolUpgradeProfile() { /** * Get the kubernetesVersion property: The Kubernetes version (major.minor.patch). - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -55,7 +56,7 @@ public String kubernetesVersion() { /** * Set the kubernetesVersion property: The Kubernetes version (major.minor.patch). - * + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the ManagedClusterPoolUpgradeProfile object itself. */ @@ -66,7 +67,7 @@ public ManagedClusterPoolUpgradeProfile withKubernetesVersion(String kubernetesV /** * Get the name property: The Agent Pool name. - * + * * @return the name value. */ public String name() { @@ -75,7 +76,7 @@ public String name() { /** * Set the name property: The Agent Pool name. - * + * * @param name the name value to set. * @return the ManagedClusterPoolUpgradeProfile object itself. */ @@ -86,7 +87,7 @@ public ManagedClusterPoolUpgradeProfile withName(String name) { /** * 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() { @@ -95,7 +96,7 @@ public OSType 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 ManagedClusterPoolUpgradeProfile object itself. */ @@ -106,7 +107,7 @@ public ManagedClusterPoolUpgradeProfile withOsType(OSType osType) { /** * Get the upgrades property: List of orchestrator types and versions available for upgrade. - * + * * @return the upgrades value. */ public List upgrades() { @@ -115,7 +116,7 @@ public List upgrades() { /** * Set the upgrades property: List of orchestrator types and versions available for upgrade. - * + * * @param upgrades the upgrades value to set. * @return the ManagedClusterPoolUpgradeProfile object itself. */ @@ -126,17 +127,19 @@ public ManagedClusterPoolUpgradeProfile withUpgrades(List e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java index 032569c9fcf1..e65b4c20c3da 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java @@ -13,16 +13,34 @@ @Fluent public final class ManagedClusterPropertiesAutoScalerProfile { /* - * Detects similar node pools and balances the number of nodes between them. - * * Valid values are 'true' and 'false' */ @JsonProperty(value = "balance-similar-node-groups") private String balanceSimilarNodeGroups; /* - * The expander to use when scaling up - * + * If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset + * pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without + * ensuring that daemonset pods are deleted or evicted. + */ + @JsonProperty(value = "daemonset-eviction-for-empty-nodes") + private Boolean daemonsetEvictionForEmptyNodes; + + /* + * If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the + * daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be + * deleted without ensuring that daemonset pods are deleted or evicted. + */ + @JsonProperty(value = "daemonset-eviction-for-occupied-nodes") + private Boolean daemonsetEvictionForOccupiedNodes; + + /* + * If set to true, the resources used by daemonset will be taken into account when making scaling down decisions. + */ + @JsonProperty(value = "ignore-daemonsets-utilization") + private Boolean ignoreDaemonsetsUtilization; + + /* * 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. @@ -31,24 +49,18 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private Expander expander; /* - * The maximum number of empty nodes that can be deleted at the same time. This must be a positive integer. - * * The default is 10. */ @JsonProperty(value = "max-empty-bulk-delete") private String maxEmptyBulkDelete; /* - * The maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. - * * The default is 600. */ @JsonProperty(value = "max-graceful-termination-sec") private String maxGracefulTerminationSec; /* - * The maximum time the autoscaler waits for a node to be provisioned. - * * The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is * supported. */ @@ -56,17 +68,12 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String maxNodeProvisionTime; /* - * The maximum percentage of unready nodes in the cluster. After this percentage is exceeded, cluster autoscaler - * halts operations. - * * The default is 45. The maximum is 100 and the minimum is 0. */ @JsonProperty(value = "max-total-unready-percentage") private String maxTotalUnreadyPercentage; /* - * Ignore unscheduled pods before they're a certain age. - * * For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could * schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is * '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc). @@ -75,24 +82,18 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String newPodScaleUpDelay; /* - * The number of allowed unready nodes, irrespective of max-total-unready-percentage. - * * This must be an integer. The default is 3. */ @JsonProperty(value = "ok-total-unready-count") private String okTotalUnreadyCount; /* - * How often cluster is reevaluated for scale up or down. - * * The default is '10'. Values must be an integer number of seconds. */ @JsonProperty(value = "scan-interval") private String scanInterval; /* - * How long after scale up that scale down evaluation resumes - * * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is * supported. */ @@ -100,8 +101,6 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String scaleDownDelayAfterAdd; /* - * How long after node deletion that scale down evaluation resumes. - * * The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than * minutes (m) is supported. */ @@ -109,8 +108,6 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String scaleDownDelayAfterDelete; /* - * How long after scale down failure that scale down evaluation resumes. - * * The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is * supported. */ @@ -118,8 +115,6 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String scaleDownDelayAfterFailure; /* - * How long a node should be unneeded before it is eligible for scale down. - * * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is * supported. */ @@ -127,8 +122,6 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String scaleDownUnneededTime; /* - * How long an unready node should be unneeded before it is eligible for scale down - * * The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is * supported. */ @@ -136,25 +129,18 @@ public final class ManagedClusterPropertiesAutoScalerProfile { private String scaleDownUnreadyTime; /* - * Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be - * considered for scale down. - * * The default is '0.5'. */ @JsonProperty(value = "scale-down-utilization-threshold") private String scaleDownUtilizationThreshold; /* - * If cluster autoscaler will skip deleting nodes with pods with local storage, for example, EmptyDir or HostPath. - * * The default is true. */ @JsonProperty(value = "skip-nodes-with-local-storage") private String skipNodesWithLocalStorage; /* - * If cluster autoscaler will skip deleting nodes with pods from kube-system (except for DaemonSet or mirror pods) - * * The default is true. */ @JsonProperty(value = "skip-nodes-with-system-pods") @@ -167,10 +153,7 @@ public ManagedClusterPropertiesAutoScalerProfile() { } /** - * Get the balanceSimilarNodeGroups property: Detects similar node pools and balances the number of nodes between - * them. - * - * Valid values are 'true' and 'false'. + * Get the balanceSimilarNodeGroups property: Valid values are 'true' and 'false'. * * @return the balanceSimilarNodeGroups value. */ @@ -179,10 +162,7 @@ public String balanceSimilarNodeGroups() { } /** - * Set the balanceSimilarNodeGroups property: Detects similar node pools and balances the number of nodes between - * them. - * - * Valid values are 'true' and 'false'. + * Set the balanceSimilarNodeGroups property: Valid values are 'true' and 'false'. * * @param balanceSimilarNodeGroups the balanceSimilarNodeGroups value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -193,9 +173,80 @@ public ManagedClusterPropertiesAutoScalerProfile withBalanceSimilarNodeGroups(St } /** - * Get the expander property: The expander to use when scaling up + * Get the daemonsetEvictionForEmptyNodes property: If set to true, all daemonset pods on empty nodes will be + * evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for + * scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. * - * If not specified, the default is 'random'. See + * @return the daemonsetEvictionForEmptyNodes value. + */ + public Boolean daemonsetEvictionForEmptyNodes() { + return this.daemonsetEvictionForEmptyNodes; + } + + /** + * Set the daemonsetEvictionForEmptyNodes property: If set to true, all daemonset pods on empty nodes will be + * evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for + * scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. + * + * @param daemonsetEvictionForEmptyNodes the daemonsetEvictionForEmptyNodes value to set. + * @return the ManagedClusterPropertiesAutoScalerProfile object itself. + */ + public ManagedClusterPropertiesAutoScalerProfile + withDaemonsetEvictionForEmptyNodes(Boolean daemonsetEvictionForEmptyNodes) { + this.daemonsetEvictionForEmptyNodes = daemonsetEvictionForEmptyNodes; + return this; + } + + /** + * Get the daemonsetEvictionForOccupiedNodes property: If set to true, all daemonset pods on occupied nodes will be + * evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for + * scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. + * + * @return the daemonsetEvictionForOccupiedNodes value. + */ + public Boolean daemonsetEvictionForOccupiedNodes() { + return this.daemonsetEvictionForOccupiedNodes; + } + + /** + * Set the daemonsetEvictionForOccupiedNodes property: If set to true, all daemonset pods on occupied nodes will be + * evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for + * scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. + * + * @param daemonsetEvictionForOccupiedNodes the daemonsetEvictionForOccupiedNodes value to set. + * @return the ManagedClusterPropertiesAutoScalerProfile object itself. + */ + public ManagedClusterPropertiesAutoScalerProfile + withDaemonsetEvictionForOccupiedNodes(Boolean daemonsetEvictionForOccupiedNodes) { + this.daemonsetEvictionForOccupiedNodes = daemonsetEvictionForOccupiedNodes; + return this; + } + + /** + * Get the ignoreDaemonsetsUtilization property: If set to true, the resources used by daemonset will be taken into + * account when making scaling down decisions. + * + * @return the ignoreDaemonsetsUtilization value. + */ + public Boolean ignoreDaemonsetsUtilization() { + return this.ignoreDaemonsetsUtilization; + } + + /** + * Set the ignoreDaemonsetsUtilization property: If set to true, the resources used by daemonset will be taken into + * account when making scaling down decisions. + * + * @param ignoreDaemonsetsUtilization the ignoreDaemonsetsUtilization value to set. + * @return the ManagedClusterPropertiesAutoScalerProfile object itself. + */ + public ManagedClusterPropertiesAutoScalerProfile + withIgnoreDaemonsetsUtilization(Boolean ignoreDaemonsetsUtilization) { + this.ignoreDaemonsetsUtilization = ignoreDaemonsetsUtilization; + return this; + } + + /** + * Get the expander property: 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. * @@ -206,9 +257,7 @@ public Expander expander() { } /** - * Set the expander property: The expander to use when scaling up - * - * If not specified, the default is 'random'. See + * Set the expander property: 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. * @@ -221,10 +270,7 @@ public ManagedClusterPropertiesAutoScalerProfile withExpander(Expander expander) } /** - * Get the maxEmptyBulkDelete property: The maximum number of empty nodes that can be deleted at the same time. - * This must be a positive integer. - * - * The default is 10. + * Get the maxEmptyBulkDelete property: The default is 10. * * @return the maxEmptyBulkDelete value. */ @@ -233,10 +279,7 @@ public String maxEmptyBulkDelete() { } /** - * Set the maxEmptyBulkDelete property: The maximum number of empty nodes that can be deleted at the same time. - * This must be a positive integer. - * - * The default is 10. + * Set the maxEmptyBulkDelete property: The default is 10. * * @param maxEmptyBulkDelete the maxEmptyBulkDelete value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -247,10 +290,7 @@ public ManagedClusterPropertiesAutoScalerProfile withMaxEmptyBulkDelete(String m } /** - * Get the maxGracefulTerminationSec property: The maximum number of seconds the cluster autoscaler waits for pod - * termination when trying to scale down a node. - * - * The default is 600. + * Get the maxGracefulTerminationSec property: The default is 600. * * @return the maxGracefulTerminationSec value. */ @@ -259,10 +299,7 @@ public String maxGracefulTerminationSec() { } /** - * Set the maxGracefulTerminationSec property: The maximum number of seconds the cluster autoscaler waits for pod - * termination when trying to scale down a node. - * - * The default is 600. + * Set the maxGracefulTerminationSec property: The default is 600. * * @param maxGracefulTerminationSec the maxGracefulTerminationSec value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -273,10 +310,8 @@ public ManagedClusterPropertiesAutoScalerProfile withMaxGracefulTerminationSec(S } /** - * Get the maxNodeProvisionTime property: The maximum time the autoscaler waits for a node to be provisioned. - * - * The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Get the maxNodeProvisionTime property: The default is '15m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @return the maxNodeProvisionTime value. */ @@ -285,10 +320,8 @@ public String maxNodeProvisionTime() { } /** - * Set the maxNodeProvisionTime property: The maximum time the autoscaler waits for a node to be provisioned. - * - * The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Set the maxNodeProvisionTime property: The default is '15m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @param maxNodeProvisionTime the maxNodeProvisionTime value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -299,10 +332,7 @@ public ManagedClusterPropertiesAutoScalerProfile withMaxNodeProvisionTime(String } /** - * Get the maxTotalUnreadyPercentage property: The maximum percentage of unready nodes in the cluster. After this - * percentage is exceeded, cluster autoscaler halts operations. - * - * The default is 45. The maximum is 100 and the minimum is 0. + * Get the maxTotalUnreadyPercentage property: The default is 45. The maximum is 100 and the minimum is 0. * * @return the maxTotalUnreadyPercentage value. */ @@ -311,10 +341,7 @@ public String maxTotalUnreadyPercentage() { } /** - * Set the maxTotalUnreadyPercentage property: The maximum percentage of unready nodes in the cluster. After this - * percentage is exceeded, cluster autoscaler halts operations. - * - * The default is 45. The maximum is 100 and the minimum is 0. + * Set the maxTotalUnreadyPercentage property: The default is 45. The maximum is 100 and the minimum is 0. * * @param maxTotalUnreadyPercentage the maxTotalUnreadyPercentage value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -325,11 +352,10 @@ public ManagedClusterPropertiesAutoScalerProfile withMaxTotalUnreadyPercentage(S } /** - * Get the newPodScaleUpDelay property: Ignore unscheduled pods before they're a certain age. - * - * For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could - * schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is - * '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc). + * Get the newPodScaleUpDelay property: For scenarios like burst/batch scale where you don't want CA to act before + * the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a + * certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, + * 'h' for hours, etc). * * @return the newPodScaleUpDelay value. */ @@ -338,11 +364,10 @@ public String newPodScaleUpDelay() { } /** - * Set the newPodScaleUpDelay property: Ignore unscheduled pods before they're a certain age. - * - * For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could - * schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is - * '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc). + * Set the newPodScaleUpDelay property: For scenarios like burst/batch scale where you don't want CA to act before + * the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a + * certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, + * 'h' for hours, etc). * * @param newPodScaleUpDelay the newPodScaleUpDelay value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -353,10 +378,7 @@ public ManagedClusterPropertiesAutoScalerProfile withNewPodScaleUpDelay(String n } /** - * Get the okTotalUnreadyCount property: The number of allowed unready nodes, irrespective of - * max-total-unready-percentage. - * - * This must be an integer. The default is 3. + * Get the okTotalUnreadyCount property: This must be an integer. The default is 3. * * @return the okTotalUnreadyCount value. */ @@ -365,10 +387,7 @@ public String okTotalUnreadyCount() { } /** - * Set the okTotalUnreadyCount property: The number of allowed unready nodes, irrespective of - * max-total-unready-percentage. - * - * This must be an integer. The default is 3. + * Set the okTotalUnreadyCount property: This must be an integer. The default is 3. * * @param okTotalUnreadyCount the okTotalUnreadyCount value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -379,9 +398,7 @@ public ManagedClusterPropertiesAutoScalerProfile withOkTotalUnreadyCount(String } /** - * Get the scanInterval property: How often cluster is reevaluated for scale up or down. - * - * The default is '10'. Values must be an integer number of seconds. + * Get the scanInterval property: The default is '10'. Values must be an integer number of seconds. * * @return the scanInterval value. */ @@ -390,9 +407,7 @@ public String scanInterval() { } /** - * Set the scanInterval property: How often cluster is reevaluated for scale up or down. - * - * The default is '10'. Values must be an integer number of seconds. + * Set the scanInterval property: The default is '10'. Values must be an integer number of seconds. * * @param scanInterval the scanInterval value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -403,10 +418,8 @@ public ManagedClusterPropertiesAutoScalerProfile withScanInterval(String scanInt } /** - * Get the scaleDownDelayAfterAdd property: How long after scale up that scale down evaluation resumes - * - * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Get the scaleDownDelayAfterAdd property: The default is '10m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @return the scaleDownDelayAfterAdd value. */ @@ -415,10 +428,8 @@ public String scaleDownDelayAfterAdd() { } /** - * Set the scaleDownDelayAfterAdd property: How long after scale up that scale down evaluation resumes - * - * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Set the scaleDownDelayAfterAdd property: The default is '10m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @param scaleDownDelayAfterAdd the scaleDownDelayAfterAdd value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -429,10 +440,8 @@ public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterAdd(Stri } /** - * Get the scaleDownDelayAfterDelete property: How long after node deletion that scale down evaluation resumes. - * - * The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than - * minutes (m) is supported. + * Get the scaleDownDelayAfterDelete property: The default is the scan-interval. Values must be an integer followed + * by an 'm'. No unit of time other than minutes (m) is supported. * * @return the scaleDownDelayAfterDelete value. */ @@ -441,10 +450,8 @@ public String scaleDownDelayAfterDelete() { } /** - * Set the scaleDownDelayAfterDelete property: How long after node deletion that scale down evaluation resumes. - * - * The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than - * minutes (m) is supported. + * Set the scaleDownDelayAfterDelete property: The default is the scan-interval. Values must be an integer followed + * by an 'm'. No unit of time other than minutes (m) is supported. * * @param scaleDownDelayAfterDelete the scaleDownDelayAfterDelete value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -455,11 +462,8 @@ public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterDelete(S } /** - * Get the scaleDownDelayAfterFailure property: How long after scale down failure that scale down evaluation - * resumes. - * - * The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Get the scaleDownDelayAfterFailure property: The default is '3m'. Values must be an integer followed by an 'm'. + * No unit of time other than minutes (m) is supported. * * @return the scaleDownDelayAfterFailure value. */ @@ -468,11 +472,8 @@ public String scaleDownDelayAfterFailure() { } /** - * Set the scaleDownDelayAfterFailure property: How long after scale down failure that scale down evaluation - * resumes. - * - * The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Set the scaleDownDelayAfterFailure property: The default is '3m'. Values must be an integer followed by an 'm'. + * No unit of time other than minutes (m) is supported. * * @param scaleDownDelayAfterFailure the scaleDownDelayAfterFailure value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -483,10 +484,8 @@ public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterFailure( } /** - * Get the scaleDownUnneededTime property: How long a node should be unneeded before it is eligible for scale down. - * - * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Get the scaleDownUnneededTime property: The default is '10m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @return the scaleDownUnneededTime value. */ @@ -495,10 +494,8 @@ public String scaleDownUnneededTime() { } /** - * Set the scaleDownUnneededTime property: How long a node should be unneeded before it is eligible for scale down. - * - * The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Set the scaleDownUnneededTime property: The default is '10m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @param scaleDownUnneededTime the scaleDownUnneededTime value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -509,11 +506,8 @@ public ManagedClusterPropertiesAutoScalerProfile withScaleDownUnneededTime(Strin } /** - * Get the scaleDownUnreadyTime property: How long an unready node should be unneeded before it is eligible for - * scale down - * - * The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Get the scaleDownUnreadyTime property: The default is '20m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @return the scaleDownUnreadyTime value. */ @@ -522,11 +516,8 @@ public String scaleDownUnreadyTime() { } /** - * Set the scaleDownUnreadyTime property: How long an unready node should be unneeded before it is eligible for - * scale down - * - * The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is - * supported. + * Set the scaleDownUnreadyTime property: The default is '20m'. Values must be an integer followed by an 'm'. No + * unit of time other than minutes (m) is supported. * * @param scaleDownUnreadyTime the scaleDownUnreadyTime value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -537,10 +528,7 @@ public ManagedClusterPropertiesAutoScalerProfile withScaleDownUnreadyTime(String } /** - * Get the scaleDownUtilizationThreshold property: Node utilization level, defined as sum of requested resources - * divided by capacity, below which a node can be considered for scale down. - * - * The default is '0.5'. + * Get the scaleDownUtilizationThreshold property: The default is '0.5'. * * @return the scaleDownUtilizationThreshold value. */ @@ -549,10 +537,7 @@ public String scaleDownUtilizationThreshold() { } /** - * Set the scaleDownUtilizationThreshold property: Node utilization level, defined as sum of requested resources - * divided by capacity, below which a node can be considered for scale down. - * - * The default is '0.5'. + * Set the scaleDownUtilizationThreshold property: The default is '0.5'. * * @param scaleDownUtilizationThreshold the scaleDownUtilizationThreshold value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -564,10 +549,7 @@ public String scaleDownUtilizationThreshold() { } /** - * Get the skipNodesWithLocalStorage property: If cluster autoscaler will skip deleting nodes with pods with local - * storage, for example, EmptyDir or HostPath. - * - * The default is true. + * Get the skipNodesWithLocalStorage property: The default is true. * * @return the skipNodesWithLocalStorage value. */ @@ -576,10 +558,7 @@ public String skipNodesWithLocalStorage() { } /** - * Set the skipNodesWithLocalStorage property: If cluster autoscaler will skip deleting nodes with pods with local - * storage, for example, EmptyDir or HostPath. - * - * The default is true. + * Set the skipNodesWithLocalStorage property: The default is true. * * @param skipNodesWithLocalStorage the skipNodesWithLocalStorage value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. @@ -590,10 +569,7 @@ public ManagedClusterPropertiesAutoScalerProfile withSkipNodesWithLocalStorage(S } /** - * Get the skipNodesWithSystemPods property: If cluster autoscaler will skip deleting nodes with pods from - * kube-system (except for DaemonSet or mirror pods) - * - * The default is true. + * Get the skipNodesWithSystemPods property: The default is true. * * @return the skipNodesWithSystemPods value. */ @@ -602,10 +578,7 @@ public String skipNodesWithSystemPods() { } /** - * Set the skipNodesWithSystemPods property: If cluster autoscaler will skip deleting nodes with pods from - * kube-system (except for DaemonSet or mirror pods) - * - * The default is true. + * Set the skipNodesWithSystemPods property: The default is true. * * @param skipNodesWithSystemPods the skipNodesWithSystemPods value to set. * @return the ManagedClusterPropertiesAutoScalerProfile object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java index 100c9a0fb68b..c5f30b1d2b42 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java @@ -87,9 +87,9 @@ public ManagedClusterSecurityProfile withAzureKeyVaultKms(AzureKeyVaultKms azure } /** - * Get the workloadIdentity property: Workload identity settings for the security profile. Workload identity - * enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See - * https://aka.ms/aks/wi for more details. + * Get the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables + * Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for + * more details. * * @return the workloadIdentity value. */ @@ -98,9 +98,9 @@ public ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity() { } /** - * Set the workloadIdentity property: Workload identity settings for the security profile. Workload identity - * enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See - * https://aka.ms/aks/wi for more details. + * Set the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables + * Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for + * more details. * * @param workloadIdentity the workloadIdentity value to set. * @return the ManagedClusterSecurityProfile object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java index 227595135251..5f07b4476d6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java @@ -34,8 +34,8 @@ public ManagedClusterSecurityProfileDefender() { /** * Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated - * with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid - * workspace resource ID. When Microsoft Defender is disabled, leave the field empty. + * with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid workspace + * resource ID. When Microsoft Defender is disabled, leave the field empty. * * @return the logAnalyticsWorkspaceResourceId value. */ @@ -45,8 +45,8 @@ public String logAnalyticsWorkspaceResourceId() { /** * Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated - * with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid - * workspace resource ID. When Microsoft Defender is disabled, leave the field empty. + * with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid workspace + * resource ID. When Microsoft Defender is disabled, leave the field empty. * * @param logAnalyticsWorkspaceResourceId the logAnalyticsWorkspaceResourceId value to set. * @return the ManagedClusterSecurityProfileDefender object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java index 137ecf2960f7..5119579a2b05 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Image Cleaner removes unused images from nodes, freeing up disk space and helping to reduce attack surface area. - * Here are settings for the security profile. + * Image Cleaner removes unused images from nodes, freeing up disk space and helping to reduce attack surface area. Here + * are settings for the security profile. */ @Fluent public final class ManagedClusterSecurityProfileImageCleaner { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java index 2183e918d1a7..4f81b03ed004 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java @@ -78,8 +78,9 @@ public ManagedClusterServicePrincipalProfile withSecret(String secret) { */ public void validate() { if (clientId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property clientId in model ManagedClusterServicePrincipalProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property clientId in model ManagedClusterServicePrincipalProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java index 9f6a22d9e7d5..b83bd8d9659f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java @@ -19,8 +19,6 @@ public final class ManagedClusterSku { private ManagedClusterSkuName name; /* - * The tier of a managed cluster SKU. - * * If not specified, the default is 'Free'. See [AKS Pricing * Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) for more details. */ @@ -54,9 +52,7 @@ public ManagedClusterSku withName(ManagedClusterSkuName name) { } /** - * Get the tier property: The tier of a managed cluster SKU. - * - * If not specified, the default is 'Free'. See [AKS Pricing + * Get the tier property: If not specified, the default is 'Free'. See [AKS Pricing * Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) for more details. * * @return the tier value. @@ -66,9 +62,7 @@ public ManagedClusterSkuTier tier() { } /** - * Set the tier property: The tier of a managed cluster SKU. - * - * If not specified, the default is 'Free'. See [AKS Pricing + * Set the tier property: If not specified, the default is 'Free'. See [AKS Pricing * Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) for more details. * * @param tier the tier value to set. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java index 4d5e6b76712b..305b01991d43 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java @@ -26,9 +26,9 @@ public final class ManagedClusterWindowsProfile { /* * Specifies the password of the administrator account.

**Minimum-length:** 8 characters

* **Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 conditions below need to be - * fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character - * (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", - * "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" + * fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex + * match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", + * "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" */ @JsonProperty(value = "adminPassword") private String adminPassword; @@ -41,8 +41,6 @@ public final class ManagedClusterWindowsProfile { private LicenseType licenseType; /* - * Whether to enable CSI proxy. - * * For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy). */ @JsonProperty(value = "enableCSIProxy") @@ -95,8 +93,8 @@ public ManagedClusterWindowsProfile withAdminUsername(String adminUsername) { * **Minimum-length:** 8 characters <br><br> **Max-length:** 123 characters <br><br> * **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters * <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) - * <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", - * "pass@word1", "Password!", "Password1", "Password22", "iloveyou!". + * <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", + * "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!". * * @return the adminPassword value. */ @@ -109,8 +107,8 @@ public String adminPassword() { * **Minimum-length:** 8 characters <br><br> **Max-length:** 123 characters <br><br> * **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters * <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) - * <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", - * "pass@word1", "Password!", "Password1", "Password22", "iloveyou!". + * <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", + * "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!". * * @param adminPassword the adminPassword value to set. * @return the ManagedClusterWindowsProfile object itself. @@ -143,9 +141,8 @@ public ManagedClusterWindowsProfile withLicenseType(LicenseType licenseType) { } /** - * Get the enableCsiProxy property: Whether to enable CSI proxy. - * - * For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy). + * Get the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub + * repo](https://github.com/kubernetes-csi/csi-proxy). * * @return the enableCsiProxy value. */ @@ -154,9 +151,8 @@ public Boolean enableCsiProxy() { } /** - * Set the enableCsiProxy property: Whether to enable CSI proxy. - * - * For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy). + * Set the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub + * repo](https://github.com/kubernetes-csi/csi-proxy). * * @param enableCsiProxy the enableCsiProxy value to set. * @return the ManagedClusterWindowsProfile object itself. @@ -193,8 +189,9 @@ public ManagedClusterWindowsProfile withGmsaProfile(WindowsGmsaProfile gmsaProfi */ public void validate() { if (adminUsername() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property adminUsername in model ManagedClusterWindowsProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property adminUsername in model ManagedClusterWindowsProfile")); } if (gmsaProfile() != null) { gmsaProfile().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java index 212cc1071f1e..43986a250103 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java @@ -6,12 +6,18 @@ import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; + import java.util.Collection; /** * Network policy used for building the Kubernetes network. */ public final class NetworkPolicy extends ExpandableStringEnum { + /** + * Static value none for NetworkPolicy. + */ + public static final NetworkPolicy NONE = fromString("none"); + /** * Static value calico for NetworkPolicy. */ @@ -29,7 +35,7 @@ public final class NetworkPolicy extends ExpandableStringEnum { /** * Creates a new instance of NetworkPolicy value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -38,7 +44,7 @@ public NetworkPolicy() { /** * Creates or finds a NetworkPolicy from its string representation. - * + * * @param name a name to look for. * @return the corresponding NetworkPolicy. */ @@ -49,7 +55,7 @@ public static NetworkPolicy fromString(String name) { /** * Gets known NetworkPolicy values. - * + * * @return known NetworkPolicy values. */ public static Collection values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java index f41a1d599b77..210483d15db0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java @@ -6,11 +6,12 @@ import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; + import java.util.Collection; /** * Node OS Upgrade Channel - * + * * Manner in which the OS on your nodes is updated. The default is NodeImage. */ public final class NodeOSUpgradeChannel extends ExpandableStringEnum { @@ -29,9 +30,14 @@ public final class NodeOSUpgradeChannel extends ExpandableStringEnum values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSOptionProperty.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSOptionProperty.java deleted file mode 100644 index c43be68e05e3..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSOptionProperty.java +++ /dev/null @@ -1,87 +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.fasterxml.jackson.annotation.JsonProperty; - -/** - * OS option property. - */ -@Fluent -public final class OSOptionProperty { - /* - * The OS type. - */ - @JsonProperty(value = "os-type", required = true) - private String osType; - - /* - * Whether the image is FIPS-enabled. - */ - @JsonProperty(value = "enable-fips-image", required = true) - private boolean enableFipsImage; - - /** - * Creates an instance of OSOptionProperty class. - */ - public OSOptionProperty() { - } - - /** - * Get the osType property: The OS type. - * - * @return the osType value. - */ - public String osType() { - return this.osType; - } - - /** - * Set the osType property: The OS type. - * - * @param osType the osType value to set. - * @return the OSOptionProperty object itself. - */ - public OSOptionProperty withOsType(String osType) { - this.osType = osType; - return this; - } - - /** - * Get the enableFipsImage property: Whether the image is FIPS-enabled. - * - * @return the enableFipsImage value. - */ - public boolean enableFipsImage() { - return this.enableFipsImage; - } - - /** - * Set the enableFipsImage property: Whether the image is FIPS-enabled. - * - * @param enableFipsImage the enableFipsImage value to set. - * @return the OSOptionProperty object itself. - */ - public OSOptionProperty withEnableFipsImage(boolean enableFipsImage) { - this.enableFipsImage = enableFipsImage; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (osType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property osType in model OSOptionProperty")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(OSOptionProperty.class); -} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAadIdentityProvider.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAadIdentityProvider.java index fcf93c1a8586..c2917898a132 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAadIdentityProvider.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAadIdentityProvider.java @@ -6,16 +6,28 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Defines the Identity provider for MS AAD. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "kind", + defaultImpl = OpenShiftManagedClusterAadIdentityProvider.class, + visible = true) @JsonTypeName("AADIdentityProvider") @Fluent public final class OpenShiftManagedClusterAadIdentityProvider extends OpenShiftManagedClusterBaseIdentityProvider { + /* + * The kind of the provider. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private String kind = "AADIdentityProvider"; + /* * The clientId password associated with the provider. */ @@ -46,6 +58,16 @@ public final class OpenShiftManagedClusterAadIdentityProvider extends OpenShiftM public OpenShiftManagedClusterAadIdentityProvider() { } + /** + * Get the kind property: The kind of the provider. + * + * @return the kind value. + */ + @Override + public String kind() { + return this.kind; + } + /** * Get the clientId property: The clientId password associated with the provider. * diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAgentPoolProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAgentPoolProfile.java index 96c74a43ac95..c5dc525bc68e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAgentPoolProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAgentPoolProfile.java @@ -182,12 +182,14 @@ public OpenShiftManagedClusterAgentPoolProfile withRole(OpenShiftAgentPoolProfil */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property name in model OpenShiftManagedClusterAgentPoolProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model OpenShiftManagedClusterAgentPoolProfile")); } if (vmSize() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property vmSize in model OpenShiftManagedClusterAgentPoolProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vmSize in model OpenShiftManagedClusterAgentPoolProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterBaseIdentityProvider.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterBaseIdentityProvider.java index 9fbcc6738f21..00bcf81025c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterBaseIdentityProvider.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterBaseIdentityProvider.java @@ -5,7 +5,9 @@ package com.azure.resourcemanager.containerservice.models; import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -14,20 +16,36 @@ */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, property = "kind", - defaultImpl = OpenShiftManagedClusterBaseIdentityProvider.class) + defaultImpl = OpenShiftManagedClusterBaseIdentityProvider.class, + visible = true) @JsonTypeName("OpenShiftManagedClusterBaseIdentityProvider") @JsonSubTypes({ @JsonSubTypes.Type(name = "AADIdentityProvider", value = OpenShiftManagedClusterAadIdentityProvider.class) }) @Immutable public class OpenShiftManagedClusterBaseIdentityProvider { + /* + * The kind of the provider. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private String kind = "OpenShiftManagedClusterBaseIdentityProvider"; + /** * Creates an instance of OpenShiftManagedClusterBaseIdentityProvider class. */ public OpenShiftManagedClusterBaseIdentityProvider() { } + /** + * Get the kind property: The kind of the provider. + * + * @return the kind value. + */ + public String kind() { + return this.kind; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterMasterPoolProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterMasterPoolProfile.java index 77f42f9acb80..0f1bab7e9a24 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterMasterPoolProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterMasterPoolProfile.java @@ -158,8 +158,9 @@ public OpenShiftManagedClusterMasterPoolProfile withOsType(OSType osType) { */ public void validate() { if (vmSize() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property vmSize in model OpenShiftManagedClusterMasterPoolProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vmSize in model OpenShiftManagedClusterMasterPoolProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorProfile.java index 78326937074c..309156a7f477 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorProfile.java @@ -104,8 +104,9 @@ public OrchestratorProfile withIsPreview(Boolean isPreview) { */ public void validate() { if (orchestratorVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property orchestratorVersion in model OrchestratorProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property orchestratorVersion in model OrchestratorProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorVersionProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorVersionProfile.java index adc8f59921cf..ebe726d1c969 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorVersionProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OrchestratorVersionProfile.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -52,7 +53,7 @@ public OrchestratorVersionProfile() { /** * Get the orchestratorType property: Orchestrator type. - * + * * @return the orchestratorType value. */ public String orchestratorType() { @@ -61,7 +62,7 @@ public String orchestratorType() { /** * Set the orchestratorType property: Orchestrator type. - * + * * @param orchestratorType the orchestratorType value to set. * @return the OrchestratorVersionProfile object itself. */ @@ -72,7 +73,7 @@ public OrchestratorVersionProfile withOrchestratorType(String orchestratorType) /** * Get the orchestratorVersion property: Orchestrator version (major, minor, patch). - * + * * @return the orchestratorVersion value. */ public String orchestratorVersion() { @@ -81,7 +82,7 @@ public String orchestratorVersion() { /** * Set the orchestratorVersion property: Orchestrator version (major, minor, patch). - * + * * @param orchestratorVersion the orchestratorVersion value to set. * @return the OrchestratorVersionProfile object itself. */ @@ -92,7 +93,7 @@ public OrchestratorVersionProfile withOrchestratorVersion(String orchestratorVer /** * Get the defaultProperty property: Installed by default if version is not specified. - * + * * @return the defaultProperty value. */ public Boolean defaultProperty() { @@ -101,7 +102,7 @@ public Boolean defaultProperty() { /** * Set the defaultProperty property: Installed by default if version is not specified. - * + * * @param defaultProperty the defaultProperty value to set. * @return the OrchestratorVersionProfile object itself. */ @@ -112,7 +113,7 @@ public OrchestratorVersionProfile withDefaultProperty(Boolean defaultProperty) { /** * Get the isPreview property: Whether Kubernetes version is currently in preview. - * + * * @return the isPreview value. */ public Boolean isPreview() { @@ -121,7 +122,7 @@ public Boolean isPreview() { /** * Set the isPreview property: Whether Kubernetes version is currently in preview. - * + * * @param isPreview the isPreview value to set. * @return the OrchestratorVersionProfile object itself. */ @@ -132,7 +133,7 @@ public OrchestratorVersionProfile withIsPreview(Boolean isPreview) { /** * Get the upgrades property: The list of available upgrade versions. - * + * * @return the upgrades value. */ public List upgrades() { @@ -141,7 +142,7 @@ public List upgrades() { /** * Set the upgrades property: The list of available upgrade versions. - * + * * @param upgrades the upgrades value to set. * @return the OrchestratorVersionProfile object itself. */ @@ -152,17 +153,19 @@ public OrchestratorVersionProfile withUpgrades(List upgrade /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (orchestratorType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property orchestratorType in model OrchestratorVersionProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property orchestratorType in model OrchestratorVersionProfile")); } if (orchestratorVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property orchestratorVersion in model OrchestratorVersionProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property orchestratorVersion in model OrchestratorVersionProfile")); } if (upgrades() != null) { upgrades().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundEnvironmentEndpointCollection.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundEnvironmentEndpointCollection.java index e8b18715f8ea..694ea61a8eb4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundEnvironmentEndpointCollection.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundEnvironmentEndpointCollection.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -35,7 +36,7 @@ public OutboundEnvironmentEndpointCollection() { /** * Get the value property: Collection of resources. - * + * * @return the value value. */ public List value() { @@ -44,7 +45,7 @@ public List value() { /** * Set the value property: Collection of resources. - * + * * @param value the value value to set. * @return the OutboundEnvironmentEndpointCollection object itself. */ @@ -55,7 +56,7 @@ public OutboundEnvironmentEndpointCollection withValue(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java index 7444e7b0cf2a..0275b0634bf0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java @@ -13,15 +13,15 @@ @Fluent public final class PortRange { /* - * The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal - * to portEnd. + * The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to + * portEnd. */ @JsonProperty(value = "portStart") private Integer portStart; /* - * The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or - * equal to portStart. + * The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal + * to portStart. */ @JsonProperty(value = "portEnd") private Integer portEnd; diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PurchasePlan.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PurchasePlan.java index 0cf81a7ce5d9..87206d231864 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PurchasePlan.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PurchasePlan.java @@ -19,8 +19,8 @@ public final class PurchasePlan { private String name; /* - * Specifies the product of the image from the marketplace. This is the same value as Offer under the - * imageReference element. + * Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference + * element. */ @JsonProperty(value = "product") private String product; diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java index 2bc048c18d6b..9c3916251c22 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java @@ -20,8 +20,6 @@ public final class RelativeMonthlySchedule { private int intervalMonths; /* - * The week index. - * * Specifies on which week of the month the dayOfWeek applies. */ @JsonProperty(value = "weekIndex", required = true) @@ -60,9 +58,7 @@ public RelativeMonthlySchedule withIntervalMonths(int intervalMonths) { } /** - * Get the weekIndex property: The week index. - * - * Specifies on which week of the month the dayOfWeek applies. + * Get the weekIndex property: Specifies on which week of the month the dayOfWeek applies. * * @return the weekIndex value. */ @@ -71,9 +67,7 @@ public Type weekIndex() { } /** - * Set the weekIndex property: The week index. - * - * Specifies on which week of the month the dayOfWeek applies. + * Set the weekIndex property: Specifies on which week of the month the dayOfWeek applies. * * @param weekIndex the weekIndex value to set. * @return the RelativeMonthlySchedule object itself. @@ -110,12 +104,14 @@ public RelativeMonthlySchedule withDayOfWeek(WeekDay dayOfWeek) { */ public void validate() { if (weekIndex() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property weekIndex in model RelativeMonthlySchedule")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property weekIndex in model RelativeMonthlySchedule")); } if (dayOfWeek() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property dayOfWeek in model RelativeMonthlySchedule")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property dayOfWeek in model RelativeMonthlySchedule")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java index 5764fb7cab38..d77c866d485c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java @@ -104,8 +104,8 @@ public RunCommandRequest withClusterToken(String clusterToken) { */ public void validate() { if (command() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property command in model RunCommandRequest")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property command in model RunCommandRequest")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java index 53250c2a7d36..41e6247e2c46 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java @@ -84,8 +84,8 @@ public Schedule withWeekly(WeeklySchedule weekly) { } /** - * Get the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months - * on the 20th'. + * Get the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on + * the 20th'. * * @return the absoluteMonthly value. */ @@ -94,8 +94,8 @@ public AbsoluteMonthlySchedule absoluteMonthly() { } /** - * Set the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months - * on the 20th'. + * Set the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on + * the 20th'. * * @param absoluteMonthly the absoluteMonthly value to set. * @return the Schedule object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java index 8f56abb8aef8..5bf97d46c085 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java @@ -78,8 +78,8 @@ public ServiceMeshProfile withIstio(IstioServiceMesh istio) { */ public void validate() { if (mode() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property mode in model ServiceMeshProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property mode in model ServiceMeshProfile")); } if (istio() != null) { istio().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java index fc6aa1acaadc..bb9ccfc60608 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -20,11 +21,9 @@ public final class TimeInWeek { private WeekDay day; /* - * A list of hours in the day used to identify a time range. - * - * Each integer hour represents a time range beginning at 0m after the hour ending at the next hour - * (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - - * 02:00 UTC time range. + * Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). + * 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time + * range. */ @JsonProperty(value = "hourSlots") private List hourSlots; @@ -37,7 +36,7 @@ public TimeInWeek() { /** * Get the day property: The day of the week. - * + * * @return the day value. */ public WeekDay day() { @@ -46,7 +45,7 @@ public WeekDay day() { /** * Set the day property: The day of the week. - * + * * @param day the day value to set. * @return the TimeInWeek object itself. */ @@ -56,12 +55,10 @@ public TimeInWeek withDay(WeekDay day) { } /** - * Get the hourSlots property: A list of hours in the day used to identify a time range. - * - * Each integer hour represents a time range beginning at 0m after the hour ending at the next hour - * (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - - * 02:00 UTC time range. - * + * Get the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at + * the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means + * the 00:00 - 02:00 UTC time range. + * * @return the hourSlots value. */ public List hourSlots() { @@ -69,12 +66,10 @@ public List hourSlots() { } /** - * Set the hourSlots property: A list of hours in the day used to identify a time range. - * - * Each integer hour represents a time range beginning at 0m after the hour ending at the next hour - * (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - - * 02:00 UTC time range. - * + * Set the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at + * the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means + * the 00:00 - 02:00 UTC time range. + * * @param hourSlots the hourSlots value to set. * @return the TimeInWeek object itself. */ @@ -85,7 +80,7 @@ public TimeInWeek withHourSlots(List hourSlots) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java index 3b1e073a4642..552a31af2ad2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java @@ -78,8 +78,8 @@ public WeeklySchedule withDayOfWeek(WeekDay dayOfWeek) { */ public void validate() { if (dayOfWeek() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property dayOfWeek in model WeeklySchedule")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property dayOfWeek in model WeeklySchedule")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java index 65dd482288fa..c9ed8da33ed6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java @@ -13,8 +13,6 @@ @Fluent public final class WindowsGmsaProfile { /* - * Whether to enable Windows gMSA. - * * Specifies whether to enable Windows gMSA in the managed cluster. */ @JsonProperty(value = "enabled") @@ -41,9 +39,7 @@ public WindowsGmsaProfile() { } /** - * Get the enabled property: Whether to enable Windows gMSA. - * - * Specifies whether to enable Windows gMSA in the managed cluster. + * Get the enabled property: Specifies whether to enable Windows gMSA in the managed cluster. * * @return the enabled value. */ @@ -52,9 +48,7 @@ public Boolean enabled() { } /** - * Set the enabled property: Whether to enable Windows gMSA. - * - * Specifies whether to enable Windows gMSA in the managed cluster. + * Set the enabled property: Specifies whether to enable Windows gMSA in the managed cluster. * * @param enabled the enabled value to set. * @return the WindowsGmsaProfile object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json index 1e2e9734c0f2..8852ec65f348 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json +++ b/sdk/resourcemanager/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.OpenShiftManagedClustersClientImpl$OpenShiftManagedClustersService" ], [ "com.azure.resourcemanager.containerservice.implementation.ContainerServicesClientImpl$ContainerServicesService" ], [ "com.azure.resourcemanager.containerservice.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService" ], [ "com.azure.resourcemanager.containerservice.implementation.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService" ], [ "com.azure.resourcemanager.containerservice.implementation.AgentPoolsClientImpl$AgentPoolsService" ], [ "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.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService" ], [ "com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService" ], [ "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/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/reflect-config.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/reflect-config.json index afcc5d69430d..2a04478a56cf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/reflect-config.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/reflect-config.json @@ -1,225 +1,225 @@ [ { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterListResult", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AccessProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OpenShiftManagedClusterInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PurchasePlan", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OpenShiftManagedClusterProperties", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftRouterProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.CommandResultProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAgentPoolProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAuthProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterIdentityProvider", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterBaseIdentityProvider", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TagsObject", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OrchestratorVersionProfileListResultInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OrchestratorVersionProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OrchestratorVersionProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OrchestratorProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OperationListResult", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OperationValueInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OperationValueDisplay", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OSOptionProfileInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OpenShiftManagedClusterInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OSOptionPropertyList", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OpenShiftManagedClusterProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OSOptionProperty", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OperationValueDisplay", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OperationValueInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubernetesVersion", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OrchestratorVersionProfileListResultInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubernetesVersionCapabilities", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OrchestratorVersionProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubernetesPatchVersion", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterListResult", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionListResultInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSku", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ExtendedLocation", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateLinkResourceInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateLinkResourcesListResultInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.DelegatedResource", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedServiceIdentityUserAssignedIdentitiesValue", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.SnapshotInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterProperties", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.SnapshotProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PowerState", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeSettings", + "name" : "com.azure.resourcemanager.containerservice.models.AbsoluteMonthlySchedule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubeletConfig", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.LinuxOSConfig", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.SysctlConfig", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.CreationData", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IpTag", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PortRange", + "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeSettings", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true @@ -229,252 +229,252 @@ "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile", + "name" : "com.azure.resourcemanager.containerservice.models.AzureKeyVaultKms", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceSshConfiguration", + "name" : "com.azure.resourcemanager.containerservice.models.BackendPoolType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceSshPublicKey", + "name" : "com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile", + "name" : "com.azure.resourcemanager.containerservice.models.Code", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.WindowsGmsaProfile", + "name" : "com.azure.resourcemanager.containerservice.models.CompatibleVersions", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ConnectionStatus", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfileIdentity", + "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.UserAssignedIdentity", + "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceSshConfiguration", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceSshPublicKey", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentity", + "name" : "com.azure.resourcemanager.containerservice.models.CreationData", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningInfo", + "name" : "com.azure.resourcemanager.containerservice.models.CredentialResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningError", + "name" : "com.azure.resourcemanager.containerservice.models.DailySchedule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningErrorBody", + "name" : "com.azure.resourcemanager.containerservice.models.DateSpan", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityException", + "name" : "com.azure.resourcemanager.containerservice.models.DelegatedResource", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile", + "name" : "com.azure.resourcemanager.containerservice.models.EndpointDependency", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile", + "name" : "com.azure.resourcemanager.containerservice.models.EndpointDetail", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfile", + "name" : "com.azure.resourcemanager.containerservice.models.Expander", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs", + "name" : "com.azure.resourcemanager.containerservice.models.ExtendedLocation", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileOutboundIpPrefixes", + "name" : "com.azure.resourcemanager.containerservice.models.ExtendedLocationTypes", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ResourceReference", + "name" : "com.azure.resourcemanager.containerservice.models.Format", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileOutboundIPs", + "name" : "com.azure.resourcemanager.containerservice.models.GpuInstanceProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterNatGatewayProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IpFamily", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterManagedOutboundIpProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IpTag", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IstioCertificateAuthority", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IstioComponents", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings", + "name" : "com.azure.resourcemanager.containerservice.models.IstioEgressGateway", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.UpgradeOverrideSettings", + "name" : "com.azure.resourcemanager.containerservice.models.IstioIngressGateway", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IstioIngressGatewayMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile", + "name" : "com.azure.resourcemanager.containerservice.models.IstioPluginCertificateAuthority", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateLinkResourceInner", + "name" : "com.azure.resourcemanager.containerservice.models.IstioServiceMesh", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig", + "name" : "com.azure.resourcemanager.containerservice.models.KeyVaultNetworkAccessTypes", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile", + "name" : "com.azure.resourcemanager.containerservice.models.KubeletConfig", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefender", + "name" : "com.azure.resourcemanager.containerservice.models.KubeletDiskType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefenderSecurityMonitoring", + "name" : "com.azure.resourcemanager.containerservice.models.KubernetesPatchVersion", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AzureKeyVaultKms", + "name" : "com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileWorkloadIdentity", + "name" : "com.azure.resourcemanager.containerservice.models.KubernetesVersion", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileImageCleaner", + "name" : "com.azure.resourcemanager.containerservice.models.KubernetesVersionCapabilities", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile", + "name" : "com.azure.resourcemanager.containerservice.models.LicenseType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileDiskCsiDriver", + "name" : "com.azure.resourcemanager.containerservice.models.LinuxOSConfig", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileFileCsiDriver", + "name" : "com.azure.resourcemanager.containerservice.models.LoadBalancerSku", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileSnapshotController", + "name" : "com.azure.resourcemanager.containerservice.models.MaintenanceConfigurationListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileBlobCsiDriver", + "name" : "com.azure.resourcemanager.containerservice.models.MaintenanceWindow", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfileWebAppRouting", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfileIdentity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileKeda", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileMetrics", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true @@ -484,537 +484,537 @@ "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ServiceMeshProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileMetrics", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioServiceMesh", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterCostAnalysis", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioComponents", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioIngressGateway", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioEgressGateway", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioCertificateAuthority", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfileWebAppRouting", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioPluginCertificateAuthority", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterCostAnalysis", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileOutboundIPs", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileOutboundIpPrefixes", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPoolUpgradeProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterManagedOutboundIpProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPoolUpgradeProfileUpgradesItem", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterNatGatewayProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AccessProfile", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.CredentialResult", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityException", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MaintenanceConfigurationListResult", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningError", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationProperties", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningErrorBody", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TimeInWeek", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningInfo", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TimeSpan", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningState", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MaintenanceWindow", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPoolUpgradeProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Schedule", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPoolUpgradeProfileUpgradesItem", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.DailySchedule", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.WeeklySchedule", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AbsoluteMonthlySchedule", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefender", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.RelativeMonthlySchedule", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefenderSecurityMonitoring", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.DateSpan", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileImageCleaner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolListResult", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileWorkloadIdentity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSku", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSkuName", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSkuTier", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsProperties", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileBlobCsiDriver", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileDiskCsiDriver", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionListResultInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileFileCsiDriver", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfileSnapshotController", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionProperties", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PrivateEndpoint", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PrivateLinkServiceConnectionState", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileKeda", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.PrivateLinkResourcesListResultInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.RunCommandRequest", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedClustersGetCommandResultHeaders", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner", + "name" : "com.azure.resourcemanager.containerservice.models.ManagedServiceIdentityUserAssignedIdentitiesValue", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.CommandResultProperties", + "name" : "com.azure.resourcemanager.containerservice.models.MeshRevision", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OutboundEnvironmentEndpointCollection", + "name" : "com.azure.resourcemanager.containerservice.models.MeshRevisionProfileList", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner", + "name" : "com.azure.resourcemanager.containerservice.models.MeshRevisionProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.EndpointDependency", + "name" : "com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileList", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.EndpointDetail", + "name" : "com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileProperties", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.SnapshotListResult", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkDataplane", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.SnapshotInner", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.SnapshotProperties", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkPlugin", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MeshRevisionProfileList", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkPluginMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkPolicy", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MeshRevisionProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.models.NetworkProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MeshRevision", + "name" : "com.azure.resourcemanager.containerservice.models.NodeOSUpgradeChannel", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.CompatibleVersions", + "name" : "com.azure.resourcemanager.containerservice.models.OSDiskType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileList", + "name" : "com.azure.resourcemanager.containerservice.models.OSSku", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner", + "name" : "com.azure.resourcemanager.containerservice.models.OSType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileProperties", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftAgentPoolProfileRole", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingListResult", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftContainerServiceVMSize", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingInner", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAadIdentityProvider", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingProperties", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAgentPoolProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleListResult", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAuthProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleInner", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterBaseIdentityProvider", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleRule", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterIdentityProvider", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAadIdentityProvider", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClustersGetCommandResultHeaders", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftContainerServiceVMSize", + "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftRouterProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OSType", + "name" : "com.azure.resourcemanager.containerservice.models.OperationListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OpenShiftAgentPoolProfileRole", + "name" : "com.azure.resourcemanager.containerservice.models.OrchestratorProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan", + "name" : "com.azure.resourcemanager.containerservice.models.OrchestratorVersionProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSkuName", + "name" : "com.azure.resourcemanager.containerservice.models.OutboundEnvironmentEndpointCollection", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterSkuTier", + "name" : "com.azure.resourcemanager.containerservice.models.OutboundType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ExtendedLocationTypes", + "name" : "com.azure.resourcemanager.containerservice.models.PortRange", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Code", + "name" : "com.azure.resourcemanager.containerservice.models.PowerState", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OSDiskType", + "name" : "com.azure.resourcemanager.containerservice.models.PrivateEndpoint", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KubeletDiskType", + "name" : "com.azure.resourcemanager.containerservice.models.PrivateEndpointConnectionProvisioningState", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.WorkloadRuntime", + "name" : "com.azure.resourcemanager.containerservice.models.PrivateLinkServiceConnectionState", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OSSku", + "name" : "com.azure.resourcemanager.containerservice.models.Protocol", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ScaleDownMode", + "name" : "com.azure.resourcemanager.containerservice.models.PublicNetworkAccess", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolType", + "name" : "com.azure.resourcemanager.containerservice.models.PurchasePlan", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.AgentPoolMode", + "name" : "com.azure.resourcemanager.containerservice.models.RelativeMonthlySchedule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ScaleSetPriority", + "name" : "com.azure.resourcemanager.containerservice.models.ResourceIdentityType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy", + "name" : "com.azure.resourcemanager.containerservice.models.ResourceReference", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.GpuInstanceProfile", + "name" : "com.azure.resourcemanager.containerservice.models.RunCommandRequest", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Protocol", + "name" : "com.azure.resourcemanager.containerservice.models.ScaleDownMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.LicenseType", + "name" : "com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningState", + "name" : "com.azure.resourcemanager.containerservice.models.ScaleSetPriority", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkPlugin", + "name" : "com.azure.resourcemanager.containerservice.models.Schedule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkPluginMode", + "name" : "com.azure.resourcemanager.containerservice.models.ServiceMeshMode", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkPolicy", + "name" : "com.azure.resourcemanager.containerservice.models.ServiceMeshProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkMode", + "name" : "com.azure.resourcemanager.containerservice.models.SnapshotListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NetworkDataplane", + "name" : "com.azure.resourcemanager.containerservice.models.SnapshotType", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.OutboundType", + "name" : "com.azure.resourcemanager.containerservice.models.SysctlConfig", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.LoadBalancerSku", + "name" : "com.azure.resourcemanager.containerservice.models.TagsObject", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.BackendPoolType", + "name" : "com.azure.resourcemanager.containerservice.models.TimeInWeek", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IpFamily", + "name" : "com.azure.resourcemanager.containerservice.models.TimeSpan", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.UpgradeChannel", + "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.NodeOSUpgradeChannel", + "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingProvisioningState", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Expander", + "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleListResult", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.KeyVaultNetworkAccessTypes", + "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleRule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.PublicNetworkAccess", + "name" : "com.azure.resourcemanager.containerservice.models.Type", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ServiceMeshMode", + "name" : "com.azure.resourcemanager.containerservice.models.UpgradeChannel", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.IstioIngressGatewayMode", + "name" : "com.azure.resourcemanager.containerservice.models.UpgradeOverrideSettings", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Format", + "name" : "com.azure.resourcemanager.containerservice.models.UserAssignedIdentity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true @@ -1024,32 +1024,17 @@ "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.Type", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.containerservice.models.PrivateEndpointConnectionProvisioningState", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.containerservice.models.ConnectionStatus", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.containerservice.models.SnapshotType", + "name" : "com.azure.resourcemanager.containerservice.models.WeeklySchedule", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.TrustedAccessRoleBindingProvisioningState", + "name" : "com.azure.resourcemanager.containerservice.models.WindowsGmsaProfile", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.containerservice.models.ResourceIdentityType", + "name" : "com.azure.resourcemanager.containerservice.models.WorkloadRuntime", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true 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 1e72a052a235..694972ba9081 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsAbortOperation.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsAbortLatestOperationSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void abortOperationOnAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().abortLatestOperation("rg1", "clustername1", - "agentpool1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .abortLatestOperation("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); } } 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 7ca9918ee322..92e203c6b8e6 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 @@ -20,6 +20,7 @@ import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; import com.azure.resourcemanager.containerservice.models.SysctlConfig; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; + import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -30,267 +31,369 @@ public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_EnableFIPS.json */ /** * Sample code: Create Agent Pool with FIPS enabled OS. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithFIPSEnabledOS(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate( - "rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withOrchestratorVersion("").withEnableFips(true), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withEnableFips(true), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPools_Update.json */ /** * Sample code: Update Agent Pool. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS1_v2").withOsType(OSType.LINUX).withMaxCount(2) - .withMinCount(2).withEnableAutoScaling(true).withOrchestratorVersion("") - .withScaleSetPriority(ScaleSetPriority.SPOT).withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) - .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withMaxCount(2) + .withMinCount(2) + .withEnableAutoScaling(true) + .withOrchestratorVersion("") + .withScaleSetPriority(ScaleSetPriority.SPOT) + .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_GPUMIG.json */ /** * Sample code: Create Agent Pool with GPUMIG. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithGPUMIG(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_ND96asr_v4").withOsType(OSType.LINUX).withOrchestratorVersion("") - .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static").withCpuCfsQuota(true) - .withCpuCfsQuotaPeriod("200ms").withImageGcHighThreshold(90).withImageGcLowThreshold(70) - .withTopologyManagerPolicy("best-effort") - .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")).withFailSwapOn(false)) - .withLinuxOSConfig(new LinuxOSConfig() - .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345).withNetIpv4TcpTwReuse(true) - .withNetIpv4IpLocalPortRange("20000 60000").withKernelThreadsMax(99999)) - .withTransparentHugePageEnabled("always").withTransparentHugePageDefrag("madvise") - .withSwapFileSizeMB(1500)) - .withGpuInstanceProfile(GpuInstanceProfile.MIG2G), com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_ND96asr_v4") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static") + .withCpuCfsQuota(true) + .withCpuCfsQuotaPeriod("200ms") + .withImageGcHighThreshold(90) + .withImageGcLowThreshold(70) + .withTopologyManagerPolicy("best-effort") + .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")) + .withFailSwapOn(false)) + .withLinuxOSConfig(new LinuxOSConfig() + .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345) + .withNetIpv4TcpTwReuse(true) + .withNetIpv4IpLocalPortRange("20000 60000") + .withKernelThreadsMax(99999)) + .withTransparentHugePageEnabled("always") + .withTransparentHugePageDefrag("madvise") + .withSwapFileSizeMB(1500)) + .withGpuInstanceProfile(GpuInstanceProfile.MIG2G), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_WindowsOSSKU.json */ /** * Sample code: Create Agent Pool with Windows OSSKU. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate( - "rg1", "clustername1", "wnp2", new AgentPoolInner().withCount(3).withVmSize("Standard_D4s_v3") - .withOsType(OSType.WINDOWS).withOsSku(OSSku.WINDOWS2022).withOrchestratorVersion("1.23.3"), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "wnp2", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_D4s_v3") + .withOsType(OSType.WINDOWS) + .withOsSku(OSSku.WINDOWS2022) + .withOrchestratorVersion("1.23.3"), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_DedicatedHostGroup.json */ /** * Sample code: Create Agent Pool with Dedicated Host Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithDedicatedHostGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX).withOrchestratorVersion("").withHostGroupId( + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withHostGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1"), com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_Update.json */ /** * Sample code: Create/Update Agent Pool. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS1_v2").withOsType(OSType.LINUX) - .withMode(AgentPoolMode.USER).withOrchestratorVersion("").withScaleSetPriority(ScaleSetPriority.SPOT) - .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE).withTags(mapOf("name1", "val1")) - .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) - .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withMode(AgentPoolMode.USER) + .withOrchestratorVersion("") + .withScaleSetPriority(ScaleSetPriority.SPOT) + .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) + .withTags(mapOf("name1", "val1")) + .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_WindowsDisableOutboundNAT.json */ /** * Sample code: Create Windows Agent Pool with disabling OutboundNAT. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createWindowsAgentPoolWithDisablingOutboundNAT(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "wnp2", - new AgentPoolInner().withCount(3).withVmSize("Standard_D4s_v3").withOsType(OSType.WINDOWS) - .withOsSku(OSSku.WINDOWS2022).withOrchestratorVersion("1.23.8").withWindowsProfile( - new AgentPoolWindowsProfile().withDisableOutboundNat(true)), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "wnp2", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_D4s_v3") + .withOsType(OSType.WINDOWS) + .withOsSku(OSSku.WINDOWS2022) + .withOrchestratorVersion("1.23.8") + .withWindowsProfile(new AgentPoolWindowsProfile().withDisableOutboundNat(true)), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPools_Start.json */ /** * Sample code: Start Agent Pool. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void startAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_Spot.json */ /** * Sample code: Create Spot Agent Pool. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSpotAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS1_v2").withOsType(OSType.LINUX) - .withOrchestratorVersion("").withScaleSetPriority(ScaleSetPriority.SPOT) - .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE).withTags(mapOf("name1", "val1")) - .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) - .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withScaleSetPriority(ScaleSetPriority.SPOT) + .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) + .withTags(mapOf("name1", "val1")) + .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_Ephemeral.json */ /** * Sample code: Create Agent Pool with Ephemeral OS Disk. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2").withOsDiskSizeGB(64) - .withOsDiskType(OSDiskType.EPHEMERAL).withOsType(OSType.LINUX).withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsDiskSizeGB(64) + .withOsDiskType(OSDiskType.EPHEMERAL) + .withOsType(OSType.LINUX) + .withOrchestratorVersion(""), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_EnableEncryptionAtHost.json */ /** * Sample code: Create Agent Pool with EncryptionAtHost enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithEncryptionAtHostEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate( - "rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withOrchestratorVersion("").withEnableEncryptionAtHost(true), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withEnableEncryptionAtHost(true), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_EnableUltraSSD.json */ /** * Sample code: Create Agent Pool with UltraSSD enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate( - "rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withOrchestratorVersion("").withEnableUltraSsd(true), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withEnableUltraSsd(true), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_WasmWasi.json */ /** * Sample code: Create Agent Pool with Krustlet and the WASI runtime. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithKrustletAndTheWASIRuntime(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2").withOsDiskSizeGB(64) - .withWorkloadRuntime(WorkloadRuntime.WASM_WASI).withOsType(OSType.LINUX).withMode(AgentPoolMode.USER) - .withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsDiskSizeGB(64) + .withWorkloadRuntime(WorkloadRuntime.WASM_WASI) + .withOsType(OSType.LINUX) + .withMode(AgentPoolMode.USER) + .withOrchestratorVersion(""), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_Snapshot.json */ /** * Sample code: Create Agent Pool using an agent pool snapshot. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX).withOrchestratorVersion("").withEnableFips(true) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withEnableFips(true) .withCreationData(new CreationData().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1")), com.azure.core.util.Context.NONE); @@ -298,111 +401,151 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourceman /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_PPG.json */ /** * Sample code: Create Agent Pool with PPG. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withOrchestratorVersion("").withProximityPlacementGroupId( + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withProximityPlacementGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_CustomNodeConfig.json */ /** * Sample code: Create Agent Pool with KubeletConfig and LinuxOSConfig. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithKubeletConfigAndLinuxOSConfig(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX).withOrchestratorVersion("") - .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static").withCpuCfsQuota(true) - .withCpuCfsQuotaPeriod("200ms").withImageGcHighThreshold(90).withImageGcLowThreshold(70) - .withTopologyManagerPolicy("best-effort") - .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")).withFailSwapOn(false)) - .withLinuxOSConfig(new LinuxOSConfig() - .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345).withNetIpv4TcpTwReuse(true) - .withNetIpv4IpLocalPortRange("20000 60000").withKernelThreadsMax(99999)) - .withTransparentHugePageEnabled("always").withTransparentHugePageDefrag("madvise") - .withSwapFileSizeMB(1500)), + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static") + .withCpuCfsQuota(true) + .withCpuCfsQuotaPeriod("200ms") + .withImageGcHighThreshold(90) + .withImageGcLowThreshold(70) + .withTopologyManagerPolicy("best-effort") + .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")) + .withFailSwapOn(false)) + .withLinuxOSConfig(new LinuxOSConfig() + .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345) + .withNetIpv4TcpTwReuse(true) + .withNetIpv4IpLocalPortRange("20000 60000") + .withKernelThreadsMax(99999)) + .withTransparentHugePageEnabled("always") + .withTransparentHugePageDefrag("madvise") + .withSwapFileSizeMB(1500)), com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPools_Stop.json */ /** * Sample code: Stop Agent Pool. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_CRG.json */ /** * Sample code: Create Agent Pool with Capacity Reservation Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithCapacityReservationGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withOrchestratorVersion("").withCapacityReservationGroupId( + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withCapacityReservationGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsCreate_OSSKU.json */ /** * Sample code: Create Agent Pool with OSSKU. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAgentPoolWithOSSKU(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().createOrUpdate("rg1", "clustername1", - "agentpool1", - new AgentPoolInner().withCount(3).withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withOsSku(OSSku.AZURE_LINUX).withOrchestratorVersion("") - .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static").withCpuCfsQuota(true) - .withCpuCfsQuotaPeriod("200ms").withImageGcHighThreshold(90).withImageGcLowThreshold(70) - .withTopologyManagerPolicy("best-effort") - .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")).withFailSwapOn(false)) - .withLinuxOSConfig(new LinuxOSConfig() - .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345).withNetIpv4TcpTwReuse(true) - .withNetIpv4IpLocalPortRange("20000 60000").withKernelThreadsMax(99999)) - .withTransparentHugePageEnabled("always").withTransparentHugePageDefrag("madvise") - .withSwapFileSizeMB(1500)), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOsSku(OSSku.AZURE_LINUX) + .withOrchestratorVersion("") + .withKubeletConfig(new KubeletConfig().withCpuManagerPolicy("static") + .withCpuCfsQuota(true) + .withCpuCfsQuotaPeriod("200ms") + .withImageGcHighThreshold(90) + .withImageGcLowThreshold(70) + .withTopologyManagerPolicy("best-effort") + .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")) + .withFailSwapOn(false)) + .withLinuxOSConfig(new LinuxOSConfig() + .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345) + .withNetIpv4TcpTwReuse(true) + .withNetIpv4IpLocalPortRange("20000 60000") + .withKernelThreadsMax(99999)) + .withTransparentHugePageEnabled("always") + .withTransparentHugePageDefrag("madvise") + .withSwapFileSizeMB(1500)), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java index f42802df79ac..bfe99ca9c0c2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsDelete.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().delete("rg1", "clustername1", "agentpool1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .delete("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java index 9595c35fa880..660755b52f1d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsGetAgentPoolAvailableVersions.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableVersionsForAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() .getAvailableAgentPoolVersionsWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 3ab558e540ce..298c5736afdd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsGet.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().getWithResponse("rg1", "clustername1", - "agentpool1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .getWithResponse("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); } } 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 15d575d43d73..6e7212767ec9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsGetUpgradeProfile.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsGetUpgradeProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getUpgradeProfileForAgentPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().getUpgradeProfileWithResponse("rg1", - "clustername1", "agentpool1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .getUpgradeProfileWithResponse("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); } } 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 20c27b27823e..50551a724a26 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsList.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listAgentPoolsByManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().list("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .list("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 c4608dd50908..5aa5c8507e5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsUpgradeNodeImageVersionSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * AgentPoolsUpgradeNodeImageVersion.json */ /** @@ -19,7 +19,10 @@ public final class AgentPoolsUpgradeNodeImageVersionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void upgradeAgentPoolNodeImageVersion(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getAgentPools().upgradeNodeImageVersion("rg1", - "clustername1", "agentpool1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getAgentPools() + .upgradeNodeImageVersion("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ContainerServicesListOrchestratorsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ContainerServicesListOrchestratorsSamples.java index 5ade1a815204..9a0b25cab1d8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ContainerServicesListOrchestratorsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ContainerServicesListOrchestratorsSamples.java @@ -19,7 +19,10 @@ public final class ContainerServicesListOrchestratorsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listContainerServiceOrchestrators(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getContainerServices() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getContainerServices() .listOrchestratorsWithResponse("location1", null, com.azure.core.util.Context.NONE); } } 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 a321ef29dad1..5dc89b41ccc6 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 @@ -13,6 +13,7 @@ import com.azure.resourcemanager.containerservice.models.TimeSpan; import com.azure.resourcemanager.containerservice.models.Type; import com.azure.resourcemanager.containerservice.models.WeekDay; + import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.Arrays; @@ -23,16 +24,19 @@ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsCreate_Update.json */ /** * Sample code: Create/Update Maintenance Configuration. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateMaintenanceConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() .createOrUpdateWithResponse("rg1", "clustername1", "default", new MaintenanceConfigurationInner() .withTimeInWeek( Arrays.asList(new TimeInWeek().withDay(WeekDay.MONDAY).withHourSlots(Arrays.asList(1, 2)))) @@ -43,26 +47,33 @@ public static void createUpdateMaintenanceConfiguration(com.azure.resourcemanage /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ /** * Sample code: Create/Update Maintenance Configuration with Maintenance Window. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateMaintenanceConfigurationWithMaintenanceWindow( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().createOrUpdateWithResponse( - "rg1", "clustername1", "aksManagedAutoUpgradeSchedule", - new MaintenanceConfigurationInner().withMaintenanceWindow(new MaintenanceWindow() - .withSchedule(new Schedule().withRelativeMonthly(new RelativeMonthlySchedule().withIntervalMonths(3) - .withWeekIndex(Type.FIRST).withDayOfWeek(WeekDay.MONDAY))) - .withDurationHours(10).withUtcOffset("+05:30").withStartDate(LocalDate.parse("2023-01-01")) - .withStartTime("08:30") - .withNotAllowedDates(Arrays.asList( - new DateSpan().withStart(LocalDate.parse("2023-02-18")).withEnd(LocalDate.parse("2023-02-25")), - new DateSpan().withStart(LocalDate.parse("2023-12-23")).withEnd(LocalDate.parse("2024-01-05"))))), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .createOrUpdateWithResponse("rg1", "clustername1", "aksManagedAutoUpgradeSchedule", + new MaintenanceConfigurationInner().withMaintenanceWindow(new MaintenanceWindow() + .withSchedule(new Schedule().withRelativeMonthly(new RelativeMonthlySchedule().withIntervalMonths(3) + .withWeekIndex(Type.FIRST) + .withDayOfWeek(WeekDay.MONDAY))) + .withDurationHours(10) + .withUtcOffset("+05:30") + .withStartDate(LocalDate.parse("2023-01-01")) + .withStartTime("08:30") + .withNotAllowedDates(Arrays.asList( + new DateSpan().withStart(LocalDate.parse("2023-02-18")).withEnd(LocalDate.parse("2023-02-25")), + new DateSpan().withStart(LocalDate.parse("2023-12-23")) + .withEnd(LocalDate.parse("2024-01-05"))))), + com.azure.core.util.Context.NONE); } } 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 f4a24352ad4f..01c0917abbf1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsDelete.json */ /** @@ -19,13 +19,16 @@ public final class MaintenanceConfigurationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteMaintenanceConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().deleteWithResponse("rg1", - "clustername1", "default", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .deleteWithResponse("rg1", "clustername1", "default", com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsDelete_MaintenanceWindow.json */ /** @@ -35,7 +38,11 @@ public static void deleteMaintenanceConfiguration(com.azure.resourcemanager.Azur */ public static void deleteMaintenanceConfigurationForNodeOSUpgrade(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().deleteWithResponse("rg1", - "clustername1", "aksManagedNodeOSUpgradeSchedule", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .deleteWithResponse("rg1", "clustername1", "aksManagedNodeOSUpgradeSchedule", + com.azure.core.util.Context.NONE); } } 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 a8918ddc8458..eefcdb360d68 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsGet.json */ /** @@ -19,13 +19,16 @@ public final class MaintenanceConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getMaintenanceConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().getWithResponse("rg1", - "clustername1", "default", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .getWithResponse("rg1", "clustername1", "default", com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsGet_MaintenanceWindow.json */ /** @@ -35,7 +38,11 @@ public static void getMaintenanceConfiguration(com.azure.resourcemanager.AzureRe */ public static void getMaintenanceConfigurationConfiguredWithMaintenanceWindow( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().getWithResponse("rg1", - "clustername1", "aksManagedNodeOSUpgradeSchedule", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .getWithResponse("rg1", "clustername1", "aksManagedNodeOSUpgradeSchedule", + com.azure.core.util.Context.NONE); } } 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 5ea4454ed9d9..fef271573aad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsListByManagedClusterSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsList_MaintenanceWindow.json */ /** @@ -20,13 +20,16 @@ public final class MaintenanceConfigurationsListByManagedClusterSamples { */ public static void listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().listByManagedCluster("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * MaintenanceConfigurationsList.json */ /** @@ -36,7 +39,10 @@ public static void listMaintenanceConfigurationsConfiguredWithMaintenanceWindowB */ public static void listMaintenanceConfigurationsByManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getMaintenanceConfigurations().listByManagedCluster("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getMaintenanceConfigurations() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 5d690526dd09..b01886553672 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersAbortOperation.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersAbortLatestOperationSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void abortOperationOnManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().abortLatestOperation("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .abortLatestOperation("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 4d06368aea59..fdc4f0e13015 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 @@ -59,6 +59,7 @@ import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile; import com.azure.resourcemanager.containerservice.models.UpgradeOverrideSettings; import com.azure.resourcemanager.containerservice.models.WindowsGmsaProfile; + import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; @@ -70,24 +71,31 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_CRG.json */ /** * Sample code: Create Managed Cluster with Capacity Reservation Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithCapacityReservationGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) .withEnableNodePublicIp(true) .withCapacityReservationGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/capacityReservationGroups/crg1") @@ -99,7 +107,9 @@ public final class ManagedClustersCreateOrUpdateSamples { .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -108,34 +118,43 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_DualStackNetworking.json */ /** * Sample code: Create/Update Managed Cluster with dual-stack networking. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateManagedClusterWithDualStackNetworking(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) .withTier(ManagedClusterSkuTier.FREE)) .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgName1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", new ManagedServiceIdentityUserAssignedIdentitiesValue()))) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS1_v2").withOsType(OSType.LINUX).withScaleDownMode(ScaleDownMode.DEALLOCATE) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withAvailabilityZones(Arrays.asList("1", "2", "3")).withEnableNodePublicIp(true) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withScaleDownMode(ScaleDownMode.DEALLOCATE) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( @@ -144,7 +163,9 @@ public final class ManagedClustersCreateOrUpdateSamples { .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile() @@ -152,34 +173,46 @@ public final class ManagedClustersCreateOrUpdateSamples { .withIpFamilies(Arrays.asList(IpFamily.IPV4, IpFamily.IPV6))) .withAutoScalerProfile( new ManagedClusterPropertiesAutoScalerProfile().withBalanceSimilarNodeGroups("true") - .withExpander(Expander.PRIORITY).withMaxNodeProvisionTime("15m").withNewPodScaleUpDelay("1m") - .withScanInterval("20s").withScaleDownDelayAfterAdd("15m").withSkipNodesWithSystemPods("false")) + .withExpander(Expander.PRIORITY) + .withMaxNodeProvisionTime("15m") + .withNewPodScaleUpDelay("1m") + .withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m") + .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_PodIdentity.json */ /** * Sample code: Create Managed Cluster with PodIdentity enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithPodIdentityEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -190,7 +223,8 @@ public final class ManagedClustersCreateOrUpdateSamples { .withAddonProfiles(mapOf()) .withPodIdentityProfile( new ManagedClusterPodIdentityProfile().withEnabled(true).withAllowNetworkPluginKubenet(true)) - .withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -199,30 +233,38 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_UserAssignedNATGateway.json */ /** * Sample code: Create Managed Cluster with user-assigned NAT gateway as outbound type. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(false).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(false) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -230,7 +272,9 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile( new ContainerServiceNetworkProfile().withOutboundType(OutboundType.USER_ASSIGNED_NATGATEWAY) .withLoadBalancerSku(LoadBalancerSku.STANDARD)) @@ -238,33 +282,42 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_Update.json */ /** * Sample code: Create/Update Managed Cluster. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) .withTier(ManagedClusterSkuTier.FREE)) .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgName1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", new ManagedServiceIdentityUserAssignedIdentitiesValue()))) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS1_v2").withOsType(OSType.LINUX).withScaleDownMode(ScaleDownMode.DEALLOCATE) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withAvailabilityZones(Arrays.asList("1", "2", "3")).withEnableNodePublicIp(true) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withScaleDownMode(ScaleDownMode.DEALLOCATE) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( @@ -273,43 +326,59 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withUpgradeSettings(new ClusterUpgradeSettings().withOverrideSettings(new UpgradeOverrideSettings() - .withForceUpgrade(false).withUntil(OffsetDateTime.parse("2022-11-01T13:00:00Z")))) + .withUpgradeSettings(new ClusterUpgradeSettings() + .withOverrideSettings(new UpgradeOverrideSettings().withForceUpgrade(false) + .withUntil(OffsetDateTime.parse("2022-11-01T13:00:00Z")))) .withAutoScalerProfile( new ManagedClusterPropertiesAutoScalerProfile().withBalanceSimilarNodeGroups("true") - .withExpander(Expander.PRIORITY).withMaxNodeProvisionTime("15m").withNewPodScaleUpDelay("1m") - .withScanInterval("20s").withScaleDownDelayAfterAdd("15m").withSkipNodesWithSystemPods("false")) + .withExpander(Expander.PRIORITY) + .withMaxNodeProvisionTime("15m") + .withNewPodScaleUpDelay("1m") + .withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m") + .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** * Sample code: Create Managed Private Cluster with fqdn subdomain specified. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedPrivateClusterWithFqdnSubdomainSpecified(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withFqdnSubdomain("domain1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withFqdnSubdomain("domain1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableEncryptionAtHost(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -317,40 +386,50 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) - .withApiServerAccessProfile( - new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true).withPrivateDnsZone( + .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) + .withPrivateDnsZone( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Network/privateDnsZones/privatelink.location1.azmk8s.io")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_ManagedNATGateway.json */ /** * Sample code: Create Managed Cluster with AKS-managed NAT gateway as outbound type. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(false).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(false) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -358,38 +437,50 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) - .withNetworkProfile(new ContainerServiceNetworkProfile() - .withOutboundType(OutboundType.MANAGED_NATGATEWAY).withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withNatGatewayProfile(new ManagedClusterNatGatewayProfile() - .withManagedOutboundIpProfile(new ManagedClusterManagedOutboundIpProfile().withCount(2)))) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) + .withNetworkProfile( + new ContainerServiceNetworkProfile().withOutboundType(OutboundType.MANAGED_NATGATEWAY) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withNatGatewayProfile(new ManagedClusterNatGatewayProfile() + .withManagedOutboundIpProfile(new ManagedClusterManagedOutboundIpProfile().withCount(2)))) .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_Premium.json */ /** * Sample code: Create Managed Cluster with LongTermSupport. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithLongTermSupport(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.BASE).withTier(ManagedClusterSkuTier.PREMIUM)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.BASE) + .withTier(ManagedClusterSkuTier.PREMIUM)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableEncryptionAtHost(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -397,8 +488,10 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true) - .withSupportPlan(KubernetesSupportPlan.AKSLONG_TERM_SUPPORT).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withSupportPlan(KubernetesSupportPlan.AKSLONG_TERM_SUPPORT) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -406,29 +499,36 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_NodePublicIPPrefix.json */ /** * Sample code: Create Managed Cluster with Node Public IP Prefix. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithNodePublicIPPrefix(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) .withEnableNodePublicIp(true) .withNodePublicIpPrefixId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Network/publicIPPrefixes/public-ip-prefix") @@ -440,7 +540,9 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -449,30 +551,39 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_EnableEncryptionAtHost.json */ /** * Sample code: Create Managed Cluster with EncryptionAtHost enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithEncryptionAtHostEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableEncryptionAtHost(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -480,7 +591,9 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -489,30 +602,39 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_PrivateClusterPublicFQDN.json */ /** * Sample code: Create Managed Private Cluster with Public FQDN specified. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedPrivateClusterWithPublicFQDNSpecified(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableEncryptionAtHost(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -520,7 +642,9 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -529,30 +653,38 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) .withEnablePrivateClusterPublicFqdn(true)), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_HTTPProxy.json */ /** * Sample code: Create Managed Cluster with HTTP proxy configured. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithHTTPProxyConfigured(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -560,7 +692,9 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -573,29 +707,36 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_DedicatedHostGroup.json */ /** * Sample code: Create Managed Cluster with Dedicated Host Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithDedicatedHostGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withEnableNodePublicIp(true) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withEnableNodePublicIp(true) .withHostGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1") .withName("nodepool1"))) @@ -606,7 +747,9 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(false) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(false) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -615,29 +758,38 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_EnabledFIPS.json */ /** * Sample code: Create Managed Cluster with FIPS enabled OS. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableFips(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableFips(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -645,7 +797,9 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(false) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(false) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -654,30 +808,38 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_SecurityProfile.json */ /** * Sample code: Create Managed Cluster with Security Profile configured. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithSecurityProfileConfigured(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -691,28 +853,35 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withSecurityMonitoring( new ManagedClusterSecurityProfileDefenderSecurityMonitoring().withEnabled(true))) .withWorkloadIdentity(new ManagedClusterSecurityProfileWorkloadIdentity().withEnabled(true))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_PPG.json */ /** * Sample code: Create Managed Cluster with PPG. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) .withEnableNodePublicIp(true) .withProximityPlacementGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1") @@ -724,7 +893,9 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -733,30 +904,38 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_IngressProfile_WebAppRouting.json */ /** * Sample code: Create Managed Cluster with Web App Routing Ingress Profile configured. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -768,42 +947,53 @@ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured .withWebAppRouting(new ManagedClusterIngressProfileWebAppRouting().withEnabled(true) .withDnsZoneResourceIds(Arrays.asList( "/subscriptions/SUB_ID/resourceGroups/RG_NAME/providers/Microsoft.Network/dnszones/DNS_ZONE_NAME")))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_UpdateWithAHUB.json */ /** * Sample code: Create/Update Managed Cluster with EnableAHUB. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) .withTier(ManagedClusterSkuTier.FREE)) .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgName1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", new ManagedServiceIdentityUserAssignedIdentitiesValue()))) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS1_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withEnableNodePublicIp(true).withName("nodepool1"))) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder").withLicenseType(LicenseType.WINDOWS_SERVER)) + .withAdminPassword("fakeTokenPlaceholder") + .withLicenseType(LicenseType.WINDOWS_SERVER)) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -812,30 +1002,39 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_DisableRunCommand.json */ /** * Sample code: Create Managed Cluster with RunCommand disabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithRunCommandDisabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableEncryptionAtHost(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -843,7 +1042,9 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -851,30 +1052,38 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_Snapshot.json */ /** * Sample code: Create Managed Cluster using an agent pool snapshot. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterUsingAnAgentPoolSnapshot(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableFips(true) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableFips(true) .withCreationData(new CreationData().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1")) .withName("nodepool1"))) @@ -885,7 +1094,9 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(false) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(false) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -894,126 +1105,165 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_AzureServiceMesh.json */ /** * Sample code: Create/Update Managed Cluster with Azure Service Mesh. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateManagedClusterWithAzureServiceMesh(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf("azureKeyvaultSecretsProvider", - new ManagedClusterAddonProfile().withEnabled(true).withConfig( - mapOf("enableSecretRotation", "fakeTokenPlaceholder", "rotationPollInterval", "2m")))) - .withEnableRbac(true).withEnablePodSecurityPolicy(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") - .withServiceMeshProfile( - new ServiceMeshProfile().withMode(ServiceMeshMode.ISTIO) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles( + mapOf("azureKeyvaultSecretsProvider", + new ManagedClusterAddonProfile().withEnabled(true) + .withConfig(mapOf("enableSecretRotation", "fakeTokenPlaceholder", + "rotationPollInterval", "2m")))) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) + .withNetworkProfile( + new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile() + .withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") + .withServiceMeshProfile(new ServiceMeshProfile().withMode(ServiceMeshMode.ISTIO) .withIstio(new IstioServiceMesh() .withComponents(new IstioComponents() - .withIngressGateways(Arrays.asList(new IstioIngressGateway() - .withMode(IstioIngressGatewayMode.INTERNAL).withEnabled(true))) + .withIngressGateways( + Arrays.asList(new IstioIngressGateway().withMode(IstioIngressGatewayMode.INTERNAL) + .withEnabled(true))) .withEgressGateways(Arrays.asList(new IstioEgressGateway().withEnabled(true)))) .withCertificateAuthority(new IstioCertificateAuthority() .withPlugin(new IstioPluginCertificateAuthority().withKeyVaultId("fakeTokenPlaceholder") - .withCertObjectName("ca-cert").withKeyObjectName("fakeTokenPlaceholder") - .withRootCertObjectName("root-cert").withCertChainObjectName("cert-chain"))))), - com.azure.core.util.Context.NONE); + .withCertObjectName("ca-cert") + .withKeyObjectName("fakeTokenPlaceholder") + .withRootCertObjectName("root-cert") + .withCertChainObjectName("cert-chain"))))), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ /** * Sample code: Create Managed Cluster with Azure KeyVault Secrets Provider Addon. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true).withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf("azureKeyvaultSecretsProvider", - new ManagedClusterAddonProfile().withEnabled(true).withConfig( - mapOf("enableSecretRotation", "fakeTokenPlaceholder", "rotationPollInterval", "2m")))) - .withEnableRbac(true).withEnablePodSecurityPolicy(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles( + mapOf("azureKeyvaultSecretsProvider", + new ManagedClusterAddonProfile().withEnabled(true) + .withConfig(mapOf("enableSecretRotation", "fakeTokenPlaceholder", + "rotationPollInterval", "2m")))) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) + .withNetworkProfile( + new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile() + .withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_OSSKU.json */ /** * Sample code: Create Managed Cluster with OSSKU. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX).withOsSku(OSSku.AZURE_LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOsSku(OSSku.AZURE_LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -1021,7 +1271,9 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -1034,31 +1286,39 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** * Sample code: Create/Update AAD Managed Cluster with EnableAzureRBAC. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateAADManagedClusterWithEnableAzureRBAC(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS1_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withEnableNodePublicIp(true).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -1066,7 +1326,9 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -1076,29 +1338,38 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_EnableUltraSSD.json */ /** * Sample code: Create Managed Cluster with UltraSSD enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2").withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS).withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true).withEnableUltraSsd(true).withName("nodepool1"))) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableUltraSsd(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -1106,7 +1377,9 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -1115,35 +1388,43 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_UpdateWindowsGmsa.json */ /** * Sample code: Create/Update Managed Cluster with Windows gMSA enabled. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateManagedClusterWithWindowsGMSAEnabled(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) .withTier(ManagedClusterSkuTier.FREE)) .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgName1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", new ManagedServiceIdentityUserAssignedIdentitiesValue()))) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_DS1_v2") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withEnableNodePublicIp(true).withName("nodepool1"))) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -1152,7 +1433,9 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withGmsaProfile(new WindowsGmsaProfile().withEnabled(true))) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -1161,30 +1444,38 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersCreate_GPUMIG.json */ /** * Sample code: Create Managed Cluster with GPUMIG. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1").withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku() - .withName(ManagedClusterSkuName.fromString("Basic")).withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("").withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles( - Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3).withVmSize("Standard_ND96asr_v4") - .withOsType(OSType.LINUX).withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM).withEnableNodePublicIp(true) - .withGpuInstanceProfile(GpuInstanceProfile.MIG3G).withName("nodepool1"))) + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_ND96asr_v4") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withGpuInstanceProfile(GpuInstanceProfile.MIG3G) + .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) @@ -1192,7 +1483,9 @@ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.Azur .withAdminPassword("fakeTokenPlaceholder")) .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()).withEnableRbac(true).withEnablePodSecurityPolicy(true) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnablePodSecurityPolicy(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( @@ -1205,7 +1498,7 @@ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.Azur .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java index 91a5bc07bd40..19ca9660502a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersDelete.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().delete("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .delete("rg1", "clustername1", 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 63daf46a4b7d..624bd3eb4b56 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetAccessProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersGetAccessProfile.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersGetAccessProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getAccessProfileWithResponse("rg1", - "clustername1", "clusterUser", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .getAccessProfileWithResponse("rg1", "clustername1", "clusterUser", com.azure.core.util.Context.NONE); } } 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 58f342e7efba..723f821ce4fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersGet.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getByResourceGroupWithResponse("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .getByResourceGroupWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 747b98284900..3a48ecae5d9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetCommandResultSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * RunCommandResultFailed.json */ /** @@ -19,13 +19,17 @@ public final class ManagedClustersGetCommandResultSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void commandFailedResult(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getCommandResultWithResponse("rg1", - "clustername1", "def7b3ea71bd4f7e9d226ddbc0f00ad9", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .getCommandResultWithResponse("rg1", "clustername1", "def7b3ea71bd4f7e9d226ddbc0f00ad9", + com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * RunCommandResultSucceed.json */ /** @@ -34,7 +38,11 @@ public static void commandFailedResult(com.azure.resourcemanager.AzureResourceMa * @param azure The entry point for accessing resource management APIs in Azure. */ public static void commandSucceedResult(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getCommandResultWithResponse("rg1", - "clustername1", "def7b3ea71bd4f7e9d226ddbc0f00ad9", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .getCommandResultWithResponse("rg1", "clustername1", "def7b3ea71bd4f7e9d226ddbc0f00ad9", + com.azure.core.util.Context.NONE); } } 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 9ae80869f674..f71037769001 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshRevisionProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersGet_MeshRevisionProfile.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersGetMeshRevisionProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAMeshRevisionProfileForAMeshMode(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .getMeshRevisionProfileWithResponse("location1", "istio", com.azure.core.util.Context.NONE); } } 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 73765863aa51..ccace69c3669 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersGet_MeshUpgradeProfile.json */ /** @@ -20,7 +20,10 @@ public final class ManagedClustersGetMeshUpgradeProfileSamples { */ public static void getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .getMeshUpgradeProfileWithResponse("rg1", "clustername1", "istio", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java deleted file mode 100644 index ea0bf45426fe..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java +++ /dev/null @@ -1,25 +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.generated; - -/** - * Samples for ManagedClusters GetOSOptions. - */ -public final class ManagedClustersGetOSOptionsSamples { - /* - * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ - * ContainerServiceGetOSOptions.json - */ - /** - * Sample code: Get Container Service OS Options. - * - * @param azure The entry point for accessing resource management APIs in Azure. - */ - public static void getContainerServiceOSOptions(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getOSOptionsWithResponse("location1", - null, com.azure.core.util.Context.NONE); - } -} 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 d7ec31b13149..5d8aa4acf097 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersGetUpgradeProfile.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersGetUpgradeProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getUpgradeProfileForManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().getUpgradeProfileWithResponse("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .getUpgradeProfileWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 89deefceb0a3..fc43075ede67 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersListByResourceGroup.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedClustersByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } 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 ad82f6ddff06..5b641132aa33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterAdminCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersListClusterAdminCredentials.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListClusterAdminCredentialsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .listClusterAdminCredentialsWithResponse("rg1", "clustername1", null, com.azure.core.util.Context.NONE); } } 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 4381738fa649..c187e01862a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersListClusterMonitoringUserCredentials.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .listClusterMonitoringUserCredentialsWithResponse("rg1", "clustername1", null, com.azure.core.util.Context.NONE); } 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 f6d6bf3ef47d..617c5fc6ec47 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersListClusterUserCredentials.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListClusterUserCredentialsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .listClusterUserCredentialsWithResponse("rg1", "clustername1", null, null, com.azure.core.util.Context.NONE); } 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 fd7414b8b41d..600bb96c785a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListKubernetesVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * KubernetesVersions_List.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListKubernetesVersionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listKubernetesVersions(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .listKubernetesVersionsWithResponse("location1", com.azure.core.util.Context.NONE); } } 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 b2c915ac9f6f..387790ab40c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshRevisionProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersList_MeshRevisionProfiles.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListMeshRevisionProfilesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listMeshRevisionProfilesInALocation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().listMeshRevisionProfiles("location1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .listMeshRevisionProfiles("location1", com.azure.core.util.Context.NONE); } } 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 cc582dbf0500..977e994f6c00 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshUpgradeProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersList_MeshUpgradeProfiles.json */ /** @@ -20,7 +20,10 @@ public final class ManagedClustersListMeshUpgradeProfilesSamples { */ public static void listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster( com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().listMeshUpgradeProfiles("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .listMeshUpgradeProfiles("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 4ab0cbeb0d4b..a08212763746 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * OutboundNetworkDependenciesEndpointsList.json */ /** @@ -20,7 +20,10 @@ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSample */ public static void listOutboundNetworkDependenciesEndpointsByManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .listOutboundNetworkDependenciesEndpoints("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 f18ce2fe8d41..81950a093442 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersList.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listManagedClusters(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() .list(com.azure.core.util.Context.NONE); } } 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 877492ac66d1..9a694dbf71cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetAadProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersResetAADProfile.json */ /** @@ -21,9 +21,15 @@ public final class ManagedClustersResetAadProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetAADProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().resetAadProfile("rg1", "clustername1", - new ManagedClusterAadProfile().withClientAppId("clientappid").withServerAppId("serverappid") - .withServerAppSecret("fakeTokenPlaceholder").withTenantId("tenantid"), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .resetAadProfile("rg1", "clustername1", + new ManagedClusterAadProfile().withClientAppId("clientappid") + .withServerAppId("serverappid") + .withServerAppSecret("fakeTokenPlaceholder") + .withTenantId("tenantid"), + com.azure.core.util.Context.NONE); } } 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 c51b31143b1f..21154422de56 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetServicePrincipalProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersResetServicePrincipalProfile.json */ /** @@ -21,9 +21,12 @@ public final class ManagedClustersResetServicePrincipalProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetServicePrincipalProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().resetServicePrincipalProfile("rg1", - "clustername1", - new ManagedClusterServicePrincipalProfile().withClientId("clientid").withSecret("fakeTokenPlaceholder"), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .resetServicePrincipalProfile("rg1", "clustername1", + new ManagedClusterServicePrincipalProfile().withClientId("clientid").withSecret("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } 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 781d659d8fac..d3db15b1abdb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateClusterCertificatesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersRotateClusterCertificates.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersRotateClusterCertificatesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void rotateClusterCertificates(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().rotateClusterCertificates("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .rotateClusterCertificates("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 f46d0243a122..7561f4da4bca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateServiceAccountSigningKeysSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersRotateServiceAccountSigningKeys.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersRotateServiceAccountSigningKeysSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void rotateClusterServiceAccountSigningKeys(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().rotateServiceAccountSigningKeys("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .rotateServiceAccountSigningKeys("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 60f18e339652..b78c8384d811 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersRunCommandSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * RunCommandRequest.json */ /** @@ -21,9 +21,14 @@ public final class ManagedClustersRunCommandSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void submitNewCommand(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().runCommand("rg1", "clustername1", - new RunCommandRequest().withCommand("kubectl apply -f ns.yaml").withContext("") - .withClusterToken("fakeTokenPlaceholder"), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .runCommand("rg1", "clustername1", + new RunCommandRequest().withCommand("kubectl apply -f ns.yaml") + .withContext("") + .withClusterToken("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } 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 1e19c702218d..75044643697f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStartSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersStart.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersStartSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void startManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().start("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .start("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 0c0b2836c807..436d94c81c26 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStopSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersStop.json */ /** @@ -19,7 +19,10 @@ public final class ManagedClustersStopSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().stop("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .stop("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 bdab9efb6c2e..3c442fa1d4d2 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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.containerservice.generated; import com.azure.resourcemanager.containerservice.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -14,17 +15,21 @@ public final class ManagedClustersUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ManagedClustersUpdateTags.json */ /** * Sample code: Update Managed Cluster Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateManagedClusterTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getManagedClusters().updateTags("rg1", "clustername1", - new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getManagedClusters() + .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersCreateOrUpdateSamples.java index 121b4d3ef471..6a022728dc76 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersCreateOrUpdateSamples.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterIdentityProvider; import com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile; import com.azure.resourcemanager.containerservice.models.OpenShiftRouterProfile; + import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -30,32 +31,45 @@ public final class OpenShiftManagedClustersCreateOrUpdateSamples { */ /** * Sample code: Create/Update OpenShift Managed Cluster. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateOpenShiftManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters().createOrUpdate("rg1", - "clustername1", - new OpenShiftManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")).withOpenShiftVersion("v3.11") - .withNetworkProfile(new NetworkProfile().withVnetCidr("10.0.0.0/8")) - .withRouterProfiles(Arrays.asList(new OpenShiftRouterProfile().withName("default"))) - .withMasterPoolProfile(new OpenShiftManagedClusterMasterPoolProfile().withName("master").withCount(3) - .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3).withSubnetCidr("10.0.0.0/24") - .withOsType(OSType.LINUX)) - .withAgentPoolProfiles(Arrays.asList( - new OpenShiftManagedClusterAgentPoolProfile().withName("infra").withCount(2) - .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3).withSubnetCidr("10.0.0.0/24") - .withOsType(OSType.LINUX).withRole(OpenShiftAgentPoolProfileRole.INFRA), - new OpenShiftManagedClusterAgentPoolProfile().withName("compute").withCount(4) - .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3).withSubnetCidr("10.0.0.0/24") - .withOsType(OSType.LINUX).withRole(OpenShiftAgentPoolProfileRole.COMPUTE))) - .withAuthProfile(new OpenShiftManagedClusterAuthProfile().withIdentityProviders( - Arrays.asList(new OpenShiftManagedClusterIdentityProvider().withName("Azure AD") - .withProvider(new OpenShiftManagedClusterAadIdentityProvider().withClientId("clientId") - .withSecret("fakeTokenPlaceholder").withTenantId("tenantId") - .withCustomerAdminGroupId("customerAdminGroupId"))))), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() + .createOrUpdate("rg1", "clustername1", + new OpenShiftManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withOpenShiftVersion("v3.11") + .withNetworkProfile(new NetworkProfile().withVnetCidr("10.0.0.0/8")) + .withRouterProfiles(Arrays.asList(new OpenShiftRouterProfile().withName("default"))) + .withMasterPoolProfile(new OpenShiftManagedClusterMasterPoolProfile().withName("master") + .withCount(3) + .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3) + .withSubnetCidr("10.0.0.0/24") + .withOsType(OSType.LINUX)) + .withAgentPoolProfiles(Arrays.asList( + new OpenShiftManagedClusterAgentPoolProfile().withName("infra") + .withCount(2) + .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3) + .withSubnetCidr("10.0.0.0/24") + .withOsType(OSType.LINUX) + .withRole(OpenShiftAgentPoolProfileRole.INFRA), + new OpenShiftManagedClusterAgentPoolProfile().withName("compute") + .withCount(4) + .withVmSize(OpenShiftContainerServiceVMSize.STANDARD_D4S_V3) + .withSubnetCidr("10.0.0.0/24") + .withOsType(OSType.LINUX) + .withRole(OpenShiftAgentPoolProfileRole.COMPUTE))) + .withAuthProfile(new OpenShiftManagedClusterAuthProfile().withIdentityProviders( + Arrays.asList(new OpenShiftManagedClusterIdentityProvider().withName("Azure AD") + .withProvider(new OpenShiftManagedClusterAadIdentityProvider().withClientId("clientId") + .withSecret("fakeTokenPlaceholder") + .withTenantId("tenantId") + .withCustomerAdminGroupId("customerAdminGroupId"))))), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersDeleteSamples.java index ea87abba4d78..3e385e058f29 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersDeleteSamples.java @@ -19,7 +19,10 @@ public final class OpenShiftManagedClustersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteOpenShiftManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters().delete("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() + .delete("rg1", "clustername1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersGetByResourceGroupSamples.java index ed60cd69a3f2..1cddec0949a5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersGetByResourceGroupSamples.java @@ -19,7 +19,10 @@ public final class OpenShiftManagedClustersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getOpenShiftManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() .getByResourceGroupWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListByResourceGroupSamples.java index 6882c444e93f..d7ef4ef260c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListByResourceGroupSamples.java @@ -19,7 +19,10 @@ public final class OpenShiftManagedClustersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getManagedClustersByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListSamples.java index e203d744e4b1..b44996eec5c9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersListSamples.java @@ -19,7 +19,10 @@ public final class OpenShiftManagedClustersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listManagedClusters(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersUpdateTagsSamples.java index 1d898a29bbf0..1f15be6ff77a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OpenShiftManagedClustersUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.containerservice.generated; import com.azure.resourcemanager.containerservice.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -19,13 +20,16 @@ public final class OpenShiftManagedClustersUpdateTagsSamples { */ /** * Sample code: Update OpenShift Managed Cluster Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateOpenShiftManagedClusterTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getOpenShiftManagedClusters().updateTags("rg1", - "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getOpenShiftManagedClusters() + .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java index 119772bba899..74227ee84619 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-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 4a33cadc393a..8330fbb3bd33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * PrivateEndpointConnectionsDelete.json */ /** @@ -19,7 +19,10 @@ public final class PrivateEndpointConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getPrivateEndpointConnections().delete("rg1", - "clustername1", "privateendpointconnection1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getPrivateEndpointConnections() + .delete("rg1", "clustername1", "privateendpointconnection1", com.azure.core.util.Context.NONE); } } 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 943d35c5fa15..e4788e0b0f19 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * PrivateEndpointConnectionsGet.json */ /** @@ -19,7 +19,10 @@ public final class PrivateEndpointConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getPrivateEndpointConnections().getWithResponse("rg1", - "clustername1", "privateendpointconnection1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getPrivateEndpointConnections() + .getWithResponse("rg1", "clustername1", "privateendpointconnection1", com.azure.core.util.Context.NONE); } } 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 ed5b31f64c55..37bb9da1cc0c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * PrivateEndpointConnectionsList.json */ /** @@ -20,7 +20,10 @@ public final class PrivateEndpointConnectionsListSamples { */ public static void listPrivateEndpointConnectionsByManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getPrivateEndpointConnections().listWithResponse("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getPrivateEndpointConnections() + .listWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 5ca5df5db330..647565571417 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -14,7 +14,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * PrivateEndpointConnectionsUpdate.json */ /** @@ -23,10 +23,13 @@ public final class PrivateEndpointConnectionsUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updatePrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getPrivateEndpointConnections().updateWithResponse("rg1", - "clustername1", "privateendpointconnection1", - new PrivateEndpointConnectionInner().withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED)), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getPrivateEndpointConnections() + .updateWithResponse("rg1", "clustername1", "privateendpointconnection1", + new PrivateEndpointConnectionInner().withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED)), + com.azure.core.util.Context.NONE); } } 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 0ecf3c36eeba..4fe556c1e3d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * PrivateLinkResourcesList.json */ /** @@ -19,7 +19,10 @@ public final class PrivateLinkResourcesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPrivateLinkResourcesByManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getPrivateLinkResources().listWithResponse("rg1", - "clustername1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getPrivateLinkResources() + .listWithResponse("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 ca84fac3aabb..7aad05c6946f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java @@ -12,7 +12,7 @@ public final class ResolvePrivateLinkServiceIdPostSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * ResolvePrivateLinkServiceId.json */ /** @@ -22,7 +22,11 @@ public final class ResolvePrivateLinkServiceIdPostSamples { */ public static void resolveThePrivateLinkServiceIDForManagedCluster(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getResolvePrivateLinkServiceIds().postWithResponse("rg1", - "clustername1", new PrivateLinkResourceInner().withName("management"), com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getResolvePrivateLinkServiceIds() + .postWithResponse("rg1", "clustername1", new PrivateLinkResourceInner().withName("management"), + com.azure.core.util.Context.NONE); } } 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 a1978aca464f..4b3fcca27ee1 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 @@ -6,6 +6,7 @@ import com.azure.resourcemanager.containerservice.fluent.models.SnapshotInner; import com.azure.resourcemanager.containerservice.models.CreationData; + import java.util.HashMap; import java.util.Map; @@ -15,16 +16,19 @@ public final class SnapshotsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * SnapshotsCreate.json */ /** * Sample code: Create/Update Snapshot. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createUpdateSnapshot(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getSnapshots() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getSnapshots() .createOrUpdateWithResponse("rg1", "snapshot1", new SnapshotInner().withLocation("westus") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withCreationData(new CreationData().withSourceResourceId( 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 4ccedb8d999d..04599fc8eb27 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * SnapshotsDelete.json */ /** @@ -19,7 +19,10 @@ public final class SnapshotsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteSnapshot(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getSnapshots().deleteWithResponse("rg1", "snapshot1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getSnapshots() + .deleteWithResponse("rg1", "snapshot1", com.azure.core.util.Context.NONE); } } 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 5069b7016966..be058a0047a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * SnapshotsGet.json */ /** @@ -19,7 +19,10 @@ public final class SnapshotsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSnapshot(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getSnapshots().getByResourceGroupWithResponse("rg1", - "snapshot1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getSnapshots() + .getByResourceGroupWithResponse("rg1", "snapshot1", com.azure.core.util.Context.NONE); } } 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 59bc71727d07..65fa77ae4747 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * SnapshotsListByResourceGroup.json */ /** @@ -19,7 +19,10 @@ public final class SnapshotsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listSnapshotsByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getSnapshots().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getSnapshots() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } 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 6ac1826a42c5..09b07ac17d18 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-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 0ca5221fdf5a..8840e46f14fe 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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.containerservice.generated; import com.azure.resourcemanager.containerservice.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -14,18 +15,22 @@ public final class SnapshotsUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * SnapshotsUpdateTags.json */ /** * Sample code: Update Snapshot Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateSnapshotTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getSnapshots().updateTagsWithResponse("rg1", "snapshot1", - new TagsObject().withTags(mapOf("key2", "fakeTokenPlaceholder", "key3", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getSnapshots() + .updateTagsWithResponse("rg1", "snapshot1", + new TagsObject().withTags(mapOf("key2", "fakeTokenPlaceholder", "key3", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java index 697ed9b8fd7a..30a23c291dc7 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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.containerservice.generated; import com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleBindingInner; + import java.util.Arrays; /** @@ -13,16 +14,19 @@ public final class TrustedAccessRoleBindingsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * TrustedAccessRoleBindings_CreateOrUpdate.json */ /** * Sample code: Create or update a trusted access role binding. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createOrUpdateATrustedAccessRoleBinding(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getTrustedAccessRoleBindings() + azure.kubernetesClusters() + .manager() + .serviceClient() + .getTrustedAccessRoleBindings() .createOrUpdate("rg1", "clustername1", "binding1", new TrustedAccessRoleBindingInner().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c") .withRoles(Arrays.asList("Microsoft.MachineLearningServices/workspaces/reader", 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 bf52f306416c..e1afd38e6d1f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * TrustedAccessRoleBindings_Delete.json */ /** @@ -19,7 +19,10 @@ public final class TrustedAccessRoleBindingsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteATrustedAccessRoleBinding(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getTrustedAccessRoleBindings().delete("rg1", - "clustername1", "binding1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getTrustedAccessRoleBindings() + .delete("rg1", "clustername1", "binding1", com.azure.core.util.Context.NONE); } } 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 2655f930cb0b..d7158fbec609 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * TrustedAccessRoleBindings_Get.json */ /** @@ -19,7 +19,10 @@ public final class TrustedAccessRoleBindingsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getATrustedAccessRoleBinding(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getTrustedAccessRoleBindings().getWithResponse("rg1", - "clustername1", "binding1", com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getTrustedAccessRoleBindings() + .getWithResponse("rg1", "clustername1", "binding1", com.azure.core.util.Context.NONE); } } 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 f54ca1fba8d8..b5b992fe1767 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * TrustedAccessRoleBindings_List.json */ /** @@ -19,7 +19,10 @@ public final class TrustedAccessRoleBindingsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listTrustedAccessRoleBindings(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getTrustedAccessRoleBindings().list("rg1", "clustername1", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getTrustedAccessRoleBindings() + .list("rg1", "clustername1", com.azure.core.util.Context.NONE); } } 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 b0a283c9bbf3..6d242a949bd9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRolesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-02-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-05-01/examples/ * TrustedAccessRoles_List.json */ /** @@ -19,7 +19,10 @@ public final class TrustedAccessRolesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listTrustedAccessRoles(com.azure.resourcemanager.AzureResourceManager azure) { - azure.kubernetesClusters().manager().serviceClient().getTrustedAccessRoles().list("westus2", - com.azure.core.util.Context.NONE); + azure.kubernetesClusters() + .manager() + .serviceClient() + .getTrustedAccessRoles() + .list("westus2", com.azure.core.util.Context.NONE); } }