From 7ed459579feaa0678ff9292241ad21bf53e50b46 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 11 May 2022 23:44:37 +0000 Subject: [PATCH] CodeGen from PR 19005 in Azure/azure-rest-api-specs Merge 17b1af5ee0bd8edda698b74406bd216c3708f67d into e515b6251fdc21015282d2e84b85beec7c091763 --- .../CHANGELOG.md | 4 +- .../README.md | 2 +- .../ContainerAppsApiManager.java | 2 +- .../fluent/CertificatesClient.java | 60 +-- .../ContainerAppsAuthConfigsClient.java | 25 +- .../fluent/ContainerAppsClient.java | 68 ++-- .../ContainerAppsRevisionReplicasClient.java | 8 +- .../fluent/ContainerAppsRevisionsClient.java | 32 +- .../ContainerAppsSourceControlsClient.java | 47 ++- .../fluent/DaprComponentsClient.java | 36 +- .../fluent/ManagedEnvironmentsClient.java | 57 +-- .../ManagedEnvironmentsStoragesClient.java | 50 +-- .../fluent/NamespacesClient.java | 10 +- .../implementation/AuthConfigImpl.java | 22 +- .../implementation/CertificateImpl.java | 28 +- .../CertificatesClientImpl.java | 364 +++++++++--------- .../implementation/CertificatesImpl.java | 65 ++-- .../implementation/ContainerAppImpl.java | 34 +- .../ContainerAppsAuthConfigsClientImpl.java | 127 +++--- .../ContainerAppsAuthConfigsImpl.java | 40 +- .../ContainerAppsClientImpl.java | 321 +++++++-------- .../implementation/ContainerAppsImpl.java | 58 +-- ...ntainerAppsRevisionReplicasClientImpl.java | 43 ++- .../ContainerAppsRevisionReplicasImpl.java | 10 +- .../ContainerAppsRevisionsClientImpl.java | 169 ++++---- .../ContainerAppsRevisionsImpl.java | 38 +- ...ContainerAppsSourceControlsClientImpl.java | 217 ++++++----- .../ContainerAppsSourceControlsImpl.java | 40 +- .../implementation/DaprComponentImpl.java | 26 +- .../DaprComponentsClientImpl.java | 179 +++++---- .../implementation/DaprComponentsImpl.java | 49 +-- .../ManagedEnvironmentImpl.java | 18 +- .../ManagedEnvironmentStorageImpl.java | 29 +- .../ManagedEnvironmentsClientImpl.java | 304 ++++++++------- .../ManagedEnvironmentsImpl.java | 51 +-- ...ManagedEnvironmentsStoragesClientImpl.java | 268 +++++++------ .../ManagedEnvironmentsStoragesImpl.java | 66 ++-- .../implementation/NamespacesClientImpl.java | 52 +-- .../implementation/NamespacesImpl.java | 10 +- .../implementation/SourceControlImpl.java | 20 +- .../appcontainers/models/Certificate.java | 6 +- .../appcontainers/models/Certificates.java | 32 +- .../appcontainers/models/ContainerApp.java | 24 ++ .../appcontainers/models/ContainerApps.java | 35 +- .../models/ContainerAppsAuthConfigs.java | 17 +- .../models/ContainerAppsRevisionReplicas.java | 8 +- .../models/ContainerAppsRevisions.java | 32 +- .../models/ContainerAppsSourceControls.java | 16 +- .../appcontainers/models/DaprComponents.java | 25 +- .../models/ManagedEnvironmentStorage.java | 6 +- .../models/ManagedEnvironments.java | 26 +- .../models/ManagedEnvironmentsStorages.java | 33 +- .../appcontainers/models/Namespaces.java | 10 +- 53 files changed, 1774 insertions(+), 1545 deletions(-) diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md index df7bc59abf64..8c3bf931273c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-05-11) + +- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md index b0ca9f7388c7..c456e0cf3e79 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-appcontainers - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java index c33a48ccf429..264a8f2bec65 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java @@ -243,7 +243,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro .append("-") .append("com.azure.resourcemanager.appcontainers") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java index 31418f533203..32178bc86902 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java @@ -18,7 +18,7 @@ public interface CertificatesClient { * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -26,13 +26,13 @@ public interface CertificatesClient { * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String managedEnvironmentName); + PagedIterable list(String resourceGroupName, String environmentName); /** * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -41,14 +41,14 @@ public interface CertificatesClient { * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context); + PagedIterable list(String resourceGroupName, String environmentName, Context context); /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -56,14 +56,14 @@ public interface CertificatesClient { * @return the specified Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name); + CertificateInner get(String resourceGroupName, String environmentName, String certificateName); /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -73,14 +73,14 @@ public interface CertificatesClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context); + String resourceGroupName, String environmentName, String certificateName, Context context); /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -88,14 +88,14 @@ Response getWithResponse( * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment. */ @ServiceMethod(returns = ReturnType.SINGLE) - CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name); + CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName); /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -108,8 +108,8 @@ Response getWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificateInner certificateEnvelope, Context context); @@ -117,22 +117,22 @@ Response createOrUpdateWithResponse( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String managedEnvironmentName, String name); + void delete(String resourceGroupName, String environmentName, String certificateName); /** * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -142,14 +142,14 @@ Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context); + String resourceGroupName, String environmentName, String certificateName, Context context); /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -159,14 +159,14 @@ Response deleteWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) CertificateInner update( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope); + String resourceGroupName, String environmentName, String certificateName, CertificatePatch certificateEnvelope); /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -179,8 +179,8 @@ CertificateInner update( @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificatePatch certificateEnvelope, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java index 8cc9c4ccd368..fc004e8352b8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java @@ -48,7 +48,7 @@ PagedIterable listByContainerApp( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -56,14 +56,14 @@ PagedIterable listByContainerApp( * @return a AuthConfig of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - AuthConfigInner get(String resourceGroupName, String containerAppName, String name); + AuthConfigInner get(String resourceGroupName, String containerAppName, String authConfigName); /** * Get a AuthConfig of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -73,14 +73,14 @@ PagedIterable listByContainerApp( */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String authConfigName, Context context); /** * Description for Create or update the AuthConfig for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -90,14 +90,14 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) AuthConfigInner createOrUpdate( - String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope); + String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope); /** * Description for Create or update the AuthConfig for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,7 +111,7 @@ AuthConfigInner createOrUpdate( Response createOrUpdateWithResponse( String resourceGroupName, String containerAppName, - String name, + String authConfigName, AuthConfigInner authConfigEnvelope, Context context); @@ -120,21 +120,21 @@ Response createOrUpdateWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String containerAppName, String name); + void delete(String resourceGroupName, String containerAppName, String authConfigName); /** * Description for Delete a Container App AuthConfig. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -143,5 +143,6 @@ Response createOrUpdateWithResponse( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String containerAppName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String containerAppName, String authConfigName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java index c0455c7ca570..a7bd32ff0247 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java @@ -72,20 +72,20 @@ public interface ContainerAppsClient { * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContainerAppInner getByResourceGroup(String resourceGroupName, String name); + ContainerAppInner getByResourceGroup(String resourceGroupName, String containerAppName); /** * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @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. @@ -93,13 +93,14 @@ public interface ContainerAppsClient { * @return the properties of a Container App along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context); + Response getByResourceGroupWithResponse( + String resourceGroupName, String containerAppName, Context context); /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -109,13 +110,13 @@ public interface ContainerAppsClient { */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ContainerAppInner> beginCreateOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope); /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,13 +127,13 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ContainerAppInner> beginCreateOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context); /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -141,13 +142,14 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate * @return container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContainerAppInner createOrUpdate(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope); + ContainerAppInner createOrUpdate( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope); /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -158,13 +160,13 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate */ @ServiceMethod(returns = ReturnType.SINGLE) ContainerAppInner createOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -172,13 +174,13 @@ ContainerAppInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String name); + SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -187,26 +189,26 @@ ContainerAppInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, Context context); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String name); + void delete(String resourceGroupName, String containerAppName); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -214,13 +216,13 @@ ContainerAppInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String name, Context context); + void delete(String resourceGroupName, String containerAppName, Context context); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -230,13 +232,13 @@ ContainerAppInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -247,13 +249,13 @@ SyncPoller, Void> beginUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -261,13 +263,13 @@ SyncPoller, Void> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope); + void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,7 +278,8 @@ SyncPoller, Void> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context); + void update( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context); /** * Analyzes a custom hostname for a Container App. @@ -313,7 +316,7 @@ Response listCustomHostnameAnalysisWithRespon * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -321,13 +324,13 @@ Response listCustomHostnameAnalysisWithRespon * @return container App Secrets Collection ARM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecretsCollectionInner listSecrets(String resourceGroupName, String name); + SecretsCollectionInner listSecrets(String resourceGroupName, String containerAppName); /** * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -336,5 +339,6 @@ Response listCustomHostnameAnalysisWithRespon * @return container App Secrets Collection ARM resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listSecretsWithResponse(String resourceGroupName, String name, Context context); + Response listSecretsWithResponse( + String resourceGroupName, String containerAppName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java index 7e302a5a4788..33cedc706bc7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java @@ -19,7 +19,7 @@ public interface ContainerAppsRevisionReplicasClient { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -27,7 +27,7 @@ public interface ContainerAppsRevisionReplicasClient { * @return a replica for a Container App Revision. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner getReplica(String resourceGroupName, String containerAppName, String revisionName, String name); + ReplicaInner getReplica(String resourceGroupName, String containerAppName, String revisionName, String replicaName); /** * Get a replica for a Container App Revision. @@ -35,7 +35,7 @@ public interface ContainerAppsRevisionReplicasClient { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -45,7 +45,7 @@ public interface ContainerAppsRevisionReplicasClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response getReplicaWithResponse( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context); /** * List replicas for a Container App Revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java index ec91000bad4c..c5255955c77a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java @@ -49,7 +49,7 @@ PagedIterable listRevisions( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -57,14 +57,14 @@ PagedIterable listRevisions( * @return a revision of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - RevisionInner getRevision(String resourceGroupName, String containerAppName, String name); + RevisionInner getRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Get a revision of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -74,28 +74,28 @@ PagedIterable listRevisions( */ @ServiceMethod(returns = ReturnType.SINGLE) Response getRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Activates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void activateRevision(String resourceGroupName, String containerAppName, String name); + void activateRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Activates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -105,28 +105,28 @@ Response getRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response activateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Deactivates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deactivateRevision(String resourceGroupName, String containerAppName, String name); + void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Deactivates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -136,28 +136,28 @@ Response activateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response deactivateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Restarts a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void restartRevision(String resourceGroupName, String containerAppName, String name); + void restartRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Restarts a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -167,5 +167,5 @@ Response deactivateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response restartRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java index 2ad98007dcbb..225727ccac1b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java @@ -52,7 +52,7 @@ PagedIterable listByContainerApp( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -60,14 +60,14 @@ PagedIterable listByContainerApp( * @return a SourceControl of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - SourceControlInner get(String resourceGroupName, String containerAppName, String name); + SourceControlInner get(String resourceGroupName, String containerAppName, String sourceControlName); /** * Get a SourceControl of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -77,14 +77,14 @@ PagedIterable listByContainerApp( */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String sourceControlName, Context context); /** * Description for Create or update the SourceControl for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -94,14 +94,17 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SourceControlInner> beginCreateOrUpdate( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope); + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope); /** * Description for Create or update the SourceControl for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -114,7 +117,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda SyncPoller, SourceControlInner> beginCreateOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context); @@ -123,7 +126,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -133,14 +136,17 @@ SyncPoller, SourceControlInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.SINGLE) SourceControlInner createOrUpdate( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope); + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope); /** * Description for Create or update the SourceControl for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -153,7 +159,7 @@ SourceControlInner createOrUpdate( SourceControlInner createOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context); @@ -162,7 +168,7 @@ SourceControlInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -170,14 +176,15 @@ SourceControlInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String name); + SyncPoller, Void> beginDelete( + String resourceGroupName, String containerAppName, String sourceControlName); /** * Description for Delete a Container App SourceControl. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -187,28 +194,28 @@ SourceControlInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String sourceControlName, Context context); /** * Description for Delete a Container App SourceControl. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String containerAppName, String name); + void delete(String resourceGroupName, String containerAppName, String sourceControlName); /** * Description for Delete a Container App SourceControl. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -216,5 +223,5 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String containerAppName, String name, Context context); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java index 4147f026ca8c..5a659b7517d8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java @@ -48,7 +48,7 @@ public interface DaprComponentsClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -56,14 +56,14 @@ public interface DaprComponentsClient { * @return a dapr component. */ @ServiceMethod(returns = ReturnType.SINGLE) - DaprComponentInner get(String resourceGroupName, String environmentName, String name); + DaprComponentInner get(String resourceGroupName, String environmentName, String componentName); /** * Get a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -73,14 +73,14 @@ public interface DaprComponentsClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); /** * Creates or updates a Dapr Component in a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -90,14 +90,17 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) DaprComponentInner createOrUpdate( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope); + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope); /** * Creates or updates a Dapr Component in a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +113,7 @@ DaprComponentInner createOrUpdate( Response createOrUpdateWithResponse( String resourceGroupName, String environmentName, - String name, + String componentName, DaprComponentInner daprComponentEnvelope, Context context); @@ -119,21 +122,21 @@ Response createOrUpdateWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String environmentName, String name); + void delete(String resourceGroupName, String environmentName, String componentName); /** * Delete a Dapr Component from a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -142,14 +145,15 @@ Response createOrUpdateWithResponse( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String environmentName, String componentName, Context context); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -157,14 +161,14 @@ Response createOrUpdateWithResponse( * @return dapr component Secrets Collection ARM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name); + DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String componentName); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -174,5 +178,5 @@ Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java index 352a540410fd..338dd07ce2e9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java @@ -70,7 +70,7 @@ public interface ManagedEnvironmentsClient { * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -78,13 +78,13 @@ public interface ManagedEnvironmentsClient { * @return the properties of a Managed Environment used to host container apps. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String name); + ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String environmentName); /** * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -94,13 +94,13 @@ public interface ManagedEnvironmentsClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context); + String resourceGroupName, String environmentName, Context context); /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -110,13 +110,13 @@ Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope); /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,13 +127,13 @@ SyncPoller, ManagedEnvironmentInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context); /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -143,13 +143,13 @@ SyncPoller, ManagedEnvironmentInner> beginCr */ @ServiceMethod(returns = ReturnType.SINGLE) ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope); /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -160,13 +160,13 @@ ManagedEnvironmentInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -174,13 +174,13 @@ ManagedEnvironmentInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String name); + SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -189,26 +189,26 @@ ManagedEnvironmentInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, Context context); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String name); + void delete(String resourceGroupName, String environmentName); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -216,13 +216,13 @@ ManagedEnvironmentInner createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String name, Context context); + void delete(String resourceGroupName, String environmentName, Context context); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -232,13 +232,13 @@ ManagedEnvironmentInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,13 +249,13 @@ SyncPoller, Void> beginUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -263,13 +263,13 @@ SyncPoller, Void> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope); + void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -278,5 +278,6 @@ SyncPoller, Void> beginUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context); + void update( + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java index 8d7fac32d847..02cea5645fd7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java @@ -17,7 +17,7 @@ public interface ManagedEnvironmentsStoragesClient { * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -25,13 +25,13 @@ public interface ManagedEnvironmentsStoragesClient { * @return all storages for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String envName); + ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String environmentName); /** * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -41,14 +41,14 @@ public interface ManagedEnvironmentsStoragesClient { */ @ServiceMethod(returns = ReturnType.SINGLE) Response listWithResponse( - String resourceGroupName, String envName, Context context); + String resourceGroupName, String environmentName, Context context); /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -56,14 +56,14 @@ Response listWithResponse( * @return storage for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedEnvironmentStorageInner get(String resourceGroupName, String envName, String name); + ManagedEnvironmentStorageInner get(String resourceGroupName, String environmentName, String storageName); /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -73,14 +73,14 @@ Response listWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( - String resourceGroupName, String envName, String name, Context context); + String resourceGroupName, String environmentName, String storageName, Context context); /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -90,14 +90,17 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) ManagedEnvironmentStorageInner createOrUpdate( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope); + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope); /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,8 +112,8 @@ ManagedEnvironmentStorageInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( String resourceGroupName, - String envName, - String name, + String environmentName, + String storageName, ManagedEnvironmentStorageInner storageEnvelope, Context context); @@ -118,22 +121,22 @@ Response createOrUpdateWithResponse( * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String envName, String name); + void delete(String resourceGroupName, String environmentName, String storageName); /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -142,5 +145,6 @@ Response createOrUpdateWithResponse( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String environmentName, String storageName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java index 7c907d58a42b..1a0dc5841f94 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java @@ -17,7 +17,7 @@ public interface NamespacesClient { * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -27,15 +27,13 @@ public interface NamespacesClient { */ @ServiceMethod(returns = ReturnType.SINGLE) CheckNameAvailabilityResponseInner checkNameAvailability( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest); + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest); /** * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +45,7 @@ CheckNameAvailabilityResponseInner checkNameAvailability( @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java index 7046b2bbef04..f56fd1159a72 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java @@ -62,7 +62,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String containerAppName; - private String name; + private String authConfigName; public AuthConfigImpl withExistingContainerApp(String resourceGroupName, String containerAppName) { this.resourceGroupName = resourceGroupName; @@ -75,7 +75,8 @@ public AuthConfig create() { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, containerAppName, authConfigName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -85,7 +86,8 @@ public AuthConfig create(Context context) { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, containerAppName, authConfigName, this.innerModel(), context) .getValue(); return this; } @@ -93,7 +95,7 @@ public AuthConfig create(Context context) { AuthConfigImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new AuthConfigInner(); this.serviceManager = serviceManager; - this.name = name; + this.authConfigName = name; } public AuthConfigImpl update() { @@ -105,7 +107,8 @@ public AuthConfig apply() { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, containerAppName, authConfigName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -115,7 +118,8 @@ public AuthConfig apply(Context context) { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, containerAppName, authConfigName, this.innerModel(), context) .getValue(); return this; } @@ -126,7 +130,7 @@ public AuthConfig apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.containerAppName = Utils.getValueFromIdByName(innerObject.id(), "containerApps"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "authConfigs"); + this.authConfigName = Utils.getValueFromIdByName(innerObject.id(), "authConfigs"); } public AuthConfig refresh() { @@ -134,7 +138,7 @@ public AuthConfig refresh() { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE) + .getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE) .getValue(); return this; } @@ -144,7 +148,7 @@ public AuthConfig refresh(Context context) { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .getWithResponse(resourceGroupName, containerAppName, name, context) + .getWithResponse(resourceGroupName, containerAppName, authConfigName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java index ec63db7d4017..29c9315863cd 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java @@ -70,15 +70,15 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String managedEnvironmentName; + private String environmentName; - private String name; + private String certificateName; private CertificatePatch updateCertificateEnvelope; - public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName) { + public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; - this.managedEnvironmentName = managedEnvironmentName; + this.environmentName = environmentName; return this; } @@ -88,7 +88,7 @@ public Certificate create() { .serviceClient() .getCertificates() .createOrUpdateWithResponse( - resourceGroupName, managedEnvironmentName, name, this.innerModel(), Context.NONE) + resourceGroupName, environmentName, certificateName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -98,7 +98,8 @@ public Certificate create(Context context) { serviceManager .serviceClient() .getCertificates() - .createOrUpdateWithResponse(resourceGroupName, managedEnvironmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, certificateName, this.innerModel(), context) .getValue(); return this; } @@ -106,7 +107,7 @@ public Certificate create(Context context) { CertificateImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new CertificateInner(); this.serviceManager = serviceManager; - this.name = name; + this.certificateName = name; } public CertificateImpl update() { @@ -120,7 +121,7 @@ public Certificate apply() { .serviceClient() .getCertificates() .updateWithResponse( - resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, Context.NONE) + resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE) .getValue(); return this; } @@ -130,7 +131,8 @@ public Certificate apply(Context context) { serviceManager .serviceClient() .getCertificates() - .updateWithResponse(resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, context) + .updateWithResponse( + resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, context) .getValue(); return this; } @@ -140,8 +142,8 @@ public Certificate apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.managedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "certificates"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "certificates"); } public Certificate refresh() { @@ -149,7 +151,7 @@ public Certificate refresh() { serviceManager .serviceClient() .getCertificates() - .getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE) .getValue(); return this; } @@ -159,7 +161,7 @@ public Certificate refresh(Context context) { serviceManager .serviceClient() .getCertificates() - .getWithResponse(resourceGroupName, managedEnvironmentName, name, context) + .getWithResponse(resourceGroupName, environmentName, certificateName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java index b4d7f53d0142..fbf023d7dca5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java @@ -64,14 +64,14 @@ private interface CertificatesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates") + + "/managedEnvironments/{environmentName}/certificates") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -79,15 +79,15 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -95,15 +95,15 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CertificateInner certificateEnvelope, @HeaderParam("Accept") String accept, @@ -112,15 +112,15 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -128,15 +128,15 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Patch( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> update( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CertificatePatch certificateEnvelope, @HeaderParam("Accept") String accept, @@ -157,7 +157,7 @@ Mono> listNext( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -166,7 +166,7 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( - String resourceGroupName, String managedEnvironmentName) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -183,10 +183,9 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -197,7 +196,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), accept, context)) @@ -217,7 +216,7 @@ private Mono> listSinglePageAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -227,7 +226,7 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( - String resourceGroupName, String managedEnvironmentName, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -244,10 +243,9 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -256,7 +254,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), accept, context) @@ -275,16 +273,16 @@ private Mono> listSinglePageAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String managedEnvironmentName) { + private PagedFlux listAsync(String resourceGroupName, String environmentName) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName), + () -> listSinglePageAsync(resourceGroupName, environmentName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -292,7 +290,7 @@ private PagedFlux listAsync(String resourceGroupName, String m * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -300,10 +298,9 @@ private PagedFlux listAsync(String resourceGroupName, String m * @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String managedEnvironmentName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String environmentName, Context context) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName, context), + () -> listSinglePageAsync(resourceGroupName, environmentName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -311,22 +308,22 @@ private PagedFlux listAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String managedEnvironmentName) { - return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName)); + public PagedIterable list(String resourceGroupName, String environmentName) { + return new PagedIterable<>(listAsync(resourceGroupName, environmentName)); } /** * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -334,17 +331,16 @@ public PagedIterable list(String resourceGroupName, String man * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String managedEnvironmentName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName, context)); + public PagedIterable list(String resourceGroupName, String environmentName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, environmentName, context)); } /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -352,7 +348,7 @@ public PagedIterable list( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -369,13 +365,13 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -386,8 +382,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context)) @@ -398,8 +394,8 @@ private Mono> getWithResponseAsync( * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -408,7 +404,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { + String resourceGroupName, String environmentName, String certificateName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -425,13 +421,13 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -440,8 +436,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context); @@ -451,16 +447,16 @@ private Mono> getWithResponseAsync( * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String managedEnvironmentName, String name) { - return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name) + private Mono getAsync(String resourceGroupName, String environmentName, String certificateName) { + return getWithResponseAsync(resourceGroupName, environmentName, certificateName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -475,24 +471,24 @@ private Mono getAsync(String resourceGroupName, String managed * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name) { - return getAsync(resourceGroupName, managedEnvironmentName, name).block(); + public CertificateInner get(String resourceGroupName, String environmentName, String certificateName) { + return getAsync(resourceGroupName, environmentName, certificateName).block(); } /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -501,16 +497,16 @@ public CertificateInner get(String resourceGroupName, String managedEnvironmentN */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block(); + String resourceGroupName, String environmentName, String certificateName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, certificateName, context).block(); } /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -520,7 +516,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) { + String resourceGroupName, + String environmentName, + String certificateName, + CertificateInner certificateEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -537,13 +536,13 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope != null) { certificateEnvelope.validate(); @@ -557,8 +556,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -570,8 +569,8 @@ private Mono> createOrUpdateWithResponseAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -583,8 +582,8 @@ private Mono> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificateInner certificateEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -603,13 +602,13 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope != null) { certificateEnvelope.validate(); @@ -621,8 +620,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -633,8 +632,8 @@ private Mono> createOrUpdateWithResponseAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -644,8 +643,11 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + String resourceGroupName, + String environmentName, + String certificateName, + CertificateInner certificateEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -660,8 +662,8 @@ private Mono createOrUpdateAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -670,9 +672,9 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { final CertificateInner certificateEnvelope = null; - return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -687,25 +689,25 @@ private Mono createOrUpdateAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name) { + public CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName) { final CertificateInner certificateEnvelope = null; - return createOrUpdateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block(); + return createOrUpdateAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope).block(); } /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -717,12 +719,12 @@ public CertificateInner createOrUpdate(String resourceGroupName, String managedE @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificateInner certificateEnvelope, Context context) { return createOrUpdateWithResponseAsync( - resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context) + resourceGroupName, environmentName, certificateName, certificateEnvelope, context) .block(); } @@ -730,8 +732,8 @@ public Response createOrUpdateWithResponse( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -739,7 +741,7 @@ public Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -756,13 +758,13 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -773,8 +775,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context)) @@ -785,8 +787,8 @@ private Mono> deleteWithResponseAsync( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -795,7 +797,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { + String resourceGroupName, String environmentName, String certificateName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -812,13 +814,13 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -827,8 +829,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context); @@ -838,16 +840,16 @@ private Mono> deleteWithResponseAsync( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String managedEnvironmentName, String name) { - return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name) + private Mono deleteAsync(String resourceGroupName, String environmentName, String certificateName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName) .flatMap((Response res) -> Mono.empty()); } @@ -855,23 +857,23 @@ private Mono deleteAsync(String resourceGroupName, String managedEnvironme * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String managedEnvironmentName, String name) { - deleteAsync(resourceGroupName, managedEnvironmentName, name).block(); + public void delete(String resourceGroupName, String environmentName, String certificateName) { + deleteAsync(resourceGroupName, environmentName, certificateName).block(); } /** * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -880,16 +882,16 @@ public void delete(String resourceGroupName, String managedEnvironmentName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block(); + String resourceGroupName, String environmentName, String certificateName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName, context).block(); } /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -899,7 +901,10 @@ public Response deleteWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -916,13 +921,13 @@ private Mono> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope == null) { return Mono @@ -939,8 +944,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -952,8 +957,8 @@ private Mono> updateWithResponseAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -965,8 +970,8 @@ private Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificatePatch certificateEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -985,13 +990,13 @@ private Mono> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope == null) { return Mono @@ -1006,8 +1011,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -1018,8 +1023,8 @@ private Mono> updateWithResponseAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1029,8 +1034,11 @@ private Mono> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { - return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { + return updateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -1045,8 +1053,8 @@ private Mono updateAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1055,16 +1063,19 @@ private Mono updateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public CertificateInner update( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { - return updateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block(); + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { + return updateAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope).block(); } /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1076,11 +1087,12 @@ public CertificateInner update( @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificatePatch certificateEnvelope, Context context) { - return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context) + return updateWithResponseAsync( + resourceGroupName, environmentName, certificateName, certificateEnvelope, context) .block(); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java index 3259b8bfdb39..a90933faa056 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java @@ -28,19 +28,18 @@ public CertificatesImpl( this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroupName, String managedEnvironmentName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, managedEnvironmentName); + public PagedIterable list(String resourceGroupName, String environmentName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, environmentName); return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager())); } - public PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, managedEnvironmentName, context); + public PagedIterable list(String resourceGroupName, String environmentName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, environmentName, context); return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager())); } - public Certificate get(String resourceGroupName, String managedEnvironmentName, String name) { - CertificateInner inner = this.serviceClient().get(resourceGroupName, managedEnvironmentName, name); + public Certificate get(String resourceGroupName, String environmentName, String certificateName) { + CertificateInner inner = this.serviceClient().get(resourceGroupName, environmentName, certificateName); if (inner != null) { return new CertificateImpl(inner, this.manager()); } else { @@ -49,9 +48,9 @@ public Certificate get(String resourceGroupName, String managedEnvironmentName, } public Response getWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { + String resourceGroupName, String environmentName, String certificateName, Context context) { Response inner = - this.serviceClient().getWithResponse(resourceGroupName, managedEnvironmentName, name, context); + this.serviceClient().getWithResponse(resourceGroupName, environmentName, certificateName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -63,13 +62,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String managedEnvironmentName, String name) { - this.serviceClient().delete(resourceGroupName, managedEnvironmentName, name); + public void delete(String resourceGroupName, String environmentName, String certificateName) { + this.serviceClient().delete(resourceGroupName, environmentName, certificateName); } public Response deleteWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, managedEnvironmentName, name, context); + String resourceGroupName, String environmentName, String certificateName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, certificateName, context); } public Certificate getById(String id) { @@ -81,8 +80,8 @@ public Certificate getById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (managedEnvironmentName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -90,14 +89,14 @@ public Certificate getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "certificates"); - if (name == null) { + String certificateName = Utils.getValueFromIdByName(id, "certificates"); + if (certificateName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - return this.getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -109,8 +108,8 @@ public Response getByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (managedEnvironmentName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -118,14 +117,14 @@ public Response getByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "certificates"); - if (name == null) { + String certificateName = Utils.getValueFromIdByName(id, "certificates"); + if (certificateName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - return this.getWithResponse(resourceGroupName, managedEnvironmentName, name, context); + return this.getWithResponse(resourceGroupName, environmentName, certificateName, context); } public void deleteById(String id) { @@ -137,8 +136,8 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (managedEnvironmentName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -146,14 +145,14 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "certificates"); - if (name == null) { + String certificateName = Utils.getValueFromIdByName(id, "certificates"); + if (certificateName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - this.deleteWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE); + this.deleteWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -165,8 +164,8 @@ public Response deleteByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (managedEnvironmentName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -174,14 +173,14 @@ public Response deleteByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "certificates"); - if (name == null) { + String certificateName = Utils.getValueFromIdByName(id, "certificates"); + if (certificateName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - return this.deleteWithResponse(resourceGroupName, managedEnvironmentName, name, context); + return this.deleteWithResponse(resourceGroupName, environmentName, certificateName, context); } private CertificatesClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java index 68eb3da1a5ba..667e472150c0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.appcontainers.models.Configuration; import com.azure.resourcemanager.appcontainers.models.ContainerApp; import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState; +import com.azure.resourcemanager.appcontainers.models.CustomHostnameAnalysisResult; import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; import com.azure.resourcemanager.appcontainers.models.SecretsCollection; import com.azure.resourcemanager.appcontainers.models.Template; @@ -107,7 +108,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String name; + private String containerAppName; public ContainerAppImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; @@ -119,7 +120,7 @@ public ContainerApp create() { serviceManager .serviceClient() .getContainerApps() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), Context.NONE); return this; } @@ -128,14 +129,14 @@ public ContainerApp create(Context context) { serviceManager .serviceClient() .getContainerApps() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), context); return this; } ContainerAppImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new ContainerAppInner(); this.serviceManager = serviceManager; - this.name = name; + this.containerAppName = name; } public ContainerAppImpl update() { @@ -147,7 +148,7 @@ public ContainerApp apply() { serviceManager .serviceClient() .getContainerApps() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), Context.NONE); return this; } @@ -156,7 +157,7 @@ public ContainerApp apply(Context context) { serviceManager .serviceClient() .getContainerApps() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), context); return this; } @@ -165,7 +166,7 @@ public ContainerApp apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "containerApps"); + this.containerAppName = Utils.getValueFromIdByName(innerObject.id(), "containerApps"); } public ContainerApp refresh() { @@ -173,7 +174,7 @@ public ContainerApp refresh() { serviceManager .serviceClient() .getContainerApps() - .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE) + .getByResourceGroupWithResponse(resourceGroupName, containerAppName, Context.NONE) .getValue(); return this; } @@ -183,17 +184,28 @@ public ContainerApp refresh(Context context) { serviceManager .serviceClient() .getContainerApps() - .getByResourceGroupWithResponse(resourceGroupName, name, context) + .getByResourceGroupWithResponse(resourceGroupName, containerAppName, context) .getValue(); return this; } + public CustomHostnameAnalysisResult listCustomHostnameAnalysis() { + return serviceManager.containerApps().listCustomHostnameAnalysis(resourceGroupName, containerAppName); + } + + public Response listCustomHostnameAnalysisWithResponse( + String customHostname, Context context) { + return serviceManager + .containerApps() + .listCustomHostnameAnalysisWithResponse(resourceGroupName, containerAppName, customHostname, context); + } + public SecretsCollection listSecrets() { - return serviceManager.containerApps().listSecrets(resourceGroupName, name); + return serviceManager.containerApps().listSecrets(resourceGroupName, containerAppName); } public Response listSecretsWithResponse(Context context) { - return serviceManager.containerApps().listSecretsWithResponse(resourceGroupName, name, context); + return serviceManager.containerApps().listSecretsWithResponse(resourceGroupName, containerAppName, context); } public ContainerAppImpl withRegion(Region location) { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java index dc63b455aa45..68825c2db3da 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java @@ -78,7 +78,7 @@ Mono> listByContainerApp( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/authConfigs/{name}") + + "/{containerAppName}/authConfigs/{authConfigName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @@ -86,7 +86,7 @@ Mono> get( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("authConfigName") String authConfigName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -94,7 +94,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/authConfigs/{name}") + + "/{containerAppName}/authConfigs/{authConfigName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @@ -102,7 +102,7 @@ Mono> createOrUpdate( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("authConfigName") String authConfigName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") AuthConfigInner authConfigEnvelope, @HeaderParam("Accept") String accept, @@ -111,7 +111,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/authConfigs/{name}") + + "/{containerAppName}/authConfigs/{authConfigName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @@ -119,7 +119,7 @@ Mono> delete( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("authConfigName") String authConfigName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -324,7 +324,7 @@ public PagedIterable listByContainerApp( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -332,7 +332,7 @@ public PagedIterable listByContainerApp( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String authConfigName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -353,8 +353,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -366,7 +366,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context)) @@ -378,7 +378,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -387,7 +387,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String authConfigName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -408,8 +408,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -419,7 +419,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context); @@ -430,15 +430,15 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a AuthConfig of a Container App on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String containerAppName, String name) { - return getWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono getAsync(String resourceGroupName, String containerAppName, String authConfigName) { + return getWithResponseAsync(resourceGroupName, containerAppName, authConfigName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -454,15 +454,15 @@ private Mono getAsync(String resourceGroupName, String containe * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a AuthConfig of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AuthConfigInner get(String resourceGroupName, String containerAppName, String name) { - return getAsync(resourceGroupName, containerAppName, name).block(); + public AuthConfigInner get(String resourceGroupName, String containerAppName, String authConfigName) { + return getAsync(resourceGroupName, containerAppName, authConfigName).block(); } /** @@ -470,7 +470,7 @@ public AuthConfigInner get(String resourceGroupName, String containerAppName, St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -479,8 +479,8 @@ public AuthConfigInner get(String resourceGroupName, String containerAppName, St */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String authConfigName, Context context) { + return getWithResponseAsync(resourceGroupName, containerAppName, authConfigName, context).block(); } /** @@ -488,7 +488,7 @@ public Response getWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -498,7 +498,7 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope) { + String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -519,8 +519,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } if (authConfigEnvelope == null) { return Mono @@ -538,7 +538,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), authConfigEnvelope, accept, @@ -551,7 +551,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -564,7 +564,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String containerAppName, - String name, + String authConfigName, AuthConfigInner authConfigEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -587,8 +587,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } if (authConfigEnvelope == null) { return Mono @@ -604,7 +604,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), authConfigEnvelope, accept, @@ -616,7 +616,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -626,8 +626,8 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, name, authConfigEnvelope) + String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, authConfigName, authConfigEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -643,7 +643,7 @@ private Mono createOrUpdateAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -652,8 +652,8 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public AuthConfigInner createOrUpdate( - String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope) { - return createOrUpdateAsync(resourceGroupName, containerAppName, name, authConfigEnvelope).block(); + String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope) { + return createOrUpdateAsync(resourceGroupName, containerAppName, authConfigName, authConfigEnvelope).block(); } /** @@ -661,7 +661,7 @@ public AuthConfigInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param authConfigEnvelope Properties used to create a Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -674,10 +674,11 @@ public AuthConfigInner createOrUpdate( public Response createOrUpdateWithResponse( String resourceGroupName, String containerAppName, - String name, + String authConfigName, AuthConfigInner authConfigEnvelope, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, name, authConfigEnvelope, context) + return createOrUpdateWithResponseAsync( + resourceGroupName, containerAppName, authConfigName, authConfigEnvelope, context) .block(); } @@ -686,7 +687,7 @@ public Response createOrUpdateWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -694,7 +695,7 @@ public Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String authConfigName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -715,8 +716,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -728,7 +729,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context)) @@ -740,7 +741,7 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -749,7 +750,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String authConfigName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -770,8 +771,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (authConfigName == null) { + return Mono.error(new IllegalArgumentException("Parameter authConfigName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -781,7 +782,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context); @@ -792,15 +793,15 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String containerAppName, String name) { - return deleteWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono deleteAsync(String resourceGroupName, String containerAppName, String authConfigName) { + return deleteWithResponseAsync(resourceGroupName, containerAppName, authConfigName) .flatMap((Response res) -> Mono.empty()); } @@ -809,14 +810,14 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String containerAppName, String name) { - deleteAsync(resourceGroupName, containerAppName, name).block(); + public void delete(String resourceGroupName, String containerAppName, String authConfigName) { + deleteAsync(resourceGroupName, containerAppName, authConfigName).block(); } /** @@ -824,7 +825,7 @@ public void delete(String resourceGroupName, String containerAppName, String nam * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -833,8 +834,8 @@ public void delete(String resourceGroupName, String containerAppName, String nam */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String authConfigName, Context context) { + return deleteWithResponseAsync(resourceGroupName, containerAppName, authConfigName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsImpl.java index 86d362806546..251484d02d15 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsImpl.java @@ -41,8 +41,8 @@ public PagedIterable listByContainerApp( return Utils.mapPage(inner, inner1 -> new AuthConfigImpl(inner1, this.manager())); } - public AuthConfig get(String resourceGroupName, String containerAppName, String name) { - AuthConfigInner inner = this.serviceClient().get(resourceGroupName, containerAppName, name); + public AuthConfig get(String resourceGroupName, String containerAppName, String authConfigName) { + AuthConfigInner inner = this.serviceClient().get(resourceGroupName, containerAppName, authConfigName); if (inner != null) { return new AuthConfigImpl(inner, this.manager()); } else { @@ -51,9 +51,9 @@ public AuthConfig get(String resourceGroupName, String containerAppName, String } public Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String authConfigName, Context context) { Response inner = - this.serviceClient().getWithResponse(resourceGroupName, containerAppName, name, context); + this.serviceClient().getWithResponse(resourceGroupName, containerAppName, authConfigName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -65,13 +65,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String containerAppName, String name) { - this.serviceClient().delete(resourceGroupName, containerAppName, name); + public void delete(String resourceGroupName, String containerAppName, String authConfigName) { + this.serviceClient().delete(resourceGroupName, containerAppName, authConfigName); } public Response deleteWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, containerAppName, name, context); + String resourceGroupName, String containerAppName, String authConfigName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, containerAppName, authConfigName, context); } public AuthConfig getById(String id) { @@ -90,14 +90,14 @@ public AuthConfig getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "authConfigs"); - if (name == null) { + String authConfigName = Utils.getValueFromIdByName(id, "authConfigs"); + if (authConfigName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'authConfigs'.", id))); } - return this.getWithResponse(resourceGroupName, containerAppName, name, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -116,14 +116,14 @@ public Response getByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "authConfigs"); - if (name == null) { + String authConfigName = Utils.getValueFromIdByName(id, "authConfigs"); + if (authConfigName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'authConfigs'.", id))); } - return this.getWithResponse(resourceGroupName, containerAppName, name, context); + return this.getWithResponse(resourceGroupName, containerAppName, authConfigName, context); } public void deleteById(String id) { @@ -142,14 +142,14 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "authConfigs"); - if (name == null) { + String authConfigName = Utils.getValueFromIdByName(id, "authConfigs"); + if (authConfigName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'authConfigs'.", id))); } - this.deleteWithResponse(resourceGroupName, containerAppName, name, Context.NONE); + this.deleteWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -168,14 +168,14 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "authConfigs"); - if (name == null) { + String authConfigName = Utils.getValueFromIdByName(id, "authConfigs"); + if (authConfigName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'authConfigs'.", id))); } - return this.deleteWithResponse(resourceGroupName, containerAppName, name, context); + return this.deleteWithResponse(resourceGroupName, containerAppName, authConfigName, context); } private ContainerAppsAuthConfigsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java index 8a1640536d75..9c673a1fa6a5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java @@ -95,14 +95,14 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{name}") + + "/{containerAppName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("containerAppName") String containerAppName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -110,14 +110,14 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{name}") + + "/{containerAppName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("containerAppName") String containerAppName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ContainerAppInner containerAppEnvelope, @HeaderParam("Accept") String accept, @@ -126,14 +126,14 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{name}") + + "/{containerAppName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("containerAppName") String containerAppName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -141,14 +141,14 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{name}") + + "/{containerAppName}") @ExpectedResponses({202}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> update( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("containerAppName") String containerAppName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ContainerAppInner containerAppEnvelope, @HeaderParam("Accept") String accept, @@ -173,7 +173,7 @@ Mono> listCustomHostnameAnalysis( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{name}/listSecrets") + + "/{containerAppName}/listSecrets") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> listSecrets( @@ -181,7 +181,7 @@ Mono> listSecrets( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("name") String name, + @PathParam("containerAppName") String containerAppName, @HeaderParam("Accept") String accept, Context context); @@ -518,7 +518,7 @@ public PagedIterable listByResourceGroup(String resourceGroup * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -526,7 +526,7 @@ public PagedIterable listByResourceGroup(String resourceGroup */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name) { + String resourceGroupName, String containerAppName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -543,8 +543,9 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -555,7 +556,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context)) @@ -566,7 +567,7 @@ private Mono> getByResourceGroupWithResponseAsync( * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @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. @@ -575,7 +576,7 @@ private Mono> getByResourceGroupWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String containerAppName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -592,8 +593,9 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -602,7 +604,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context); @@ -612,15 +614,15 @@ private Mono> getByResourceGroupWithResponseAsync( * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Container App on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String name) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name) + private Mono getByResourceGroupAsync(String resourceGroupName, String containerAppName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, containerAppName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -635,22 +637,22 @@ private Mono getByResourceGroupAsync(String resourceGroupName * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContainerAppInner getByResourceGroup(String resourceGroupName, String name) { - return getByResourceGroupAsync(resourceGroupName, name).block(); + public ContainerAppInner getByResourceGroup(String resourceGroupName, String containerAppName) { + return getByResourceGroupAsync(resourceGroupName, containerAppName).block(); } /** * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @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. @@ -659,15 +661,15 @@ public ContainerAppInner getByResourceGroup(String resourceGroupName, String nam */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name, context).block(); + String resourceGroupName, String containerAppName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, containerAppName, context).block(); } /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -676,7 +678,7 @@ public Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -693,8 +695,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } if (containerAppEnvelope == null) { return Mono @@ -711,7 +714,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -723,7 +726,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,7 +736,7 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -750,8 +753,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } if (containerAppEnvelope == null) { return Mono @@ -766,7 +770,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -777,7 +781,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -786,9 +790,9 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ContainerAppInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, containerAppEnvelope); + createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope); return this .client .getLroResult( @@ -803,7 +807,7 @@ private PollerFlux, ContainerAppInner> beginCreate * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -813,10 +817,10 @@ private PollerFlux, ContainerAppInner> beginCreate */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ContainerAppInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { context = this.client.mergeContext(context); Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, containerAppEnvelope, context); + createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope, context); return this .client .getLroResult( @@ -827,7 +831,7 @@ private PollerFlux, ContainerAppInner> beginCreate * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -836,15 +840,15 @@ private PollerFlux, ContainerAppInner> beginCreate */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContainerAppInner> beginCreateOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, containerAppEnvelope).getSyncPoller(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller(); } /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -854,15 +858,16 @@ public SyncPoller, ContainerAppInner> beginCreateO */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContainerAppInner> beginCreateOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, containerAppEnvelope, context).getSyncPoller(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context) + .getSyncPoller(); } /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -871,8 +876,8 @@ public SyncPoller, ContainerAppInner> beginCreateO */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, containerAppEnvelope) + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -881,7 +886,7 @@ private Mono createOrUpdateAsync( * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -891,8 +896,8 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, containerAppEnvelope, context) + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -901,7 +906,7 @@ private Mono createOrUpdateAsync( * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -910,15 +915,15 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ContainerAppInner createOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - return createOrUpdateAsync(resourceGroupName, name, containerAppEnvelope).block(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + return createOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block(); } /** * Description for Create or update a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties used to create a container app. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -928,22 +933,23 @@ public ContainerAppInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) public ContainerAppInner createOrUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - return createOrUpdateAsync(resourceGroupName, name, containerAppEnvelope, context).block(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + return createOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block(); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String name) { + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String containerAppName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -960,8 +966,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -972,7 +979,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context)) @@ -983,7 +990,7 @@ private Mono>> deleteWithResponseAsync(String resource * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -992,7 +999,7 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String containerAppName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1009,8 +1016,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -1019,7 +1027,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context); @@ -1029,15 +1037,15 @@ private Mono>> deleteWithResponseAsync( * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String containerAppName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName); return this .client .getLroResult( @@ -1048,7 +1056,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1057,9 +1065,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String containerAppName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1069,22 +1077,22 @@ private PollerFlux, Void> beginDeleteAsync( * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName) { + return beginDeleteAsync(resourceGroupName, containerAppName).getSyncPoller(); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1092,30 +1100,33 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).getSyncPoller(); + public SyncPoller, Void> beginDelete( + String resourceGroupName, String containerAppName, Context context) { + return beginDeleteAsync(resourceGroupName, containerAppName, context).getSyncPoller(); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String containerAppName) { + return beginDeleteAsync(resourceGroupName, containerAppName) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1123,44 +1134,46 @@ private Mono deleteAsync(String resourceGroupName, String name) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String containerAppName, Context context) { + return beginDeleteAsync(resourceGroupName, containerAppName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name) { - deleteAsync(resourceGroupName, name).block(); + public void delete(String resourceGroupName, String containerAppName) { + deleteAsync(resourceGroupName, containerAppName).block(); } /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name, Context context) { - deleteAsync(resourceGroupName, name, context).block(); + public void delete(String resourceGroupName, String containerAppName, Context context) { + deleteAsync(resourceGroupName, containerAppName, context).block(); } /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1169,7 +1182,7 @@ public void delete(String resourceGroupName, String name, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1186,8 +1199,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } if (containerAppEnvelope == null) { return Mono @@ -1204,7 +1218,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -1216,7 +1230,7 @@ private Mono>> updateWithResponseAsync( * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1226,7 +1240,7 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1243,8 +1257,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } if (containerAppEnvelope == null) { return Mono @@ -1259,7 +1274,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -1270,7 +1285,7 @@ private Mono>> updateWithResponseAsync( * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1279,8 +1294,9 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + Mono>> mono = + updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope); return this .client .getLroResult( @@ -1291,7 +1307,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1301,10 +1317,10 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { context = this.client.mergeContext(context); Mono>> mono = - updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope, context); + updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1314,7 +1330,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1323,15 +1339,15 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope).getSyncPoller(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller(); } /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1341,15 +1357,15 @@ public SyncPoller, Void> beginUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope, context).getSyncPoller(); + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).getSyncPoller(); } /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1357,8 +1373,9 @@ public SyncPoller, Void> beginUpdate( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope) + private Mono updateAsync( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1367,7 +1384,7 @@ private Mono updateAsync(String resourceGroupName, String name, ContainerA * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1377,8 +1394,8 @@ private Mono updateAsync(String resourceGroupName, String name, ContainerA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope, context) + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1387,22 +1404,22 @@ private Mono updateAsync( * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - updateAsync(resourceGroupName, name, containerAppEnvelope).block(); + public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + updateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block(); } /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1410,8 +1427,9 @@ public void update(String resourceGroupName, String name, ContainerAppInner cont * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - updateAsync(resourceGroupName, name, containerAppEnvelope, context).block(); + public void update( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + updateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block(); } /** @@ -1604,7 +1622,7 @@ public Response listCustomHostnameAnalysisWit * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1612,7 +1630,8 @@ public Response listCustomHostnameAnalysisWit * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSecretsWithResponseAsync(String resourceGroupName, String name) { + private Mono> listSecretsWithResponseAsync( + String resourceGroupName, String containerAppName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1629,8 +1648,9 @@ private Mono> listSecretsWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -1642,7 +1662,7 @@ private Mono> listSecretsWithResponseAsync(Stri this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), - name, + containerAppName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1652,7 +1672,7 @@ private Mono> listSecretsWithResponseAsync(Stri * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1662,7 +1682,7 @@ private Mono> listSecretsWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecretsWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String containerAppName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1679,8 +1699,9 @@ private Mono> listSecretsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -1690,7 +1711,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), - name, + containerAppName, accept, context); } @@ -1699,15 +1720,15 @@ private Mono> listSecretsWithResponseAsync( * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return container App Secrets Collection ARM resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listSecretsAsync(String resourceGroupName, String name) { - return listSecretsWithResponseAsync(resourceGroupName, name) + private Mono listSecretsAsync(String resourceGroupName, String containerAppName) { + return listSecretsWithResponseAsync(resourceGroupName, containerAppName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -1722,22 +1743,22 @@ private Mono listSecretsAsync(String resourceGroupName, * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return container App Secrets Collection ARM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SecretsCollectionInner listSecrets(String resourceGroupName, String name) { - return listSecretsAsync(resourceGroupName, name).block(); + public SecretsCollectionInner listSecrets(String resourceGroupName, String containerAppName) { + return listSecretsAsync(resourceGroupName, containerAppName).block(); } /** * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1746,8 +1767,8 @@ public SecretsCollectionInner listSecrets(String resourceGroupName, String name) */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listSecretsWithResponse( - String resourceGroupName, String name, Context context) { - return listSecretsWithResponseAsync(resourceGroupName, name, context).block(); + String resourceGroupName, String containerAppName, Context context) { + return listSecretsWithResponseAsync(resourceGroupName, containerAppName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java index 0c686bc3c4bc..d996b14b32e7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java @@ -52,8 +52,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName, return Utils.mapPage(inner, inner1 -> new ContainerAppImpl(inner1, this.manager())); } - public ContainerApp getByResourceGroup(String resourceGroupName, String name) { - ContainerAppInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, name); + public ContainerApp getByResourceGroup(String resourceGroupName, String containerAppName) { + ContainerAppInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, containerAppName); if (inner != null) { return new ContainerAppImpl(inner, this.manager()); } else { @@ -62,9 +62,9 @@ public ContainerApp getByResourceGroup(String resourceGroupName, String name) { } public Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String containerAppName, Context context) { Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, name, context); + this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, containerAppName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -76,20 +76,21 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String name) { - this.serviceClient().delete(resourceGroupName, name); + public void deleteByResourceGroup(String resourceGroupName, String containerAppName) { + this.serviceClient().delete(resourceGroupName, containerAppName); } - public void delete(String resourceGroupName, String name, Context context) { - this.serviceClient().delete(resourceGroupName, name, context); + public void delete(String resourceGroupName, String containerAppName, Context context) { + this.serviceClient().delete(resourceGroupName, containerAppName, context); } - public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) { - this.serviceClient().update(resourceGroupName, name, containerAppEnvelope); + public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) { + this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope); } - public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) { - this.serviceClient().update(resourceGroupName, name, containerAppEnvelope, context); + public void update( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) { + this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope, context); } public CustomHostnameAnalysisResult listCustomHostnameAnalysis(String resourceGroupName, String containerAppName) { @@ -119,8 +120,8 @@ public Response listCustomHostnameAnalysisWithResp } } - public SecretsCollection listSecrets(String resourceGroupName, String name) { - SecretsCollectionInner inner = this.serviceClient().listSecrets(resourceGroupName, name); + public SecretsCollection listSecrets(String resourceGroupName, String containerAppName) { + SecretsCollectionInner inner = this.serviceClient().listSecrets(resourceGroupName, containerAppName); if (inner != null) { return new SecretsCollectionImpl(inner, this.manager()); } else { @@ -128,9 +129,10 @@ public SecretsCollection listSecrets(String resourceGroupName, String name) { } } - public Response listSecretsWithResponse(String resourceGroupName, String name, Context context) { + public Response listSecretsWithResponse( + String resourceGroupName, String containerAppName, Context context) { Response inner = - this.serviceClient().listSecretsWithResponse(resourceGroupName, name, context); + this.serviceClient().listSecretsWithResponse(resourceGroupName, containerAppName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -151,14 +153,14 @@ public ContainerApp getById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "containerApps"); - if (name == null) { + String containerAppName = Utils.getValueFromIdByName(id, "containerApps"); + if (containerAppName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE).getValue(); + return this.getByResourceGroupWithResponse(resourceGroupName, containerAppName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -170,14 +172,14 @@ public Response getByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "containerApps"); - if (name == null) { + String containerAppName = Utils.getValueFromIdByName(id, "containerApps"); + if (containerAppName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, name, context); + return this.getByResourceGroupWithResponse(resourceGroupName, containerAppName, context); } public void deleteById(String id) { @@ -189,14 +191,14 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "containerApps"); - if (name == null) { + String containerAppName = Utils.getValueFromIdByName(id, "containerApps"); + if (containerAppName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - this.delete(resourceGroupName, name, Context.NONE); + this.delete(resourceGroupName, containerAppName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { @@ -208,14 +210,14 @@ public void deleteByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "containerApps"); - if (name == null) { + String containerAppName = Utils.getValueFromIdByName(id, "containerApps"); + if (containerAppName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - this.delete(resourceGroupName, name, context); + this.delete(resourceGroupName, containerAppName, context); } private ContainerAppsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java index b6b447b1b2e5..95f8f44df8f0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java @@ -59,7 +59,7 @@ private interface ContainerAppsRevisionReplicasService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{revisionName}/replicas/{name}") + + "/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getReplica( @@ -68,7 +68,7 @@ Mono> getReplica( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, @PathParam("revisionName") String revisionName, - @PathParam("name") String name, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -96,7 +96,7 @@ Mono> listReplicas( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -105,7 +105,7 @@ Mono> listReplicas( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getReplicaWithResponseAsync( - String resourceGroupName, String containerAppName, String revisionName, String name) { + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -129,8 +129,8 @@ private Mono> getReplicaWithResponseAsync( if (revisionName == null) { return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -143,7 +143,7 @@ private Mono> getReplicaWithResponseAsync( resourceGroupName, containerAppName, revisionName, - name, + replicaName, this.client.getApiVersion(), accept, context)) @@ -156,7 +156,7 @@ private Mono> getReplicaWithResponseAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -166,7 +166,7 @@ private Mono> getReplicaWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getReplicaWithResponseAsync( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -190,8 +190,8 @@ private Mono> getReplicaWithResponseAsync( if (revisionName == null) { return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -202,7 +202,7 @@ private Mono> getReplicaWithResponseAsync( resourceGroupName, containerAppName, revisionName, - name, + replicaName, this.client.getApiVersion(), accept, context); @@ -214,7 +214,7 @@ private Mono> getReplicaWithResponseAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -222,8 +222,8 @@ private Mono> getReplicaWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getReplicaAsync( - String resourceGroupName, String containerAppName, String revisionName, String name) { - return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, name) + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, replicaName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -240,7 +240,7 @@ private Mono getReplicaAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -248,8 +248,8 @@ private Mono getReplicaAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ReplicaInner getReplica( - String resourceGroupName, String containerAppName, String revisionName, String name) { - return getReplicaAsync(resourceGroupName, containerAppName, revisionName, name).block(); + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + return getReplicaAsync(resourceGroupName, containerAppName, revisionName, replicaName).block(); } /** @@ -258,7 +258,7 @@ public ReplicaInner getReplica( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -267,8 +267,9 @@ public ReplicaInner getReplica( */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getReplicaWithResponse( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context) { - return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context) { + return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, replicaName, context) + .block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java index 191fc4441050..567bd0b4d88e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java @@ -29,8 +29,10 @@ public ContainerAppsRevisionReplicasImpl( this.serviceManager = serviceManager; } - public Replica getReplica(String resourceGroupName, String containerAppName, String revisionName, String name) { - ReplicaInner inner = this.serviceClient().getReplica(resourceGroupName, containerAppName, revisionName, name); + public Replica getReplica( + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + ReplicaInner inner = + this.serviceClient().getReplica(resourceGroupName, containerAppName, revisionName, replicaName); if (inner != null) { return new ReplicaImpl(inner, this.manager()); } else { @@ -39,11 +41,11 @@ public Replica getReplica(String resourceGroupName, String containerAppName, Str } public Response getReplicaWithResponse( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context) { Response inner = this .serviceClient() - .getReplicaWithResponse(resourceGroupName, containerAppName, revisionName, name, context); + .getReplicaWithResponse(resourceGroupName, containerAppName, revisionName, replicaName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java index 72978fff9d9a..0f3336813ac8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java @@ -77,7 +77,7 @@ Mono> listRevisions( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}") + + "/{containerAppName}/revisions/{revisionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getRevision( @@ -85,7 +85,7 @@ Mono> getRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -93,7 +93,7 @@ Mono> getRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/activate") + + "/{containerAppName}/revisions/{revisionName}/activate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> activateRevision( @@ -101,7 +101,7 @@ Mono> activateRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -109,7 +109,7 @@ Mono> activateRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/deactivate") + + "/{containerAppName}/revisions/{revisionName}/deactivate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> deactivateRevision( @@ -117,7 +117,7 @@ Mono> deactivateRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -125,7 +125,7 @@ Mono> deactivateRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/restart") + + "/{containerAppName}/revisions/{revisionName}/restart") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> restartRevision( @@ -133,7 +133,7 @@ Mono> restartRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -365,7 +365,7 @@ public PagedIterable listRevisions( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -373,7 +373,7 @@ public PagedIterable listRevisions( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -394,8 +394,8 @@ private Mono> getRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -407,7 +407,7 @@ private Mono> getRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -419,7 +419,7 @@ private Mono> getRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -428,7 +428,7 @@ private Mono> getRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -449,8 +449,8 @@ private Mono> getRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -460,7 +460,7 @@ private Mono> getRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -471,15 +471,16 @@ private Mono> getRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a revision of a Container App on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return getRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono getRevisionAsync( + String resourceGroupName, String containerAppName, String revisionName) { + return getRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -495,15 +496,15 @@ private Mono getRevisionAsync(String resourceGroupName, String co * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a revision of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RevisionInner getRevision(String resourceGroupName, String containerAppName, String name) { - return getRevisionAsync(resourceGroupName, containerAppName, name).block(); + public RevisionInner getRevision(String resourceGroupName, String containerAppName, String revisionName) { + return getRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -511,7 +512,7 @@ public RevisionInner getRevision(String resourceGroupName, String containerAppNa * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -520,8 +521,8 @@ public RevisionInner getRevision(String resourceGroupName, String containerAppNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return getRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return getRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -529,7 +530,7 @@ public Response getRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -537,7 +538,7 @@ public Response getRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> activateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -558,8 +559,8 @@ private Mono> activateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -571,7 +572,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -583,7 +584,7 @@ private Mono> activateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -592,7 +593,7 @@ private Mono> activateRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> activateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -613,8 +614,8 @@ private Mono> activateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -624,7 +625,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -635,15 +636,15 @@ private Mono> activateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono activateRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono activateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -652,14 +653,14 @@ private Mono activateRevisionAsync(String resourceGroupName, String contai * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void activateRevision(String resourceGroupName, String containerAppName, String name) { - activateRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void activateRevision(String resourceGroupName, String containerAppName, String revisionName) { + activateRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -667,7 +668,7 @@ public void activateRevision(String resourceGroupName, String containerAppName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -676,8 +677,8 @@ public void activateRevision(String resourceGroupName, String containerAppName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response activateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -685,7 +686,7 @@ public Response activateRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -693,7 +694,7 @@ public Response activateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deactivateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -714,8 +715,8 @@ private Mono> deactivateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -727,7 +728,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -739,7 +740,7 @@ private Mono> deactivateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -748,7 +749,7 @@ private Mono> deactivateRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deactivateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -769,8 +770,8 @@ private Mono> deactivateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -780,7 +781,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -791,15 +792,15 @@ private Mono> deactivateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deactivateRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono deactivateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -808,14 +809,14 @@ private Mono deactivateRevisionAsync(String resourceGroupName, String cont * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deactivateRevision(String resourceGroupName, String containerAppName, String name) { - deactivateRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName) { + deactivateRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -823,7 +824,7 @@ public void deactivateRevision(String resourceGroupName, String containerAppName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -832,8 +833,8 @@ public void deactivateRevision(String resourceGroupName, String containerAppName */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deactivateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -841,7 +842,7 @@ public Response deactivateRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -849,7 +850,7 @@ public Response deactivateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -870,8 +871,8 @@ private Mono> restartRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -883,7 +884,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -895,7 +896,7 @@ private Mono> restartRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -904,7 +905,7 @@ private Mono> restartRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -925,8 +926,8 @@ private Mono> restartRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -936,7 +937,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -947,15 +948,15 @@ private Mono> restartRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono restartRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -964,14 +965,14 @@ private Mono restartRevisionAsync(String resourceGroupName, String contain * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restartRevision(String resourceGroupName, String containerAppName, String name) { - restartRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void restartRevision(String resourceGroupName, String containerAppName, String revisionName) { + restartRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -979,7 +980,7 @@ public void restartRevision(String resourceGroupName, String containerAppName, S * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -988,8 +989,8 @@ public void restartRevision(String resourceGroupName, String containerAppName, S */ @ServiceMethod(returns = ReturnType.SINGLE) public Response restartRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java index 92a5033ce15e..f840af74979e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java @@ -40,8 +40,8 @@ public PagedIterable listRevisions( return Utils.mapPage(inner, inner1 -> new RevisionImpl(inner1, this.manager())); } - public Revision getRevision(String resourceGroupName, String containerAppName, String name) { - RevisionInner inner = this.serviceClient().getRevision(resourceGroupName, containerAppName, name); + public Revision getRevision(String resourceGroupName, String containerAppName, String revisionName) { + RevisionInner inner = this.serviceClient().getRevision(resourceGroupName, containerAppName, revisionName); if (inner != null) { return new RevisionImpl(inner, this.manager()); } else { @@ -50,9 +50,9 @@ public Revision getRevision(String resourceGroupName, String containerAppName, S } public Response getRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { Response inner = - this.serviceClient().getRevisionWithResponse(resourceGroupName, containerAppName, name, context); + this.serviceClient().getRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -64,31 +64,37 @@ public Response getRevisionWithResponse( } } - public void activateRevision(String resourceGroupName, String containerAppName, String name) { - this.serviceClient().activateRevision(resourceGroupName, containerAppName, name); + public void activateRevision(String resourceGroupName, String containerAppName, String revisionName) { + this.serviceClient().activateRevision(resourceGroupName, containerAppName, revisionName); } public Response activateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return this.serviceClient().activateRevisionWithResponse(resourceGroupName, containerAppName, name, context); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return this + .serviceClient() + .activateRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context); } - public void deactivateRevision(String resourceGroupName, String containerAppName, String name) { - this.serviceClient().deactivateRevision(resourceGroupName, containerAppName, name); + public void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName) { + this.serviceClient().deactivateRevision(resourceGroupName, containerAppName, revisionName); } public Response deactivateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return this.serviceClient().deactivateRevisionWithResponse(resourceGroupName, containerAppName, name, context); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return this + .serviceClient() + .deactivateRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context); } - public void restartRevision(String resourceGroupName, String containerAppName, String name) { - this.serviceClient().restartRevision(resourceGroupName, containerAppName, name); + public void restartRevision(String resourceGroupName, String containerAppName, String revisionName) { + this.serviceClient().restartRevision(resourceGroupName, containerAppName, revisionName); } public Response restartRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return this.serviceClient().restartRevisionWithResponse(resourceGroupName, containerAppName, name, context); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return this + .serviceClient() + .restartRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context); } private ContainerAppsRevisionsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java index dbd529819dc9..6acbb6546873 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java @@ -84,7 +84,7 @@ Mono> listByContainerApp( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/sourcecontrols/{name}") + + "/{containerAppName}/sourcecontrols/{sourceControlName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @@ -92,7 +92,7 @@ Mono> get( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("sourceControlName") String sourceControlName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -100,7 +100,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/sourcecontrols/{name}") + + "/{containerAppName}/sourcecontrols/{sourceControlName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> createOrUpdate( @@ -108,7 +108,7 @@ Mono>> createOrUpdate( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("sourceControlName") String sourceControlName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") SourceControlInner sourceControlEnvelope, @HeaderParam("Accept") String accept, @@ -117,7 +117,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/sourcecontrols/{name}") + + "/{containerAppName}/sourcecontrols/{sourceControlName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> delete( @@ -125,7 +125,7 @@ Mono>> delete( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("sourceControlName") String sourceControlName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -332,7 +332,7 @@ public PagedIterable listByContainerApp( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -340,7 +340,7 @@ public PagedIterable listByContainerApp( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String sourceControlName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -361,8 +361,9 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -374,7 +375,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context)) @@ -386,7 +387,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -395,7 +396,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -416,8 +417,9 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -427,7 +429,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context); @@ -438,15 +440,16 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SourceControl of a Container App on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String containerAppName, String name) { - return getWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono getAsync( + String resourceGroupName, String containerAppName, String sourceControlName) { + return getWithResponseAsync(resourceGroupName, containerAppName, sourceControlName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -462,15 +465,15 @@ private Mono getAsync(String resourceGroupName, String conta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SourceControl of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SourceControlInner get(String resourceGroupName, String containerAppName, String name) { - return getAsync(resourceGroupName, containerAppName, name).block(); + public SourceControlInner get(String resourceGroupName, String containerAppName, String sourceControlName) { + return getAsync(resourceGroupName, containerAppName, sourceControlName).block(); } /** @@ -478,7 +481,7 @@ public SourceControlInner get(String resourceGroupName, String containerAppName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -487,8 +490,8 @@ public SourceControlInner get(String resourceGroupName, String containerAppName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { + return getWithResponseAsync(resourceGroupName, containerAppName, sourceControlName, context).block(); } /** @@ -496,7 +499,7 @@ public Response getWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -505,7 +508,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope) { + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -526,8 +532,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } if (sourceControlEnvelope == null) { return Mono @@ -545,7 +552,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), sourceControlEnvelope, accept, @@ -558,7 +565,7 @@ private Mono>> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -570,7 +577,7 @@ private Mono>> createOrUpdateWithResponseAsync( private Mono>> createOrUpdateWithResponseAsync( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -593,8 +600,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } if (sourceControlEnvelope == null) { return Mono @@ -610,7 +618,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), sourceControlEnvelope, accept, @@ -622,7 +630,7 @@ private Mono>> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -631,9 +639,13 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SourceControlInner> beginCreateOrUpdateAsync( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope) { + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope) { Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope); + createOrUpdateWithResponseAsync( + resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope); return this .client .getLroResult( @@ -649,7 +661,7 @@ private PollerFlux, SourceControlInner> beginCrea * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -661,12 +673,13 @@ private PollerFlux, SourceControlInner> beginCrea private PollerFlux, SourceControlInner> beginCreateOrUpdateAsync( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { context = this.client.mergeContext(context); Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope, context); + createOrUpdateWithResponseAsync( + resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context); return this .client .getLroResult( @@ -678,7 +691,7 @@ private PollerFlux, SourceControlInner> beginCrea * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -687,8 +700,11 @@ private PollerFlux, SourceControlInner> beginCrea */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SourceControlInner> beginCreateOrUpdate( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope) + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) .getSyncPoller(); } @@ -697,7 +713,7 @@ public SyncPoller, SourceControlInner> beginCreat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,10 +725,11 @@ public SyncPoller, SourceControlInner> beginCreat public SyncPoller, SourceControlInner> beginCreateOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope, context) + return beginCreateOrUpdateAsync( + resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context) .getSyncPoller(); } @@ -721,7 +738,7 @@ public SyncPoller, SourceControlInner> beginCreat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -730,8 +747,11 @@ public SyncPoller, SourceControlInner> beginCreat */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope) + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -741,7 +761,7 @@ private Mono createOrUpdateAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -753,10 +773,11 @@ private Mono createOrUpdateAsync( private Mono createOrUpdateAsync( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope, context) + return beginCreateOrUpdateAsync( + resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -766,7 +787,7 @@ private Mono createOrUpdateAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -775,8 +796,12 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public SourceControlInner createOrUpdate( - String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope) { - return createOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope).block(); + String resourceGroupName, + String containerAppName, + String sourceControlName, + SourceControlInner sourceControlEnvelope) { + return createOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) + .block(); } /** @@ -784,7 +809,7 @@ public SourceControlInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -796,10 +821,12 @@ public SourceControlInner createOrUpdate( public SourceControlInner createOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { - return createOrUpdateAsync(resourceGroupName, containerAppName, name, sourceControlEnvelope, context).block(); + return createOrUpdateAsync( + resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context) + .block(); } /** @@ -807,7 +834,7 @@ public SourceControlInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -815,7 +842,7 @@ public SourceControlInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String sourceControlName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -836,8 +863,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -849,7 +877,7 @@ private Mono>> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context)) @@ -861,7 +889,7 @@ private Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -870,7 +898,7 @@ private Mono>> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -891,8 +919,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (sourceControlName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -902,7 +931,7 @@ private Mono>> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context); @@ -913,7 +942,7 @@ private Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -921,8 +950,9 @@ private Mono>> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String containerAppName, String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, name); + String resourceGroupName, String containerAppName, String sourceControlName) { + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, containerAppName, sourceControlName); return this .client .getLroResult( @@ -934,7 +964,7 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -943,10 +973,10 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { context = this.client.mergeContext(context); Mono>> mono = - deleteWithResponseAsync(resourceGroupName, containerAppName, name, context); + deleteWithResponseAsync(resourceGroupName, containerAppName, sourceControlName, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -957,7 +987,7 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -965,8 +995,8 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( - String resourceGroupName, String containerAppName, String name) { - return beginDeleteAsync(resourceGroupName, containerAppName, name).getSyncPoller(); + String resourceGroupName, String containerAppName, String sourceControlName) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller(); } /** @@ -974,7 +1004,7 @@ public SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -983,8 +1013,8 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( - String resourceGroupName, String containerAppName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, containerAppName, name, context).getSyncPoller(); + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller(); } /** @@ -992,15 +1022,15 @@ public SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String containerAppName, String name) { - return beginDeleteAsync(resourceGroupName, containerAppName, name) + private Mono deleteAsync(String resourceGroupName, String containerAppName, String sourceControlName) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1010,7 +1040,7 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1018,8 +1048,9 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String containerAppName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, containerAppName, name, context) + private Mono deleteAsync( + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1029,14 +1060,14 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String containerAppName, String name) { - deleteAsync(resourceGroupName, containerAppName, name).block(); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName) { + deleteAsync(resourceGroupName, containerAppName, sourceControlName).block(); } /** @@ -1044,15 +1075,15 @@ public void delete(String resourceGroupName, String containerAppName, String nam * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String containerAppName, String name, Context context) { - deleteAsync(resourceGroupName, containerAppName, name, context).block(); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context) { + deleteAsync(resourceGroupName, containerAppName, sourceControlName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java index 88c7227c35e7..188665e5bc46 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java @@ -41,8 +41,8 @@ public PagedIterable listByContainerApp( return Utils.mapPage(inner, inner1 -> new SourceControlImpl(inner1, this.manager())); } - public SourceControl get(String resourceGroupName, String containerAppName, String name) { - SourceControlInner inner = this.serviceClient().get(resourceGroupName, containerAppName, name); + public SourceControl get(String resourceGroupName, String containerAppName, String sourceControlName) { + SourceControlInner inner = this.serviceClient().get(resourceGroupName, containerAppName, sourceControlName); if (inner != null) { return new SourceControlImpl(inner, this.manager()); } else { @@ -51,9 +51,9 @@ public SourceControl get(String resourceGroupName, String containerAppName, Stri } public Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String sourceControlName, Context context) { Response inner = - this.serviceClient().getWithResponse(resourceGroupName, containerAppName, name, context); + this.serviceClient().getWithResponse(resourceGroupName, containerAppName, sourceControlName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -65,12 +65,12 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String containerAppName, String name) { - this.serviceClient().delete(resourceGroupName, containerAppName, name); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName) { + this.serviceClient().delete(resourceGroupName, containerAppName, sourceControlName); } - public void delete(String resourceGroupName, String containerAppName, String name, Context context) { - this.serviceClient().delete(resourceGroupName, containerAppName, name, context); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context) { + this.serviceClient().delete(resourceGroupName, containerAppName, sourceControlName, context); } public SourceControl getById(String id) { @@ -89,15 +89,15 @@ public SourceControl getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "sourcecontrols"); - if (name == null) { + String sourceControlName = Utils.getValueFromIdByName(id, "sourcecontrols"); + if (sourceControlName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - return this.getWithResponse(resourceGroupName, containerAppName, name, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, containerAppName, sourceControlName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -116,15 +116,15 @@ public Response getByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "sourcecontrols"); - if (name == null) { + String sourceControlName = Utils.getValueFromIdByName(id, "sourcecontrols"); + if (sourceControlName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - return this.getWithResponse(resourceGroupName, containerAppName, name, context); + return this.getWithResponse(resourceGroupName, containerAppName, sourceControlName, context); } public void deleteById(String id) { @@ -143,15 +143,15 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "sourcecontrols"); - if (name == null) { + String sourceControlName = Utils.getValueFromIdByName(id, "sourcecontrols"); + if (sourceControlName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - this.delete(resourceGroupName, containerAppName, name, Context.NONE); + this.delete(resourceGroupName, containerAppName, sourceControlName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { @@ -170,15 +170,15 @@ public void deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'containerApps'.", id))); } - String name = Utils.getValueFromIdByName(id, "sourcecontrols"); - if (name == null) { + String sourceControlName = Utils.getValueFromIdByName(id, "sourcecontrols"); + if (sourceControlName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - this.delete(resourceGroupName, containerAppName, name, context); + this.delete(resourceGroupName, containerAppName, sourceControlName, context); } private ContainerAppsSourceControlsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java index 6a4868cff392..c43afdfe68eb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java @@ -91,7 +91,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String environmentName; - private String name; + private String componentName; public DaprComponentImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; @@ -104,7 +104,8 @@ public DaprComponent create() { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -114,7 +115,8 @@ public DaprComponent create(Context context) { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), context) .getValue(); return this; } @@ -122,7 +124,7 @@ public DaprComponent create(Context context) { DaprComponentImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new DaprComponentInner(); this.serviceManager = serviceManager; - this.name = name; + this.componentName = name; } public DaprComponentImpl update() { @@ -134,7 +136,8 @@ public DaprComponent apply() { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -144,7 +147,8 @@ public DaprComponent apply(Context context) { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), context) .getValue(); return this; } @@ -156,7 +160,7 @@ public DaprComponent apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "daprComponents"); + this.componentName = Utils.getValueFromIdByName(innerObject.id(), "daprComponents"); } public DaprComponent refresh() { @@ -164,7 +168,7 @@ public DaprComponent refresh() { serviceManager .serviceClient() .getDaprComponents() - .getWithResponse(resourceGroupName, environmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE) .getValue(); return this; } @@ -174,19 +178,19 @@ public DaprComponent refresh(Context context) { serviceManager .serviceClient() .getDaprComponents() - .getWithResponse(resourceGroupName, environmentName, name, context) + .getWithResponse(resourceGroupName, environmentName, componentName, context) .getValue(); return this; } public DaprSecretsCollection listSecrets() { - return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, name); + return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, componentName); } public Response listSecretsWithResponse(Context context) { return serviceManager .daprComponents() - .listSecretsWithResponse(resourceGroupName, environmentName, name, context); + .listSecretsWithResponse(resourceGroupName, environmentName, componentName, context); } public DaprComponentImpl withComponentType(String componentType) { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java index 32649ddfb212..3214e57d274d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java @@ -79,7 +79,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @@ -87,7 +87,7 @@ Mono> get( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -95,7 +95,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @@ -103,7 +103,7 @@ Mono> createOrUpdate( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DaprComponentInner daprComponentEnvelope, @HeaderParam("Accept") String accept, @@ -112,7 +112,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @@ -120,7 +120,7 @@ Mono> delete( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -128,7 +128,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> listSecrets( @@ -136,7 +136,7 @@ Mono> listSecrets( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -339,7 +339,7 @@ public PagedIterable list(String resourceGroupName, String e * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -347,7 +347,7 @@ public PagedIterable list(String resourceGroupName, String e */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -368,8 +368,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -381,7 +381,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -393,7 +393,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -402,7 +402,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -423,8 +423,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -434,7 +434,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -445,15 +445,15 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String environmentName, String name) { - return getWithResponseAsync(resourceGroupName, environmentName, name) + private Mono getAsync(String resourceGroupName, String environmentName, String componentName) { + return getWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -469,15 +469,15 @@ private Mono getAsync(String resourceGroupName, String envir * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DaprComponentInner get(String resourceGroupName, String environmentName, String name) { - return getAsync(resourceGroupName, environmentName, name).block(); + public DaprComponentInner get(String resourceGroupName, String environmentName, String componentName) { + return getAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -485,7 +485,7 @@ public DaprComponentInner get(String resourceGroupName, String environmentName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -494,8 +494,8 @@ public DaprComponentInner get(String resourceGroupName, String environmentName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** @@ -503,7 +503,7 @@ public Response getWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -512,7 +512,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -533,8 +536,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } if (daprComponentEnvelope == null) { return Mono @@ -552,7 +555,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -565,7 +568,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,7 +580,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String environmentName, - String name, + String componentName, DaprComponentInner daprComponentEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -600,8 +603,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } if (daprComponentEnvelope == null) { return Mono @@ -617,7 +620,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -629,7 +632,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -638,8 +641,11 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, name, daprComponentEnvelope) + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, componentName, daprComponentEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -655,7 +661,7 @@ private Mono createOrUpdateAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -664,8 +670,11 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public DaprComponentInner createOrUpdate( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { - return createOrUpdateAsync(resourceGroupName, environmentName, name, daprComponentEnvelope).block(); + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, componentName, daprComponentEnvelope).block(); } /** @@ -673,7 +682,7 @@ public DaprComponentInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -685,10 +694,11 @@ public DaprComponentInner createOrUpdate( public Response createOrUpdateWithResponse( String resourceGroupName, String environmentName, - String name, + String componentName, DaprComponentInner daprComponentEnvelope, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, name, daprComponentEnvelope, context) + return createOrUpdateWithResponseAsync( + resourceGroupName, environmentName, componentName, daprComponentEnvelope, context) .block(); } @@ -697,7 +707,7 @@ public Response createOrUpdateWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -705,7 +715,7 @@ public Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -726,8 +736,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -739,7 +749,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -751,7 +761,7 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -760,7 +770,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -781,8 +791,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -792,7 +802,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -803,15 +813,15 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String environmentName, String name) { - return deleteWithResponseAsync(resourceGroupName, environmentName, name) + private Mono deleteAsync(String resourceGroupName, String environmentName, String componentName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap((Response res) -> Mono.empty()); } @@ -820,14 +830,14 @@ private Mono deleteAsync(String resourceGroupName, String environmentName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String environmentName, String name) { - deleteAsync(resourceGroupName, environmentName, name).block(); + public void delete(String resourceGroupName, String environmentName, String componentName) { + deleteAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -835,7 +845,7 @@ public void delete(String resourceGroupName, String environmentName, String name * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -844,8 +854,8 @@ public void delete(String resourceGroupName, String environmentName, String name */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** @@ -853,7 +863,7 @@ public Response deleteWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -862,7 +872,7 @@ public Response deleteWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecretsWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -883,8 +893,8 @@ private Mono> listSecretsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -896,7 +906,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -908,7 +918,7 @@ private Mono> listSecretsWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -918,7 +928,7 @@ private Mono> listSecretsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecretsWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -939,8 +949,8 @@ private Mono> listSecretsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -950,7 +960,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -961,7 +971,7 @@ private Mono> listSecretsWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -969,8 +979,8 @@ private Mono> listSecretsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSecretsAsync( - String resourceGroupName, String environmentName, String name) { - return listSecretsWithResponseAsync(resourceGroupName, environmentName, name) + String resourceGroupName, String environmentName, String componentName) { + return listSecretsWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -986,15 +996,16 @@ private Mono listSecretsAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dapr component Secrets Collection ARM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name) { - return listSecretsAsync(resourceGroupName, environmentName, name).block(); + public DaprSecretsCollectionInner listSecrets( + String resourceGroupName, String environmentName, String componentName) { + return listSecretsAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -1002,7 +1013,7 @@ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String e * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1011,8 +1022,8 @@ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String e */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return listSecretsWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return listSecretsWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java index da515dbdebe6..84cbb60acc24 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java @@ -41,8 +41,8 @@ public PagedIterable list(String resourceGroupName, String enviro return Utils.mapPage(inner, inner1 -> new DaprComponentImpl(inner1, this.manager())); } - public DaprComponent get(String resourceGroupName, String environmentName, String name) { - DaprComponentInner inner = this.serviceClient().get(resourceGroupName, environmentName, name); + public DaprComponent get(String resourceGroupName, String environmentName, String componentName) { + DaprComponentInner inner = this.serviceClient().get(resourceGroupName, environmentName, componentName); if (inner != null) { return new DaprComponentImpl(inner, this.manager()); } else { @@ -51,9 +51,9 @@ public DaprComponent get(String resourceGroupName, String environmentName, Strin } public Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { Response inner = - this.serviceClient().getWithResponse(resourceGroupName, environmentName, name, context); + this.serviceClient().getWithResponse(resourceGroupName, environmentName, componentName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -65,17 +65,18 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String environmentName, String name) { - this.serviceClient().delete(resourceGroupName, environmentName, name); + public void delete(String resourceGroupName, String environmentName, String componentName) { + this.serviceClient().delete(resourceGroupName, environmentName, componentName); } public Response deleteWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, name, context); + String resourceGroupName, String environmentName, String componentName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, componentName, context); } - public DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name) { - DaprSecretsCollectionInner inner = this.serviceClient().listSecrets(resourceGroupName, environmentName, name); + public DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String componentName) { + DaprSecretsCollectionInner inner = + this.serviceClient().listSecrets(resourceGroupName, environmentName, componentName); if (inner != null) { return new DaprSecretsCollectionImpl(inner, this.manager()); } else { @@ -84,9 +85,9 @@ public DaprSecretsCollection listSecrets(String resourceGroupName, String enviro } public Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { Response inner = - this.serviceClient().listSecretsWithResponse(resourceGroupName, environmentName, name, context); + this.serviceClient().listSecretsWithResponse(resourceGroupName, environmentName, componentName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -116,15 +117,15 @@ public DaprComponent getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "daprComponents"); - if (name == null) { + String componentName = Utils.getValueFromIdByName(id, "daprComponents"); + if (componentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id))); } - return this.getWithResponse(resourceGroupName, environmentName, name, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -145,15 +146,15 @@ public Response getByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "daprComponents"); - if (name == null) { + String componentName = Utils.getValueFromIdByName(id, "daprComponents"); + if (componentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id))); } - return this.getWithResponse(resourceGroupName, environmentName, name, context); + return this.getWithResponse(resourceGroupName, environmentName, componentName, context); } public void deleteById(String id) { @@ -174,15 +175,15 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "daprComponents"); - if (name == null) { + String componentName = Utils.getValueFromIdByName(id, "daprComponents"); + if (componentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id))); } - this.deleteWithResponse(resourceGroupName, environmentName, name, Context.NONE); + this.deleteWithResponse(resourceGroupName, environmentName, componentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -203,15 +204,15 @@ public Response deleteByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "daprComponents"); - if (name == null) { + String componentName = Utils.getValueFromIdByName(id, "daprComponents"); + if (componentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id))); } - return this.deleteWithResponse(resourceGroupName, environmentName, name, context); + return this.deleteWithResponse(resourceGroupName, environmentName, componentName, context); } private DaprComponentsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java index f204d0aaca1c..83e1faa9d569 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java @@ -104,7 +104,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String name; + private String environmentName; public ManagedEnvironmentImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; @@ -116,7 +116,7 @@ public ManagedEnvironment create() { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), Context.NONE); return this; } @@ -125,7 +125,7 @@ public ManagedEnvironment create(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), context); return this; } @@ -133,7 +133,7 @@ public ManagedEnvironment create(Context context) { String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new ManagedEnvironmentInner(); this.serviceManager = serviceManager; - this.name = name; + this.environmentName = name; } public ManagedEnvironmentImpl update() { @@ -145,7 +145,7 @@ public ManagedEnvironment apply() { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), Context.NONE); return this; } @@ -154,7 +154,7 @@ public ManagedEnvironment apply(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), context); return this; } @@ -164,7 +164,7 @@ public ManagedEnvironment apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); } public ManagedEnvironment refresh() { @@ -172,7 +172,7 @@ public ManagedEnvironment refresh() { serviceManager .serviceClient() .getManagedEnvironments() - .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE) + .getByResourceGroupWithResponse(resourceGroupName, environmentName, Context.NONE) .getValue(); return this; } @@ -182,7 +182,7 @@ public ManagedEnvironment refresh(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .getByResourceGroupWithResponse(resourceGroupName, name, context) + .getByResourceGroupWithResponse(resourceGroupName, environmentName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java index e804165337f8..18703b5ad299 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java @@ -46,13 +46,14 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String envName; + private String environmentName; - private String name; + private String storageName; - public ManagedEnvironmentStorageImpl withExistingManagedEnvironment(String resourceGroupName, String envName) { + public ManagedEnvironmentStorageImpl withExistingManagedEnvironment( + String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; - this.envName = envName; + this.environmentName = environmentName; return this; } @@ -61,7 +62,8 @@ public ManagedEnvironmentStorage create() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, storageName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -71,7 +73,7 @@ public ManagedEnvironmentStorage create(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), context) + .createOrUpdateWithResponse(resourceGroupName, environmentName, storageName, this.innerModel(), context) .getValue(); return this; } @@ -80,7 +82,7 @@ public ManagedEnvironmentStorage create(Context context) { String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new ManagedEnvironmentStorageInner(); this.serviceManager = serviceManager; - this.name = name; + this.storageName = name; } public ManagedEnvironmentStorageImpl update() { @@ -92,7 +94,8 @@ public ManagedEnvironmentStorage apply() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, storageName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -102,7 +105,7 @@ public ManagedEnvironmentStorage apply(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), context) + .createOrUpdateWithResponse(resourceGroupName, environmentName, storageName, this.innerModel(), context) .getValue(); return this; } @@ -113,8 +116,8 @@ public ManagedEnvironmentStorage apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.envName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "storages"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.storageName = Utils.getValueFromIdByName(innerObject.id(), "storages"); } public ManagedEnvironmentStorage refresh() { @@ -122,7 +125,7 @@ public ManagedEnvironmentStorage refresh() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .getWithResponse(resourceGroupName, envName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, storageName, Context.NONE) .getValue(); return this; } @@ -132,7 +135,7 @@ public ManagedEnvironmentStorage refresh(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .getWithResponse(resourceGroupName, envName, name, context) + .getWithResponse(resourceGroupName, environmentName, storageName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java index fbf5e07de56d..3a446f025e19 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java @@ -93,14 +93,14 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getByResourceGroup( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -108,14 +108,14 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentInner environmentEnvelope, @HeaderParam("Accept") String accept, @@ -124,14 +124,14 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -139,14 +139,14 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({202}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> update( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentInner environmentEnvelope, @HeaderParam("Accept") String accept, @@ -485,7 +485,7 @@ public PagedIterable listByResourceGroup(String resourc * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -494,7 +494,7 @@ public PagedIterable listByResourceGroup(String resourc */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -511,8 +511,9 @@ private Mono> getByResourceGroupWithResponseAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -523,7 +524,7 @@ private Mono> getByResourceGroupWithResponseAs this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context)) @@ -534,7 +535,7 @@ private Mono> getByResourceGroupWithResponseAs * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -544,7 +545,7 @@ private Mono> getByResourceGroupWithResponseAs */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -561,8 +562,9 @@ private Mono> getByResourceGroupWithResponseAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -571,7 +573,7 @@ private Mono> getByResourceGroupWithResponseAs this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context); @@ -581,7 +583,7 @@ private Mono> getByResourceGroupWithResponseAs * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -589,8 +591,8 @@ private Mono> getByResourceGroupWithResponseAs * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String name) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name) + private Mono getByResourceGroupAsync(String resourceGroupName, String environmentName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, environmentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -605,22 +607,22 @@ private Mono getByResourceGroupAsync(String resourceGro * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Managed Environment used to host container apps. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String name) { - return getByResourceGroupAsync(resourceGroupName, name).block(); + public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String environmentName) { + return getByResourceGroupAsync(resourceGroupName, environmentName).block(); } /** * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -629,15 +631,15 @@ public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name, context).block(); + String resourceGroupName, String environmentName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, environmentName, context).block(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -647,7 +649,7 @@ public Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -664,8 +666,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -682,7 +685,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -694,7 +697,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -705,7 +708,10 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -722,8 +728,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -738,7 +745,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -749,7 +756,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -758,9 +765,9 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedEnvironmentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, environmentEnvelope); + createOrUpdateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope); return this .client .getLroResult( @@ -775,7 +782,7 @@ private PollerFlux, ManagedEnvironmentInner> * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -785,10 +792,13 @@ private PollerFlux, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedEnvironmentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context); + createOrUpdateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope, context); return this .client .getLroResult( @@ -803,7 +813,7 @@ private PollerFlux, ManagedEnvironmentInner> * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -812,15 +822,15 @@ private PollerFlux, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope).getSyncPoller(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -830,15 +840,19 @@ public SyncPoller, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context).getSyncPoller(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) + .getSyncPoller(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -847,8 +861,8 @@ public SyncPoller, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope) + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -857,7 +871,7 @@ private Mono createOrUpdateAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -867,8 +881,11 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context) + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -877,7 +894,7 @@ private Mono createOrUpdateAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -886,15 +903,15 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return createOrUpdateAsync(resourceGroupName, name, environmentEnvelope).block(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).block(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -904,22 +921,25 @@ public ManagedEnvironmentInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return createOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context).block(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return createOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String name) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -936,8 +956,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -948,7 +969,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context)) @@ -959,7 +980,7 @@ private Mono>> deleteWithResponseAsync(String resource * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -968,7 +989,7 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -985,8 +1006,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -995,7 +1017,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context); @@ -1005,15 +1027,15 @@ private Mono>> deleteWithResponseAsync( * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String environmentName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, environmentName); return this .client .getLroResult( @@ -1024,7 +1046,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1033,9 +1055,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, environmentName, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1045,22 +1067,22 @@ private PollerFlux, Void> beginDeleteAsync( * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName) { + return beginDeleteAsync(resourceGroupName, environmentName).getSyncPoller(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1068,30 +1090,33 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).getSyncPoller(); + public SyncPoller, Void> beginDelete( + String resourceGroupName, String environmentName, Context context) { + return beginDeleteAsync(resourceGroupName, environmentName, context).getSyncPoller(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String environmentName) { + return beginDeleteAsync(resourceGroupName, environmentName) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1099,44 +1124,46 @@ private Mono deleteAsync(String resourceGroupName, String name) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String environmentName, Context context) { + return beginDeleteAsync(resourceGroupName, environmentName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name) { - deleteAsync(resourceGroupName, name).block(); + public void delete(String resourceGroupName, String environmentName) { + deleteAsync(resourceGroupName, environmentName).block(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name, Context context) { - deleteAsync(resourceGroupName, name, context).block(); + public void delete(String resourceGroupName, String environmentName, Context context) { + deleteAsync(resourceGroupName, environmentName, context).block(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1145,7 +1172,7 @@ public void delete(String resourceGroupName, String name, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1162,8 +1189,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -1180,7 +1208,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1192,7 +1220,7 @@ private Mono>> updateWithResponseAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1202,7 +1230,10 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1219,8 +1250,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -1235,7 +1267,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1246,7 +1278,7 @@ private Mono>> updateWithResponseAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1255,8 +1287,9 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, name, environmentEnvelope); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + Mono>> mono = + updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope); return this .client .getLroResult( @@ -1267,7 +1300,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1277,10 +1310,13 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - updateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context); + updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1290,7 +1326,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1299,15 +1335,15 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope).getSyncPoller(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1317,15 +1353,18 @@ public SyncPoller, Void> beginUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context).getSyncPoller(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).getSyncPoller(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1333,8 +1372,9 @@ public SyncPoller, Void> beginUpdate( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope) + private Mono updateAsync( + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1343,7 +1383,7 @@ private Mono updateAsync(String resourceGroupName, String name, ManagedEnv * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1353,8 +1393,11 @@ private Mono updateAsync(String resourceGroupName, String name, ManagedEnv */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context) + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1363,22 +1406,22 @@ private Mono updateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - updateAsync(resourceGroupName, name, environmentEnvelope).block(); + public void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + updateAsync(resourceGroupName, environmentName, environmentEnvelope).block(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1387,8 +1430,11 @@ public void update(String resourceGroupName, String name, ManagedEnvironmentInne */ @ServiceMethod(returns = ReturnType.SINGLE) public void update( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - updateAsync(resourceGroupName, name, environmentEnvelope, context).block(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + updateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java index 03caab102a76..143dc935e872 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java @@ -49,8 +49,8 @@ public PagedIterable listByResourceGroup(String resourceGrou return Utils.mapPage(inner, inner1 -> new ManagedEnvironmentImpl(inner1, this.manager())); } - public ManagedEnvironment getByResourceGroup(String resourceGroupName, String name) { - ManagedEnvironmentInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, name); + public ManagedEnvironment getByResourceGroup(String resourceGroupName, String environmentName) { + ManagedEnvironmentInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, environmentName); if (inner != null) { return new ManagedEnvironmentImpl(inner, this.manager()); } else { @@ -59,9 +59,9 @@ public ManagedEnvironment getByResourceGroup(String resourceGroupName, String na } public Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, name, context); + this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, environmentName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -73,21 +73,24 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String name) { - this.serviceClient().delete(resourceGroupName, name); + public void deleteByResourceGroup(String resourceGroupName, String environmentName) { + this.serviceClient().delete(resourceGroupName, environmentName); } - public void delete(String resourceGroupName, String name, Context context) { - this.serviceClient().delete(resourceGroupName, name, context); + public void delete(String resourceGroupName, String environmentName, Context context) { + this.serviceClient().delete(resourceGroupName, environmentName, context); } - public void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - this.serviceClient().update(resourceGroupName, name, environmentEnvelope); + public void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + this.serviceClient().update(resourceGroupName, environmentName, environmentEnvelope); } public void update( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - this.serviceClient().update(resourceGroupName, name, environmentEnvelope, context); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + this.serviceClient().update(resourceGroupName, environmentName, environmentEnvelope, context); } public ManagedEnvironment getById(String id) { @@ -99,8 +102,8 @@ public ManagedEnvironment getById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (name == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -108,7 +111,7 @@ public ManagedEnvironment getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE).getValue(); + return this.getByResourceGroupWithResponse(resourceGroupName, environmentName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -120,8 +123,8 @@ public Response getByIdWithResponse(String id, Context conte String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (name == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -129,7 +132,7 @@ public Response getByIdWithResponse(String id, Context conte .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, name, context); + return this.getByResourceGroupWithResponse(resourceGroupName, environmentName, context); } public void deleteById(String id) { @@ -141,8 +144,8 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (name == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -150,7 +153,7 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - this.delete(resourceGroupName, name, Context.NONE); + this.delete(resourceGroupName, environmentName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { @@ -162,8 +165,8 @@ public void deleteByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String name = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (name == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -171,7 +174,7 @@ public void deleteByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - this.delete(resourceGroupName, name, context); + this.delete(resourceGroupName, environmentName, context); } private ManagedEnvironmentsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java index 844ed45e35a6..a54a31f81c32 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java @@ -60,14 +60,14 @@ private interface ManagedEnvironmentsStoragesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages") + + "/managedEnvironments/{environmentName}/storages") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -75,15 +75,15 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -91,15 +91,15 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentStorageInner storageEnvelope, @HeaderParam("Accept") String accept, @@ -108,15 +108,15 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -126,7 +126,7 @@ Mono> delete( * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -135,7 +135,7 @@ Mono> delete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync( - String resourceGroupName, String envName) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -152,8 +152,9 @@ private Mono> listWithRespon return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -164,7 +165,7 @@ private Mono> listWithRespon this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, + environmentName, this.client.getApiVersion(), accept, context)) @@ -175,7 +176,7 @@ private Mono> listWithRespon * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -185,7 +186,7 @@ private Mono> listWithRespon */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync( - String resourceGroupName, String envName, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -202,8 +203,9 @@ private Mono> listWithRespon return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -212,7 +214,7 @@ private Mono> listWithRespon this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, + environmentName, this.client.getApiVersion(), accept, context); @@ -222,15 +224,16 @@ private Mono> listWithRespon * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all storages for a managedEnvironment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync(String resourceGroupName, String envName) { - return listWithResponseAsync(resourceGroupName, envName) + private Mono listAsync( + String resourceGroupName, String environmentName) { + return listWithResponseAsync(resourceGroupName, environmentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -245,22 +248,22 @@ private Mono listAsync(String resourc * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all storages for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String envName) { - return listAsync(resourceGroupName, envName).block(); + public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String environmentName) { + return listAsync(resourceGroupName, environmentName).block(); } /** * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -269,16 +272,16 @@ public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse( - String resourceGroupName, String envName, Context context) { - return listWithResponseAsync(resourceGroupName, envName, context).block(); + String resourceGroupName, String environmentName, Context context) { + return listWithResponseAsync(resourceGroupName, environmentName, context).block(); } /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -286,7 +289,7 @@ public Response listWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String envName, String name) { + String resourceGroupName, String environmentName, String storageName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -303,11 +306,12 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -318,8 +322,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context)) @@ -330,8 +334,8 @@ private Mono> getWithResponseAsync( * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -340,7 +344,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String envName, String name, Context context) { + String resourceGroupName, String environmentName, String storageName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -357,11 +361,12 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -370,8 +375,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -381,16 +386,17 @@ private Mono> getWithResponseAsync( * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storage for a managedEnvironment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String envName, String name) { - return getWithResponseAsync(resourceGroupName, envName, name) + private Mono getAsync( + String resourceGroupName, String environmentName, String storageName) { + return getWithResponseAsync(resourceGroupName, environmentName, storageName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -405,24 +411,24 @@ private Mono getAsync(String resourceGroupName, * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storage for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentStorageInner get(String resourceGroupName, String envName, String name) { - return getAsync(resourceGroupName, envName, name).block(); + public ManagedEnvironmentStorageInner get(String resourceGroupName, String environmentName, String storageName) { + return getAsync(resourceGroupName, environmentName, storageName).block(); } /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -431,16 +437,16 @@ public ManagedEnvironmentStorageInner get(String resourceGroupName, String envNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String envName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, envName, name, context).block(); + String resourceGroupName, String environmentName, String storageName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, storageName, context).block(); } /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -450,7 +456,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -467,11 +476,12 @@ private Mono> createOrUpdateWithRespons return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } if (storageEnvelope == null) { return Mono @@ -488,8 +498,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -501,8 +511,8 @@ private Mono> createOrUpdateWithRespons * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,8 +524,8 @@ private Mono> createOrUpdateWithRespons @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, - String envName, - String name, + String environmentName, + String storageName, ManagedEnvironmentStorageInner storageEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -534,11 +544,12 @@ private Mono> createOrUpdateWithRespons return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } if (storageEnvelope == null) { return Mono @@ -553,8 +564,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -565,8 +576,8 @@ private Mono> createOrUpdateWithRespons * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -575,8 +586,11 @@ private Mono> createOrUpdateWithRespons */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, envName, name, storageEnvelope) + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, storageName, storageEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -591,8 +605,8 @@ private Mono createOrUpdateAsync( * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -601,16 +615,19 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentStorageInner createOrUpdate( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { - return createOrUpdateAsync(resourceGroupName, envName, name, storageEnvelope).block(); + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, storageName, storageEnvelope).block(); } /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,26 +638,29 @@ public ManagedEnvironmentStorageInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( String resourceGroupName, - String envName, - String name, + String environmentName, + String storageName, ManagedEnvironmentStorageInner storageEnvelope, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, envName, name, storageEnvelope, context).block(); + return createOrUpdateWithResponseAsync( + resourceGroupName, environmentName, storageName, storageEnvelope, context) + .block(); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String envName, String name) { + private Mono> deleteWithResponseAsync( + String resourceGroupName, String environmentName, String storageName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -657,11 +677,12 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -672,8 +693,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context)) @@ -684,8 +705,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -694,7 +715,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String envName, String name, Context context) { + String resourceGroupName, String environmentName, String storageName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -711,11 +732,12 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -724,8 +746,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -735,39 +757,40 @@ private Mono> deleteWithResponseAsync( * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String envName, String name) { - return deleteWithResponseAsync(resourceGroupName, envName, name).flatMap((Response res) -> Mono.empty()); + private Mono deleteAsync(String resourceGroupName, String environmentName, String storageName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, storageName) + .flatMap((Response res) -> Mono.empty()); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String envName, String name) { - deleteAsync(resourceGroupName, envName, name).block(); + public void delete(String resourceGroupName, String environmentName, String storageName) { + deleteAsync(resourceGroupName, environmentName, storageName).block(); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -775,7 +798,8 @@ public void delete(String resourceGroupName, String envName, String name) { * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, envName, name, context).block(); + public Response deleteWithResponse( + String resourceGroupName, String environmentName, String storageName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, storageName, context).block(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java index 5314a09b4d58..e76c2b9ba57d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java @@ -29,8 +29,8 @@ public ManagedEnvironmentsStoragesImpl( this.serviceManager = serviceManager; } - public ManagedEnvironmentStoragesCollection list(String resourceGroupName, String envName) { - ManagedEnvironmentStoragesCollectionInner inner = this.serviceClient().list(resourceGroupName, envName); + public ManagedEnvironmentStoragesCollection list(String resourceGroupName, String environmentName) { + ManagedEnvironmentStoragesCollectionInner inner = this.serviceClient().list(resourceGroupName, environmentName); if (inner != null) { return new ManagedEnvironmentStoragesCollectionImpl(inner, this.manager()); } else { @@ -39,9 +39,9 @@ public ManagedEnvironmentStoragesCollection list(String resourceGroupName, Strin } public Response listWithResponse( - String resourceGroupName, String envName, Context context) { + String resourceGroupName, String environmentName, Context context) { Response inner = - this.serviceClient().listWithResponse(resourceGroupName, envName, context); + this.serviceClient().listWithResponse(resourceGroupName, environmentName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -53,8 +53,9 @@ public Response listWithResponse( } } - public ManagedEnvironmentStorage get(String resourceGroupName, String envName, String name) { - ManagedEnvironmentStorageInner inner = this.serviceClient().get(resourceGroupName, envName, name); + public ManagedEnvironmentStorage get(String resourceGroupName, String environmentName, String storageName) { + ManagedEnvironmentStorageInner inner = + this.serviceClient().get(resourceGroupName, environmentName, storageName); if (inner != null) { return new ManagedEnvironmentStorageImpl(inner, this.manager()); } else { @@ -63,9 +64,9 @@ public ManagedEnvironmentStorage get(String resourceGroupName, String envName, S } public Response getWithResponse( - String resourceGroupName, String envName, String name, Context context) { + String resourceGroupName, String environmentName, String storageName, Context context) { Response inner = - this.serviceClient().getWithResponse(resourceGroupName, envName, name, context); + this.serviceClient().getWithResponse(resourceGroupName, environmentName, storageName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -77,12 +78,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String envName, String name) { - this.serviceClient().delete(resourceGroupName, envName, name); + public void delete(String resourceGroupName, String environmentName, String storageName) { + this.serviceClient().delete(resourceGroupName, environmentName, storageName); } - public Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, envName, name, context); + public Response deleteWithResponse( + String resourceGroupName, String environmentName, String storageName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, storageName, context); } public ManagedEnvironmentStorage getById(String id) { @@ -94,8 +96,8 @@ public ManagedEnvironmentStorage getById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String envName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (envName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -103,14 +105,14 @@ public ManagedEnvironmentStorage getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "storages"); - if (name == null) { + String storageName = Utils.getValueFromIdByName(id, "storages"); + if (storageName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storages'.", id))); } - return this.getWithResponse(resourceGroupName, envName, name, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, environmentName, storageName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -122,8 +124,8 @@ public Response getByIdWithResponse(String id, Contex String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String envName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (envName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -131,14 +133,14 @@ public Response getByIdWithResponse(String id, Contex .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "storages"); - if (name == null) { + String storageName = Utils.getValueFromIdByName(id, "storages"); + if (storageName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storages'.", id))); } - return this.getWithResponse(resourceGroupName, envName, name, context); + return this.getWithResponse(resourceGroupName, environmentName, storageName, context); } public void deleteById(String id) { @@ -150,8 +152,8 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String envName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (envName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -159,14 +161,14 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "storages"); - if (name == null) { + String storageName = Utils.getValueFromIdByName(id, "storages"); + if (storageName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storages'.", id))); } - this.deleteWithResponse(resourceGroupName, envName, name, Context.NONE); + this.deleteWithResponse(resourceGroupName, environmentName, storageName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -178,8 +180,8 @@ public Response deleteByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String envName = Utils.getValueFromIdByName(id, "managedEnvironments"); - if (envName == null) { + String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments"); + if (environmentName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -187,14 +189,14 @@ public Response deleteByIdWithResponse(String id, Context context) { .format( "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id))); } - String name = Utils.getValueFromIdByName(id, "storages"); - if (name == null) { + String storageName = Utils.getValueFromIdByName(id, "storages"); + if (storageName == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storages'.", id))); } - return this.deleteWithResponse(resourceGroupName, envName, name, context); + return this.deleteWithResponse(resourceGroupName, environmentName, storageName, context); } private ManagedEnvironmentsStoragesClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java index b4dc38d2ee4e..31d014fe5267 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java @@ -56,14 +56,14 @@ private interface NamespacesService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/checkNameAvailability") + + "/managedEnvironments/{environmentName}/checkNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> checkNameAvailability( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CheckNameAvailabilityRequest checkNameAvailabilityRequest, @HeaderParam("Accept") String accept, @@ -74,7 +74,7 @@ Mono> checkNameAvailability( * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -83,9 +83,7 @@ Mono> checkNameAvailability( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -102,10 +100,9 @@ private Mono> checkNameAvailability return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (checkNameAvailabilityRequest == null) { return Mono @@ -124,7 +121,7 @@ private Mono> checkNameAvailability this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), checkNameAvailabilityRequest, accept, @@ -136,7 +133,7 @@ private Mono> checkNameAvailability * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +144,7 @@ private Mono> checkNameAvailability @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) { if (this.client.getEndpoint() == null) { @@ -166,10 +163,9 @@ private Mono> checkNameAvailability return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (checkNameAvailabilityRequest == null) { return Mono @@ -186,7 +182,7 @@ private Mono> checkNameAvailability this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), checkNameAvailabilityRequest, accept, @@ -197,7 +193,7 @@ private Mono> checkNameAvailability * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -206,11 +202,8 @@ private Mono> checkNameAvailability */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest) + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, environmentName, checkNameAvailabilityRequest) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -225,7 +218,7 @@ private Mono checkNameAvailabilityAsync( * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -234,18 +227,15 @@ private Mono checkNameAvailabilityAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public CheckNameAvailabilityResponseInner checkNameAvailability( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { - return checkNameAvailabilityAsync(resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest) - .block(); + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + return checkNameAvailabilityAsync(resourceGroupName, environmentName, checkNameAvailabilityRequest).block(); } /** * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,11 +246,11 @@ public CheckNameAvailabilityResponseInner checkNameAvailability( @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) { return checkNameAvailabilityWithResponseAsync( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest, context) + resourceGroupName, environmentName, checkNameAvailabilityRequest, context) .block(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java index 2a963c915cfa..967fab661689 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java @@ -28,13 +28,11 @@ public NamespacesImpl( } public CheckNameAvailabilityResponse checkNameAvailability( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { CheckNameAvailabilityResponseInner inner = this .serviceClient() - .checkNameAvailability(resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest); + .checkNameAvailability(resourceGroupName, environmentName, checkNameAvailabilityRequest); if (inner != null) { return new CheckNameAvailabilityResponseImpl(inner, this.manager()); } else { @@ -44,14 +42,14 @@ public CheckNameAvailabilityResponse checkNameAvailability( public Response checkNameAvailabilityWithResponse( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) { Response inner = this .serviceClient() .checkNameAvailabilityWithResponse( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest, context); + resourceGroupName, environmentName, checkNameAvailabilityRequest, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java index 018bed54a785..3db189804ba5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java @@ -60,7 +60,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String containerAppName; - private String name; + private String sourceControlName; public SourceControlImpl withExistingContainerApp(String resourceGroupName, String containerAppName) { this.resourceGroupName = resourceGroupName; @@ -73,7 +73,8 @@ public SourceControl create() { serviceManager .serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE); + .createOrUpdate( + resourceGroupName, containerAppName, sourceControlName, this.innerModel(), Context.NONE); return this; } @@ -82,14 +83,14 @@ public SourceControl create(Context context) { serviceManager .serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), context); return this; } SourceControlImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new SourceControlInner(); this.serviceManager = serviceManager; - this.name = name; + this.sourceControlName = name; } public SourceControlImpl update() { @@ -101,7 +102,8 @@ public SourceControl apply() { serviceManager .serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE); + .createOrUpdate( + resourceGroupName, containerAppName, sourceControlName, this.innerModel(), Context.NONE); return this; } @@ -110,7 +112,7 @@ public SourceControl apply(Context context) { serviceManager .serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), context); return this; } @@ -121,7 +123,7 @@ public SourceControl apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.containerAppName = Utils.getValueFromIdByName(innerObject.id(), "containerApps"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "sourcecontrols"); + this.sourceControlName = Utils.getValueFromIdByName(innerObject.id(), "sourcecontrols"); } public SourceControl refresh() { @@ -129,7 +131,7 @@ public SourceControl refresh() { serviceManager .serviceClient() .getContainerAppsSourceControls() - .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE) + .getWithResponse(resourceGroupName, containerAppName, sourceControlName, Context.NONE) .getValue(); return this; } @@ -139,7 +141,7 @@ public SourceControl refresh(Context context) { serviceManager .serviceClient() .getContainerAppsSourceControls() - .getWithResponse(resourceGroupName, containerAppName, name, context) + .getWithResponse(resourceGroupName, containerAppName, sourceControlName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java index c403f6d2c72a..280ac919822b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java @@ -115,13 +115,13 @@ interface WithLocation { /** The stage of the Certificate definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, managedEnvironmentName. + * Specifies resourceGroupName, environmentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @return the next definition stage. */ - WithCreate withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName); + WithCreate withExistingManagedEnvironment(String resourceGroupName, String environmentName); } /** * The stage of the Certificate definition which contains all the minimum required properties for the resource diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java index bb3066ee38f5..6da4c95d16f9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java @@ -14,20 +14,20 @@ public interface Certificates { * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String managedEnvironmentName); + PagedIterable list(String resourceGroupName, String environmentName); /** * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -35,28 +35,28 @@ public interface Certificates { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context); + PagedIterable list(String resourceGroupName, String environmentName, Context context); /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Certificate. */ - Certificate get(String resourceGroupName, String managedEnvironmentName, String name); + Certificate get(String resourceGroupName, String environmentName, String certificateName); /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -65,27 +65,27 @@ public interface Certificates { * @return the specified Certificate along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context); + String resourceGroupName, String environmentName, String certificateName, Context context); /** * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String managedEnvironmentName, String name); + void delete(String resourceGroupName, String environmentName, String certificateName); /** * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -94,7 +94,7 @@ Response getWithResponse( * @return the {@link Response}. */ Response deleteWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context); + String resourceGroupName, String environmentName, String certificateName, Context context); /** * Get the specified Certificate. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java index d3ef7ded477d..ec161698e9dd 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java @@ -339,6 +339,30 @@ interface WithTemplate { */ ContainerApp refresh(Context context); + /** + * Analyzes a custom hostname for a Container App. + * + * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request + * is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return custom domain analysis. + */ + CustomHostnameAnalysisResult listCustomHostnameAnalysis(); + + /** + * Analyzes a custom hostname for a Container App. + * + * @param customHostname Custom hostname. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request + * is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return custom domain analysis along with {@link Response}. + */ + Response listCustomHostnameAnalysisWithResponse( + String customHostname, Context context); + /** * List secrets for a container app. * diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java index 7dbe17388bdc..58477d3d806b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java @@ -62,70 +62,71 @@ public interface ContainerApps { * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Container App. */ - ContainerApp getByResourceGroup(String resourceGroupName, String name); + ContainerApp getByResourceGroup(String resourceGroupName, String containerAppName); /** * Get the properties of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Container App along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context); + Response getByResourceGroupWithResponse( + String resourceGroupName, String containerAppName, Context context); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByResourceGroup(String resourceGroupName, String name); + void deleteByResourceGroup(String resourceGroupName, String containerAppName); /** * Description for Delete a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String name, Context context); + void delete(String resourceGroupName, String containerAppName, Context context); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope); + void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope); /** * Patches a Container App using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param containerAppEnvelope Properties of a Container App that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,7 +134,8 @@ public interface ContainerApps { * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context); + void update( + String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context); /** * Analyzes a custom hostname for a Container App. @@ -168,20 +170,20 @@ Response listCustomHostnameAnalysisWithResponse( * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return container App Secrets Collection ARM resource. */ - SecretsCollection listSecrets(String resourceGroupName, String name); + SecretsCollection listSecrets(String resourceGroupName, String containerAppName); /** * List secrets for a container app. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Container App. + * @param containerAppName Name of the Container App. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -189,7 +191,8 @@ Response listCustomHostnameAnalysisWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return container App Secrets Collection ARM resource along with {@link Response}. */ - Response listSecretsWithResponse(String resourceGroupName, String name, Context context); + Response listSecretsWithResponse( + String resourceGroupName, String containerAppName, Context context); /** * Get the properties of a Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsAuthConfigs.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsAuthConfigs.java index 4851d2d93ec8..a059a85f5419 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsAuthConfigs.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsAuthConfigs.java @@ -42,21 +42,21 @@ public interface ContainerAppsAuthConfigs { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a AuthConfig of a Container App. */ - AuthConfig get(String resourceGroupName, String containerAppName, String name); + AuthConfig get(String resourceGroupName, String containerAppName, String authConfigName); /** * Get a AuthConfig of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -65,27 +65,27 @@ public interface ContainerAppsAuthConfigs { * @return a AuthConfig of a Container App along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String authConfigName, Context context); /** * Description for Delete a Container App AuthConfig. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String containerAppName, String name); + void delete(String resourceGroupName, String containerAppName, String authConfigName); /** * Description for Delete a Container App AuthConfig. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App AuthConfig. + * @param authConfigName Name of the Container App AuthConfig. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -93,7 +93,8 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String containerAppName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String containerAppName, String authConfigName, Context context); /** * Get a AuthConfig of a Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisionReplicas.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisionReplicas.java index ebaf0f24d074..82d3de9d5e54 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisionReplicas.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisionReplicas.java @@ -15,14 +15,14 @@ public interface ContainerAppsRevisionReplicas { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a replica for a Container App Revision. */ - Replica getReplica(String resourceGroupName, String containerAppName, String revisionName, String name); + Replica getReplica(String resourceGroupName, String containerAppName, String revisionName, String replicaName); /** * Get a replica for a Container App Revision. @@ -30,7 +30,7 @@ public interface ContainerAppsRevisionReplicas { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -39,7 +39,7 @@ public interface ContainerAppsRevisionReplicas { * @return a replica for a Container App Revision along with {@link Response}. */ Response getReplicaWithResponse( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context); /** * List replicas for a Container App Revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java index bb7434d20999..967230379074 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java @@ -44,21 +44,21 @@ PagedIterable listRevisions( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a revision of a Container App. */ - Revision getRevision(String resourceGroupName, String containerAppName, String name); + Revision getRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Get a revision of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -67,27 +67,27 @@ PagedIterable listRevisions( * @return a revision of a Container App along with {@link Response}. */ Response getRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Activates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void activateRevision(String resourceGroupName, String containerAppName, String name); + void activateRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Activates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -96,27 +96,27 @@ Response getRevisionWithResponse( * @return the {@link Response}. */ Response activateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Deactivates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deactivateRevision(String resourceGroupName, String containerAppName, String name); + void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Deactivates a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -125,27 +125,27 @@ Response activateRevisionWithResponse( * @return the {@link Response}. */ Response deactivateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); /** * Restarts a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void restartRevision(String resourceGroupName, String containerAppName, String name); + void restartRevision(String resourceGroupName, String containerAppName, String revisionName); /** * Restarts a revision for a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -154,5 +154,5 @@ Response deactivateRevisionWithResponse( * @return the {@link Response}. */ Response restartRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String revisionName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java index d457bc2e5385..cf0c0744649d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java @@ -44,21 +44,21 @@ public interface ContainerAppsSourceControls { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SourceControl of a Container App. */ - SourceControl get(String resourceGroupName, String containerAppName, String name); + SourceControl get(String resourceGroupName, String containerAppName, String sourceControlName); /** * Get a SourceControl of a Container App. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -67,34 +67,34 @@ public interface ContainerAppsSourceControls { * @return a SourceControl of a Container App along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String containerAppName, String name, Context context); + String resourceGroupName, String containerAppName, String sourceControlName, Context context); /** * Description for Delete a Container App SourceControl. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String containerAppName, String name); + void delete(String resourceGroupName, String containerAppName, String sourceControlName); /** * Description for Delete a Container App SourceControl. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App SourceControl. + * @param sourceControlName Name of the Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String containerAppName, String name, Context context); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context); /** * Get a SourceControl of a Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java index 3c18a3d516a8..133f3dc3e14f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java @@ -42,21 +42,21 @@ public interface DaprComponents { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component. */ - DaprComponent get(String resourceGroupName, String environmentName, String name); + DaprComponent get(String resourceGroupName, String environmentName, String componentName); /** * Get a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -65,27 +65,27 @@ public interface DaprComponents { * @return a dapr component along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); /** * Delete a Dapr Component from a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String environmentName, String name); + void delete(String resourceGroupName, String environmentName, String componentName); /** * Delete a Dapr Component from a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -93,28 +93,29 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String environmentName, String componentName, Context context); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dapr component Secrets Collection ARM resource. */ - DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name); + DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String componentName); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -123,7 +124,7 @@ Response getWithResponse( * @return dapr component Secrets Collection ARM resource along with {@link Response}. */ Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); /** * Get a dapr component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java index dbee8699b7e9..ccd67dbece2d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java @@ -64,13 +64,13 @@ interface Blank extends WithParentResource { /** The stage of the ManagedEnvironmentStorage definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, envName. + * Specifies resourceGroupName, environmentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @return the next definition stage. */ - WithCreate withExistingManagedEnvironment(String resourceGroupName, String envName); + WithCreate withExistingManagedEnvironment(String resourceGroupName, String environmentName); } /** * The stage of the ManagedEnvironmentStorage definition which contains all the minimum required properties for diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java index 7fe8270230a0..2477278f7a9d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java @@ -62,20 +62,20 @@ public interface ManagedEnvironments { * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Managed Environment used to host container apps. */ - ManagedEnvironment getByResourceGroup(String resourceGroupName, String name); + ManagedEnvironment getByResourceGroup(String resourceGroupName, String environmentName); /** * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -83,51 +83,52 @@ public interface ManagedEnvironments { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Managed Environment used to host container apps along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context); + Response getByResourceGroupWithResponse( + String resourceGroupName, String environmentName, Context context); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByResourceGroup(String resourceGroupName, String name); + void deleteByResourceGroup(String resourceGroupName, String environmentName); /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String name, Context context); + void delete(String resourceGroupName, String environmentName, Context context); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope); + void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope); /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +136,8 @@ public interface ManagedEnvironments { * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context); + void update( + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context); /** * Get the properties of a Managed Environment used to host container apps. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentsStorages.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentsStorages.java index ca0bc45d4480..914cd071857e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentsStorages.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentsStorages.java @@ -13,20 +13,20 @@ public interface ManagedEnvironmentsStorages { * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all storages for a managedEnvironment. */ - ManagedEnvironmentStoragesCollection list(String resourceGroupName, String envName); + ManagedEnvironmentStoragesCollection list(String resourceGroupName, String environmentName); /** * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -35,28 +35,28 @@ public interface ManagedEnvironmentsStorages { * @return all storages for a managedEnvironment along with {@link Response}. */ Response listWithResponse( - String resourceGroupName, String envName, Context context); + String resourceGroupName, String environmentName, Context context); /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storage for a managedEnvironment. */ - ManagedEnvironmentStorage get(String resourceGroupName, String envName, String name); + ManagedEnvironmentStorage get(String resourceGroupName, String environmentName, String storageName); /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -65,27 +65,27 @@ Response listWithResponse( * @return storage for a managedEnvironment along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String envName, String name, Context context); + String resourceGroupName, String environmentName, String storageName, Context context); /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String envName, String name); + void delete(String resourceGroupName, String environmentName, String storageName); /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -93,7 +93,8 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String environmentName, String storageName, Context context); /** * Get storage for a managedEnvironment. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java index 0da6c9e6591a..31ec2a5bd7a8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java @@ -13,7 +13,7 @@ public interface Namespaces { * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -22,15 +22,13 @@ public interface Namespaces { * @return the check availability result. */ CheckNameAvailabilityResponse checkNameAvailability( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest); + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest); /** * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,7 +39,7 @@ CheckNameAvailabilityResponse checkNameAvailability( */ Response checkNameAvailabilityWithResponse( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context); }