diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md index df7bc59abf64..a5a37836ad46 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-20) + +- 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..63cdd1c776f2 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(" (") @@ -301,7 +301,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro } /** - * Gets the resource collection API of ContainerAppsAuthConfigs. + * Gets the resource collection API of ContainerAppsAuthConfigs. It manages AuthConfig. * * @return Resource collection API of ContainerAppsAuthConfigs. */ @@ -314,7 +314,7 @@ public ContainerAppsAuthConfigs containerAppsAuthConfigs() { } /** - * Gets the resource collection API of ContainerApps. + * Gets the resource collection API of ContainerApps. It manages ContainerApp. * * @return Resource collection API of ContainerApps. */ @@ -352,7 +352,7 @@ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() { } /** - * Gets the resource collection API of DaprComponents. + * Gets the resource collection API of DaprComponents. It manages DaprComponent. * * @return Resource collection API of DaprComponents. */ @@ -376,7 +376,7 @@ public Operations operations() { } /** - * Gets the resource collection API of ManagedEnvironments. + * Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment. * * @return Resource collection API of ManagedEnvironments. */ @@ -388,7 +388,7 @@ public ManagedEnvironments managedEnvironments() { } /** - * Gets the resource collection API of Certificates. + * Gets the resource collection API of Certificates. It manages Certificate. * * @return Resource collection API of Certificates. */ @@ -412,7 +412,7 @@ public Namespaces namespaces() { } /** - * Gets the resource collection API of ManagedEnvironmentsStorages. + * Gets the resource collection API of ManagedEnvironmentsStorages. It manages ManagedEnvironmentStorage. * * @return Resource collection API of ManagedEnvironmentsStorages. */ @@ -425,7 +425,7 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() { } /** - * Gets the resource collection API of ContainerAppsSourceControls. + * Gets the resource collection API of ContainerAppsSourceControls. It manages SourceControl. * * @return Resource collection API of ContainerAppsSourceControls. */ 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..678a87d3ac7c 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. + * 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. + * 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,30 +111,30 @@ AuthConfigInner createOrUpdate( Response createOrUpdateWithResponse( String resourceGroupName, String containerAppName, - String name, + String authConfigName, AuthConfigInner authConfigEnvelope, Context context); /** - * Description for Delete a Container App AuthConfig. + * 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. */ @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. + * 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..5ee0e85fc0d8 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. + * 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. + * 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. + * 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. + * 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. + * 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. + * 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. + * 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. + * 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..80fac7537516 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. + * 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. + * 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,16 +117,16 @@ SyncPoller, SourceControlInner> beginCreateOrUpda SyncPoller, SourceControlInner> beginCreateOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context); /** - * Description for Create or update the SourceControl for a Container App. + * 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 @@ -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. + * 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,16 +159,16 @@ SourceControlInner createOrUpdate( SourceControlInner createOrUpdate( String resourceGroupName, String containerAppName, - String name, + String sourceControlName, SourceControlInner sourceControlEnvelope, Context context); /** - * Description for Delete a Container App SourceControl. + * 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. @@ -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. + * 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. + * 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. + * 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..c0449ab74286 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 @@ -50,6 +50,10 @@ public HttpSettings httpSettings() { return this.innerModel().httpSettings(); } + public String resourceGroupName() { + return resourceGroupName; + } + public AuthConfigInner innerModel() { return this.innerObject; } @@ -62,7 +66,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 +79,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 +90,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 +99,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 +111,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 +122,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 +134,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 +142,7 @@ public AuthConfig refresh() { serviceManager .serviceClient() .getContainerAppsAuthConfigs() - .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE) + .getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE) .getValue(); return this; } @@ -144,7 +152,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..0e95dfc5f011 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 @@ -60,6 +60,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public CertificateInner innerModel() { return this.innerObject; } @@ -70,15 +74,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 +92,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 +102,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 +111,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 +125,7 @@ public Certificate apply() { .serviceClient() .getCertificates() .updateWithResponse( - resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, Context.NONE) + resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE) .getValue(); return this; } @@ -130,7 +135,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 +146,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 +155,7 @@ public Certificate refresh() { serviceManager .serviceClient() .getCertificates() - .getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE) .getValue(); return this; } @@ -159,7 +165,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..419aa65a6c9f 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,48 +447,41 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync(String resourceGroupName, String environmentName, String certificateName) { + return getWithResponseAsync(resourceGroupName, environmentName, certificateName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +490,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 +509,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 +529,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 +549,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -570,8 +562,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 +575,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 +595,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 +613,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -633,8 +625,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,24 +636,20 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, + String environmentName, + String certificateName, + CertificateInner certificateEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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,42 +658,35 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +698,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 +711,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 +720,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 +737,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 +754,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context)) @@ -785,8 +766,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 +776,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 +793,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 +808,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context); @@ -838,40 +819,40 @@ 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) - .flatMap((Response res) -> Mono.empty()); + private Mono deleteAsync(String resourceGroupName, String environmentName, String certificateName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName) + .flatMap(ignored -> Mono.empty()); } /** * 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 +861,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 +880,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 +900,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 +923,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -952,8 +936,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 +949,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 +969,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 +990,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -1018,8 +1002,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,24 +1013,20 @@ private Mono> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { - return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { + return updateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +1035,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 +1059,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..3a5ee744f975 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; @@ -97,6 +98,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ContainerAppInner innerModel() { return this.innerObject; } @@ -107,7 +112,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 +124,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 +133,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 +152,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 +161,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 +170,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 +178,7 @@ public ContainerApp refresh() { serviceManager .serviceClient() .getContainerApps() - .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE) + .getByResourceGroupWithResponse(resourceGroupName, containerAppName, Context.NONE) .getValue(); return this; } @@ -183,17 +188,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/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java index c8cf38f7761f..c55e77b650a3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -39,7 +40,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -302,10 +302,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** 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..3a7906db0ca5 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,23 +430,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 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync(String resourceGroupName, String containerAppName, String authConfigName) { + return getWithResponseAsync(resourceGroupName, containerAppName, authConfigName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -454,15 +447,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 +463,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,16 +472,16 @@ 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(); } /** - * Description for Create or update the AuthConfig for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -498,7 +491,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 +512,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 +531,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), authConfigEnvelope, accept, @@ -547,11 +540,11 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Description for Create or update the AuthConfig for a Container App. + * 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. @@ -564,7 +557,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 +580,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 +597,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), authConfigEnvelope, accept, @@ -612,11 +605,11 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Description for Create or update the AuthConfig for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -626,24 +619,17 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, name, authConfigEnvelope) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, authConfigName, authConfigEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Description for Create or update the AuthConfig for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -652,16 +638,16 @@ 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(); } /** - * Description for Create or update the AuthConfig for a Container App. + * 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. @@ -674,19 +660,20 @@ 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(); } /** - * Description for Delete a Container App AuthConfig. + * 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 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 +681,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 +702,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 +715,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context)) @@ -736,11 +723,11 @@ private Mono> deleteWithResponseAsync( } /** - * Description for Delete a Container App AuthConfig. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -749,7 +736,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 +757,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,50 +768,50 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + authConfigName, this.client.getApiVersion(), accept, context); } /** - * Description for Delete a Container App AuthConfig. + * 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 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) - .flatMap((Response res) -> Mono.empty()); + private Mono deleteAsync(String resourceGroupName, String containerAppName, String authConfigName) { + return deleteWithResponseAsync(resourceGroupName, containerAppName, authConfigName) + .flatMap(ignored -> Mono.empty()); } /** - * Description for Delete a Container App AuthConfig. + * 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 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(); } /** - * Description for Delete a Container App AuthConfig. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -833,8 +820,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..e458a6c8c21f 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,45 +614,38 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getByResourceGroupAsync(String resourceGroupName, String containerAppName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, containerAppName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +654,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. + * 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 +671,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 +688,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 +707,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -720,10 +716,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Description for Create or update a Container App. + * 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 +729,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 +746,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 +763,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -774,10 +771,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Description for Create or update a Container App. + * 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 +783,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( @@ -800,10 +797,10 @@ private PollerFlux, ContainerAppInner> beginCreate } /** - * Description for Create or update a Container App. + * 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 +810,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( @@ -824,10 +821,10 @@ private PollerFlux, ContainerAppInner> beginCreate } /** - * Description for Create or update a Container App. + * 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 +833,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. + * 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 +851,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. + * 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,17 +869,17 @@ 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); } /** - * Description for Create or update a Container App. + * 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,17 +889,17 @@ 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); } /** - * Description for Create or update a Container App. + * 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 +908,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. + * 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 +926,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. + * 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 +959,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 +972,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context)) @@ -980,10 +980,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Description for Delete a Container App. + * 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 +992,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 +1009,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,25 +1020,25 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), accept, context); } /** - * Description for Delete a Container App. + * 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( @@ -1045,10 +1046,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Description for Delete a Container App. + * 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,34 +1058,34 @@ 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); } /** - * Description for Delete a Container App. + * 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. + * 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 +1093,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. + * 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. + * 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 +1127,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. + * 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. + * 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 +1175,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 +1192,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 +1211,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -1216,7 +1223,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 +1233,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 +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 (containerAppName == null) { + return Mono + .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } if (containerAppEnvelope == null) { return Mono @@ -1259,7 +1267,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + containerAppName, this.client.getApiVersion(), containerAppEnvelope, accept, @@ -1270,7 +1278,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 +1287,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 +1300,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 +1310,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 +1323,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 +1332,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 +1350,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 +1366,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 +1377,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 +1387,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 +1397,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 +1420,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(); } /** @@ -1529,14 +1540,7 @@ private Mono> listCustomHostnameAnal private Mono listCustomHostnameAnalysisAsync( String resourceGroupName, String containerAppName, String customHostname) { return listCustomHostnameAnalysisWithResponseAsync(resourceGroupName, containerAppName, customHostname) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1554,14 +1558,7 @@ private Mono listCustomHostnameAnalysisAsync( String resourceGroupName, String containerAppName) { final String customHostname = null; return listCustomHostnameAnalysisWithResponseAsync(resourceGroupName, containerAppName, customHostname) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1604,7 +1601,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 +1609,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 +1627,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 +1641,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 +1651,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 +1661,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 +1678,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 +1690,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), - name, + containerAppName, accept, context); } @@ -1699,45 +1699,38 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono listSecretsAsync(String resourceGroupName, String containerAppName) { + return listSecretsWithResponseAsync(resourceGroupName, containerAppName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +1739,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..8a64d9269b4d 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,16 +222,9 @@ private Mono> getReplicaWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getReplicaAsync( - String resourceGroupName, String containerAppName, String revisionName, String name) { - return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, name) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, replicaName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -240,7 +233,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 +241,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 +251,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 +260,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(); } /** @@ -394,14 +388,7 @@ private Mono> listReplicasWithResponseAsync( private Mono listReplicasAsync( String resourceGroupName, String containerAppName, String revisionName) { return listReplicasWithResponseAsync(resourceGroupName, containerAppName, revisionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** 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..a480adfb7c7e 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,23 +471,17 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getRevisionAsync( + String resourceGroupName, String containerAppName, String revisionName) { + return getRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -495,15 +489,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 +505,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 +514,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 +523,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 +531,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 +552,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 +565,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -583,7 +577,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 +586,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 +607,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 +618,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -635,16 +629,16 @@ 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) - .flatMap((Response res) -> Mono.empty()); + private Mono activateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) + .flatMap(ignored -> Mono.empty()); } /** @@ -652,14 +646,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 +661,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 +670,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 +679,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 +687,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 +708,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 +721,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -739,7 +733,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 +742,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 +763,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 +774,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -791,16 +785,16 @@ 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) - .flatMap((Response res) -> Mono.empty()); + private Mono deactivateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) + .flatMap(ignored -> Mono.empty()); } /** @@ -808,14 +802,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 +817,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 +826,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 +835,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 +843,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 +864,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 +877,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -895,7 +889,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 +898,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 +919,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 +930,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -947,16 +941,16 @@ 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) - .flatMap((Response res) -> Mono.empty()); + private Mono restartRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) + .flatMap(ignored -> Mono.empty()); } /** @@ -964,14 +958,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 +973,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 +982,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..1b7ddaef4a88 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,23 +440,17 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync( + String resourceGroupName, String containerAppName, String sourceControlName) { + return getWithResponseAsync(resourceGroupName, containerAppName, sourceControlName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -462,15 +458,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 +474,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,16 +483,16 @@ 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(); } /** - * Description for Create or update the SourceControl for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -505,7 +501,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 +525,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 +545,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), sourceControlEnvelope, accept, @@ -554,11 +554,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Description for Create or update the SourceControl for a Container App. + * 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. @@ -570,7 +570,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 +593,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 +611,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), sourceControlEnvelope, accept, @@ -618,11 +619,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Description for Create or update the SourceControl for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -631,9 +632,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( @@ -645,11 +650,11 @@ private PollerFlux, SourceControlInner> beginCrea } /** - * Description for Create or update the SourceControl for a Container App. + * 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. @@ -661,12 +666,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( @@ -674,11 +680,11 @@ private PollerFlux, SourceControlInner> beginCrea } /** - * Description for Create or update the SourceControl for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -687,17 +693,20 @@ 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(); } /** - * Description for Create or update the SourceControl for a Container App. + * 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. @@ -709,19 +718,20 @@ 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(); } /** - * Description for Create or update the SourceControl for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -730,18 +740,21 @@ 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); } /** - * Description for Create or update the SourceControl for a Container App. + * 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. @@ -753,20 +766,21 @@ 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); } /** - * Description for Create or update the SourceControl for a Container App. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -775,16 +789,20 @@ 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(); } /** - * Description for Create or update the SourceControl for a Container App. + * 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. @@ -796,18 +814,20 @@ 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(); } /** - * Description for Delete a Container App SourceControl. + * 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 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 +835,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 +856,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 +870,7 @@ private Mono>> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context)) @@ -857,11 +878,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Description for Delete a Container App SourceControl. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -870,7 +891,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 +912,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,18 +924,18 @@ private Mono>> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + sourceControlName, this.client.getApiVersion(), accept, context); } /** - * Description for Delete a Container App SourceControl. + * 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 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 +943,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( @@ -930,11 +953,11 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Description for Delete a Container App SourceControl. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -943,21 +966,21 @@ 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); } /** - * Description for Delete a Container App SourceControl. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -965,16 +988,16 @@ 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(); } /** - * Description for Delete a Container App SourceControl. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -983,34 +1006,34 @@ 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(); } /** - * Description for Delete a Container App SourceControl. + * 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 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); } /** - * Description for Delete a Container App SourceControl. + * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1018,41 +1041,42 @@ 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); } /** - * Description for Delete a Container App SourceControl. + * 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 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(); } /** - * Description for Delete a Container App SourceControl. + * 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 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..6c90afbc1afc 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 @@ -79,6 +79,10 @@ public List scopes() { } } + public String resourceGroupName() { + return resourceGroupName; + } + public DaprComponentInner innerModel() { return this.innerObject; } @@ -91,7 +95,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 +108,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 +119,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 +128,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 +140,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 +151,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 +164,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 +172,7 @@ public DaprComponent refresh() { serviceManager .serviceClient() .getDaprComponents() - .getWithResponse(resourceGroupName, environmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE) .getValue(); return this; } @@ -174,19 +182,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..b1b7edd5495d 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,23 +445,16 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync(String resourceGroupName, String environmentName, String componentName) { + return getWithResponseAsync(resourceGroupName, environmentName, componentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -469,15 +462,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 +478,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 +487,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 +496,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 +505,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 +529,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 +548,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -565,7 +561,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 +573,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 +596,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 +613,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -629,7 +625,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,16 +634,12 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, name, daprComponentEnvelope) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, componentName, daprComponentEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -655,7 +647,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 +656,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 +668,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 +680,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 +693,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 +701,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 +722,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 +735,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -751,7 +747,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 +756,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 +777,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 +788,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -803,16 +799,16 @@ 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) - .flatMap((Response res) -> Mono.empty()); + private Mono deleteAsync(String resourceGroupName, String environmentName, String componentName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, componentName) + .flatMap(ignored -> Mono.empty()); } /** @@ -820,14 +816,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 +831,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 +840,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 +849,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 +858,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 +879,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 +892,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -908,7 +904,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 +914,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 +935,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 +946,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -961,7 +957,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,16 +965,9 @@ private Mono> listSecretsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSecretsAsync( - String resourceGroupName, String environmentName, String name) { - return listSecretsWithResponseAsync(resourceGroupName, environmentName, name) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, String environmentName, String componentName) { + return listSecretsWithResponseAsync(resourceGroupName, environmentName, componentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -986,15 +975,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 +992,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 +1001,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..75dba1b16bcb 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 @@ -94,6 +94,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ManagedEnvironmentInner innerModel() { return this.innerObject; } @@ -104,7 +108,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 +120,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 +129,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 +137,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 +149,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 +158,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 +168,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 +176,7 @@ public ManagedEnvironment refresh() { serviceManager .serviceClient() .getManagedEnvironments() - .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE) + .getByResourceGroupWithResponse(resourceGroupName, environmentName, Context.NONE) .getValue(); return this; } @@ -182,7 +186,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..06812b119670 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 @@ -36,6 +36,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ManagedEnvironmentStorageInner innerModel() { return this.innerObject; } @@ -46,13 +50,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 +66,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 +77,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 +86,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 +98,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 +109,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 +120,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 +129,7 @@ public ManagedEnvironmentStorage refresh() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .getWithResponse(resourceGroupName, envName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, storageName, Context.NONE) .getValue(); return this; } @@ -132,7 +139,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..f49b7b00fa51 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,38 +591,31 @@ private Mono> getByResourceGroupWithResponseAs * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String name) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getByResourceGroupAsync(String resourceGroupName, String environmentName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, environmentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +624,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 +642,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 +659,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 +678,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -694,7 +690,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 +701,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 +721,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 +738,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -749,7 +749,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 +758,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 +775,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 +785,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 +806,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 +815,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 +833,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 +854,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 +864,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 +874,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 +887,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 +896,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 +914,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 +949,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 +962,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context)) @@ -959,7 +973,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 +982,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 +999,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 +1010,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context); @@ -1005,15 +1020,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 +1039,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 +1048,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 +1060,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 +1083,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 +1117,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 +1165,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 +1182,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 +1201,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1192,7 +1213,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 +1223,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 +1243,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 +1260,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1246,7 +1271,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 +1280,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 +1293,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 +1303,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 +1319,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 +1328,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 +1346,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 +1365,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 +1376,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 +1386,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 +1399,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 +1423,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..5460228c78fa 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,45 +224,39 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono listAsync( + String resourceGroupName, String environmentName) { + return listWithResponseAsync(resourceGroupName, environmentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +265,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 +282,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 +299,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 +315,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context)) @@ -330,8 +327,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 +337,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 +354,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 +368,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -381,48 +379,42 @@ 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) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync( + String resourceGroupName, String environmentName, String storageName) { + return getWithResponseAsync(resourceGroupName, environmentName, storageName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +423,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 +442,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 +462,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 +484,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -501,8 +497,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 +510,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 +530,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 +550,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -565,8 +562,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,24 +572,20 @@ private Mono> createOrUpdateWithRespons */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, envName, name, storageEnvelope) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, storageName, storageEnvelope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +594,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 +617,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 +656,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 +672,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 +684,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 +694,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 +711,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 +725,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -735,39 +736,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(ignored -> 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 +777,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..8dc0a74267be 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,26 +202,16 @@ private Mono> checkNameAvailability */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, environmentName, checkNameAvailabilityRequest) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * 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 +220,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 +239,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..87912df4a417 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 @@ -48,6 +48,10 @@ public GithubActionConfiguration githubActionConfiguration() { return this.innerModel().githubActionConfiguration(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SourceControlInner innerModel() { return this.innerObject; } @@ -60,7 +64,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 +77,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 +87,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 +106,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 +116,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 +127,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 +135,7 @@ public SourceControl refresh() { serviceManager .serviceClient() .getContainerAppsSourceControls() - .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE) + .getWithResponse(resourceGroupName, containerAppName, sourceControlName, Context.NONE) .getValue(); return this; } @@ -139,7 +145,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/AuthConfig.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java index 726de14a283a..f1ae910fdcd3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java @@ -70,6 +70,13 @@ public interface AuthConfig { */ HttpSettings httpSettings(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner object. * 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..d54e84215e26 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 @@ -75,6 +75,13 @@ public interface Certificate { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner object. * @@ -115,13 +122,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..8793ada5e92c 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 @@ -126,6 +126,13 @@ public interface ContainerApp { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner object. * @@ -339,6 +346,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..eea4e5414e71 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. + * 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. + * 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. @@ -215,7 +218,7 @@ Response listCustomHostnameAnalysisWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Description for Delete a Container App. + * Delete a Container App. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +229,7 @@ Response listCustomHostnameAnalysisWithResponse( void deleteById(String id); /** - * Description for Delete a Container App. + * Delete a Container App. * * @param id the resource ID. * @param context The context to associate with this operation. 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..73736b132e78 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. + * 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. + * 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. @@ -121,7 +122,7 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Description for Delete a Container App AuthConfig. + * Delete a Container App AuthConfig. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,7 +133,7 @@ Response getWithResponse( void deleteById(String id); /** - * Description for Delete a Container App AuthConfig. + * Delete a Container App AuthConfig. * * @param id the resource ID. * @param context The context to associate with this operation. 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..d113787ae751 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. + * 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. + * 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. @@ -122,7 +122,7 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Description for Delete a Container App SourceControl. + * Delete a Container App SourceControl. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,7 +133,7 @@ Response getWithResponse( void deleteById(String id); /** - * Description for Delete a Container App SourceControl. + * Delete a Container App SourceControl. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java index 7655dd3e48f1..b2dd92608005 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java @@ -89,6 +89,13 @@ public interface DaprComponent { */ List scopes(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner object. * 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/ManagedEnvironment.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java index 83a065209bb5..ae6a433bef4c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java @@ -134,6 +134,13 @@ public interface ManagedEnvironment { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner object. * 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..d083358ee9c3 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 @@ -45,6 +45,13 @@ public interface ManagedEnvironmentStorage { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentStorageInner object. * @@ -64,13 +71,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); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java index bbd108508f8f..187120ae66d9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java @@ -67,6 +67,13 @@ public interface SourceControl { */ GithubActionConfiguration githubActionConfiguration(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.SourceControlInner object. *