From 9388474bce0abfa0ae3c99d789406f5408d6587f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 10 May 2022 19:34:55 +0000 Subject: [PATCH] CodeGen from PR 19005 in Azure/azure-rest-api-specs Merge bb86ee142e7292a01e579cd0ce68ffcefa6e421d into b71da9841769cfdf17c43d3dc58195f1237f1bed --- .../CHANGELOG.md | 4 +- .../README.md | 2 +- .../ContainerAppsApiManager.java | 2 +- .../fluent/CertificatesClient.java | 60 +-- .../ContainerAppsRevisionReplicasClient.java | 8 +- .../fluent/ContainerAppsRevisionsClient.java | 32 +- .../fluent/DaprComponentsClient.java | 36 +- .../fluent/ManagedEnvironmentsClient.java | 57 +-- .../ManagedEnvironmentsStoragesClient.java | 50 +-- .../fluent/NamespacesClient.java | 10 +- .../implementation/CertificateImpl.java | 28 +- .../CertificatesClientImpl.java | 364 +++++++++--------- .../implementation/CertificatesImpl.java | 65 ++-- ...ntainerAppsRevisionReplicasClientImpl.java | 43 ++- .../ContainerAppsRevisionReplicasImpl.java | 10 +- .../ContainerAppsRevisionsClientImpl.java | 169 ++++---- .../ContainerAppsRevisionsImpl.java | 38 +- .../implementation/DaprComponentImpl.java | 26 +- .../DaprComponentsClientImpl.java | 179 +++++---- .../implementation/DaprComponentsImpl.java | 49 +-- .../ManagedEnvironmentImpl.java | 18 +- .../ManagedEnvironmentStorageImpl.java | 29 +- .../ManagedEnvironmentsClientImpl.java | 304 ++++++++------- .../ManagedEnvironmentsImpl.java | 51 +-- ...ManagedEnvironmentsStoragesClientImpl.java | 268 +++++++------ .../ManagedEnvironmentsStoragesImpl.java | 66 ++-- .../implementation/NamespacesClientImpl.java | 52 +-- .../implementation/NamespacesImpl.java | 10 +- .../appcontainers/models/Certificate.java | 6 +- .../appcontainers/models/Certificates.java | 32 +- .../models/ContainerAppsRevisionReplicas.java | 8 +- .../models/ContainerAppsRevisions.java | 32 +- .../appcontainers/models/DaprComponents.java | 25 +- .../models/ManagedEnvironmentStorage.java | 6 +- .../models/ManagedEnvironments.java | 26 +- .../models/ManagedEnvironmentsStorages.java | 33 +- .../appcontainers/models/Namespaces.java | 10 +- 37 files changed, 1162 insertions(+), 1046 deletions(-) diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md index df7bc59abf64f..08e90bdfa37bf 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-10) + +- 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 b0ca9f7388c70..c456e0cf3e79f 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 c33a48ccf429c..264a8f2bec65c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java @@ -243,7 +243,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro .append("-") .append("com.azure.resourcemanager.appcontainers") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java index 31418f533203f..32178bc86902a 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/ContainerAppsRevisionReplicasClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java index 7e302a5a4788b..33cedc706bc74 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 ec91000bad4cd..c5255955c77a6 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/DaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java index 4147f026ca8c4..5a659b7517d82 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 352a540410fdf..338dd07ce2e96 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 8d7fac32d8478..02cea5645fd73 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 7c907d58a42b1..1a0dc5841f94b 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/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java index ec63db7d40173..29c9315863cd4 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java @@ -70,15 +70,15 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String managedEnvironmentName; + private String environmentName; - private String name; + private String certificateName; private CertificatePatch updateCertificateEnvelope; - public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName) { + public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; - this.managedEnvironmentName = managedEnvironmentName; + this.environmentName = environmentName; return this; } @@ -88,7 +88,7 @@ public Certificate create() { .serviceClient() .getCertificates() .createOrUpdateWithResponse( - resourceGroupName, managedEnvironmentName, name, this.innerModel(), Context.NONE) + resourceGroupName, environmentName, certificateName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -98,7 +98,8 @@ public Certificate create(Context context) { serviceManager .serviceClient() .getCertificates() - .createOrUpdateWithResponse(resourceGroupName, managedEnvironmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, certificateName, this.innerModel(), context) .getValue(); return this; } @@ -106,7 +107,7 @@ public Certificate create(Context context) { CertificateImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new CertificateInner(); this.serviceManager = serviceManager; - this.name = name; + this.certificateName = name; } public CertificateImpl update() { @@ -120,7 +121,7 @@ public Certificate apply() { .serviceClient() .getCertificates() .updateWithResponse( - resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, Context.NONE) + resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE) .getValue(); return this; } @@ -130,7 +131,8 @@ public Certificate apply(Context context) { serviceManager .serviceClient() .getCertificates() - .updateWithResponse(resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, context) + .updateWithResponse( + resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, context) .getValue(); return this; } @@ -140,8 +142,8 @@ public Certificate apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.managedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "certificates"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "certificates"); } public Certificate refresh() { @@ -149,7 +151,7 @@ public Certificate refresh() { serviceManager .serviceClient() .getCertificates() - .getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE) .getValue(); return this; } @@ -159,7 +161,7 @@ public Certificate refresh(Context context) { serviceManager .serviceClient() .getCertificates() - .getWithResponse(resourceGroupName, managedEnvironmentName, name, context) + .getWithResponse(resourceGroupName, environmentName, certificateName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java index b4d7f53d01421..fbf023d7dca51 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java @@ -64,14 +64,14 @@ private interface CertificatesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates") + + "/managedEnvironments/{environmentName}/certificates") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -79,15 +79,15 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -95,15 +95,15 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CertificateInner certificateEnvelope, @HeaderParam("Accept") String accept, @@ -112,15 +112,15 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -128,15 +128,15 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Patch( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}") + + "/managedEnvironments/{environmentName}/certificates/{certificateName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> update( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CertificatePatch certificateEnvelope, @HeaderParam("Accept") String accept, @@ -157,7 +157,7 @@ Mono> listNext( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -166,7 +166,7 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( - String resourceGroupName, String managedEnvironmentName) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -183,10 +183,9 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -197,7 +196,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), accept, context)) @@ -217,7 +216,7 @@ private Mono> listSinglePageAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -227,7 +226,7 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( - String resourceGroupName, String managedEnvironmentName, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -244,10 +243,9 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -256,7 +254,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), accept, context) @@ -275,16 +273,16 @@ private Mono> listSinglePageAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String managedEnvironmentName) { + private PagedFlux listAsync(String resourceGroupName, String environmentName) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName), + () -> listSinglePageAsync(resourceGroupName, environmentName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -292,7 +290,7 @@ private PagedFlux listAsync(String resourceGroupName, String m * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -300,10 +298,9 @@ private PagedFlux listAsync(String resourceGroupName, String m * @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String managedEnvironmentName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String environmentName, Context context) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName, context), + () -> listSinglePageAsync(resourceGroupName, environmentName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -311,22 +308,22 @@ private PagedFlux listAsync( * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String managedEnvironmentName) { - return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName)); + public PagedIterable list(String resourceGroupName, String environmentName) { + return new PagedIterable<>(listAsync(resourceGroupName, environmentName)); } /** * Get the Certificates in a given managed environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -334,17 +331,16 @@ public PagedIterable list(String resourceGroupName, String man * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String managedEnvironmentName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName, context)); + public PagedIterable list(String resourceGroupName, String environmentName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, environmentName, context)); } /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -352,7 +348,7 @@ public PagedIterable list( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -369,13 +365,13 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -386,8 +382,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context)) @@ -398,8 +394,8 @@ private Mono> getWithResponseAsync( * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -408,7 +404,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { + String resourceGroupName, String environmentName, String certificateName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -425,13 +421,13 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -440,8 +436,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context); @@ -451,16 +447,16 @@ private Mono> getWithResponseAsync( * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String managedEnvironmentName, String name) { - return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name) + private Mono getAsync(String resourceGroupName, String environmentName, String certificateName) { + return getWithResponseAsync(resourceGroupName, environmentName, certificateName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -475,24 +471,24 @@ private Mono getAsync(String resourceGroupName, String managed * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name) { - return getAsync(resourceGroupName, managedEnvironmentName, name).block(); + public CertificateInner get(String resourceGroupName, String environmentName, String certificateName) { + return getAsync(resourceGroupName, environmentName, certificateName).block(); } /** * Get the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -501,16 +497,16 @@ public CertificateInner get(String resourceGroupName, String managedEnvironmentN */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block(); + String resourceGroupName, String environmentName, String certificateName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, certificateName, context).block(); } /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -520,7 +516,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) { + String resourceGroupName, + String environmentName, + String certificateName, + CertificateInner certificateEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -537,13 +536,13 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope != null) { certificateEnvelope.validate(); @@ -557,8 +556,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -570,8 +569,8 @@ private Mono> createOrUpdateWithResponseAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -583,8 +582,8 @@ private Mono> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificateInner certificateEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -603,13 +602,13 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope != null) { certificateEnvelope.validate(); @@ -621,8 +620,8 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -633,8 +632,8 @@ private Mono> createOrUpdateWithResponseAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -644,8 +643,11 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + String resourceGroupName, + String environmentName, + String certificateName, + CertificateInner certificateEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -660,8 +662,8 @@ private Mono createOrUpdateAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -670,9 +672,9 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { final CertificateInner certificateEnvelope = null; - return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -687,25 +689,25 @@ private Mono createOrUpdateAsync( * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name) { + public CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName) { final CertificateInner certificateEnvelope = null; - return createOrUpdateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block(); + return createOrUpdateAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope).block(); } /** * Create or Update a Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Certificate to be created or updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -717,12 +719,12 @@ public CertificateInner createOrUpdate(String resourceGroupName, String managedE @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificateInner certificateEnvelope, Context context) { return createOrUpdateWithResponseAsync( - resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context) + resourceGroupName, environmentName, certificateName, certificateEnvelope, context) .block(); } @@ -730,8 +732,8 @@ public Response createOrUpdateWithResponse( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -739,7 +741,7 @@ public Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name) { + String resourceGroupName, String environmentName, String certificateName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -756,13 +758,13 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -773,8 +775,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context)) @@ -785,8 +787,8 @@ private Mono> deleteWithResponseAsync( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -795,7 +797,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { + String resourceGroupName, String environmentName, String certificateName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -812,13 +814,13 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -827,8 +829,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), accept, context); @@ -838,16 +840,16 @@ private Mono> deleteWithResponseAsync( * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String managedEnvironmentName, String name) { - return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name) + private Mono deleteAsync(String resourceGroupName, String environmentName, String certificateName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName) .flatMap((Response res) -> Mono.empty()); } @@ -855,23 +857,23 @@ private Mono deleteAsync(String resourceGroupName, String managedEnvironme * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String managedEnvironmentName, String name) { - deleteAsync(resourceGroupName, managedEnvironmentName, name).block(); + public void delete(String resourceGroupName, String environmentName, String certificateName) { + deleteAsync(resourceGroupName, environmentName, certificateName).block(); } /** * Deletes the specified Certificate. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -880,16 +882,16 @@ public void delete(String resourceGroupName, String managedEnvironmentName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( - String resourceGroupName, String managedEnvironmentName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block(); + String resourceGroupName, String environmentName, String certificateName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName, context).block(); } /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -899,7 +901,10 @@ public Response deleteWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -916,13 +921,13 @@ private Mono> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope == null) { return Mono @@ -939,8 +944,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -952,8 +957,8 @@ private Mono> updateWithResponseAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -965,8 +970,8 @@ private Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificatePatch certificateEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -985,13 +990,13 @@ private Mono> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (certificateName == null) { + return Mono + .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null.")); } if (certificateEnvelope == null) { return Mono @@ -1006,8 +1011,8 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, - name, + environmentName, + certificateName, this.client.getApiVersion(), certificateEnvelope, accept, @@ -1018,8 +1023,8 @@ private Mono> updateWithResponseAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1029,8 +1034,11 @@ private Mono> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { - return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope) + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { + return updateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -1045,8 +1053,8 @@ private Mono updateAsync( * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1055,16 +1063,19 @@ private Mono updateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public CertificateInner update( - String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) { - return updateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block(); + String resourceGroupName, + String environmentName, + String certificateName, + CertificatePatch certificateEnvelope) { + return updateAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope).block(); } /** * Patches a certificate. Currently only patching of tags is supported. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. - * @param name Name of the Certificate. + * @param environmentName Name of the Managed Environment. + * @param certificateName Name of the Certificate. * @param certificateEnvelope Properties of a certificate that need to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1076,11 +1087,12 @@ public CertificateInner update( @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( String resourceGroupName, - String managedEnvironmentName, - String name, + String environmentName, + String certificateName, CertificatePatch certificateEnvelope, Context context) { - return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context) + return updateWithResponseAsync( + resourceGroupName, environmentName, certificateName, certificateEnvelope, context) .block(); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java index 3259b8bfdb39b..a90933faa0568 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/ContainerAppsRevisionReplicasClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java index b6b447b1b2e50..95f8f44df8f0b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java @@ -59,7 +59,7 @@ private interface ContainerAppsRevisionReplicasService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{revisionName}/replicas/{name}") + + "/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getReplica( @@ -68,7 +68,7 @@ Mono> getReplica( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, @PathParam("revisionName") String revisionName, - @PathParam("name") String name, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -96,7 +96,7 @@ Mono> listReplicas( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -105,7 +105,7 @@ Mono> listReplicas( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getReplicaWithResponseAsync( - String resourceGroupName, String containerAppName, String revisionName, String name) { + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -129,8 +129,8 @@ private Mono> getReplicaWithResponseAsync( if (revisionName == null) { return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -143,7 +143,7 @@ private Mono> getReplicaWithResponseAsync( resourceGroupName, containerAppName, revisionName, - name, + replicaName, this.client.getApiVersion(), accept, context)) @@ -156,7 +156,7 @@ private Mono> getReplicaWithResponseAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -166,7 +166,7 @@ private Mono> getReplicaWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getReplicaWithResponseAsync( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -190,8 +190,8 @@ private Mono> getReplicaWithResponseAsync( if (revisionName == null) { return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -202,7 +202,7 @@ private Mono> getReplicaWithResponseAsync( resourceGroupName, containerAppName, revisionName, - name, + replicaName, this.client.getApiVersion(), accept, context); @@ -214,7 +214,7 @@ private Mono> getReplicaWithResponseAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -222,8 +222,8 @@ private Mono> getReplicaWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getReplicaAsync( - String resourceGroupName, String containerAppName, String revisionName, String name) { - return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, name) + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, replicaName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -240,7 +240,7 @@ private Mono getReplicaAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -248,8 +248,8 @@ private Mono getReplicaAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ReplicaInner getReplica( - String resourceGroupName, String containerAppName, String revisionName, String name) { - return getReplicaAsync(resourceGroupName, containerAppName, revisionName, name).block(); + String resourceGroupName, String containerAppName, String revisionName, String replicaName) { + return getReplicaAsync(resourceGroupName, containerAppName, revisionName, replicaName).block(); } /** @@ -258,7 +258,7 @@ public ReplicaInner getReplica( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param revisionName Name of the Container App Revision. - * @param name Name of the Container App Revision Replica. + * @param replicaName Name of the Container App Revision Replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -267,8 +267,9 @@ public ReplicaInner getReplica( */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getReplicaWithResponse( - String resourceGroupName, String containerAppName, String revisionName, String name, Context context) { - return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context) { + return getReplicaWithResponseAsync(resourceGroupName, containerAppName, revisionName, replicaName, context) + .block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java index 191fc44410502..567bd0b4d88eb 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 72978fff9d9ab..0f3336813ac83 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java @@ -77,7 +77,7 @@ Mono> listRevisions( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}") + + "/{containerAppName}/revisions/{revisionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getRevision( @@ -85,7 +85,7 @@ Mono> getRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -93,7 +93,7 @@ Mono> getRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/activate") + + "/{containerAppName}/revisions/{revisionName}/activate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> activateRevision( @@ -101,7 +101,7 @@ Mono> activateRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -109,7 +109,7 @@ Mono> activateRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/deactivate") + + "/{containerAppName}/revisions/{revisionName}/deactivate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> deactivateRevision( @@ -117,7 +117,7 @@ Mono> deactivateRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -125,7 +125,7 @@ Mono> deactivateRevision( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" - + "/{containerAppName}/revisions/{name}/restart") + + "/{containerAppName}/revisions/{revisionName}/restart") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> restartRevision( @@ -133,7 +133,7 @@ Mono> restartRevision( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("name") String name, + @PathParam("revisionName") String revisionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -365,7 +365,7 @@ public PagedIterable listRevisions( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -373,7 +373,7 @@ public PagedIterable listRevisions( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -394,8 +394,8 @@ private Mono> getRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -407,7 +407,7 @@ private Mono> getRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -419,7 +419,7 @@ private Mono> getRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -428,7 +428,7 @@ private Mono> getRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -449,8 +449,8 @@ private Mono> getRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -460,7 +460,7 @@ private Mono> getRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -471,15 +471,16 @@ private Mono> getRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a revision of a Container App on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return getRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono getRevisionAsync( + String resourceGroupName, String containerAppName, String revisionName) { + return getRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -495,15 +496,15 @@ private Mono getRevisionAsync(String resourceGroupName, String co * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a revision of a Container App. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RevisionInner getRevision(String resourceGroupName, String containerAppName, String name) { - return getRevisionAsync(resourceGroupName, containerAppName, name).block(); + public RevisionInner getRevision(String resourceGroupName, String containerAppName, String revisionName) { + return getRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -511,7 +512,7 @@ public RevisionInner getRevision(String resourceGroupName, String containerAppNa * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -520,8 +521,8 @@ public RevisionInner getRevision(String resourceGroupName, String containerAppNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return getRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return getRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -529,7 +530,7 @@ public Response getRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -537,7 +538,7 @@ public Response getRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> activateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -558,8 +559,8 @@ private Mono> activateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -571,7 +572,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -583,7 +584,7 @@ private Mono> activateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -592,7 +593,7 @@ private Mono> activateRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> activateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -613,8 +614,8 @@ private Mono> activateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -624,7 +625,7 @@ private Mono> activateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -635,15 +636,15 @@ private Mono> activateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono activateRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono activateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -652,14 +653,14 @@ private Mono activateRevisionAsync(String resourceGroupName, String contai * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void activateRevision(String resourceGroupName, String containerAppName, String name) { - activateRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void activateRevision(String resourceGroupName, String containerAppName, String revisionName) { + activateRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -667,7 +668,7 @@ public void activateRevision(String resourceGroupName, String containerAppName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -676,8 +677,8 @@ public void activateRevision(String resourceGroupName, String containerAppName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response activateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return activateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -685,7 +686,7 @@ public Response activateRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -693,7 +694,7 @@ public Response activateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deactivateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -714,8 +715,8 @@ private Mono> deactivateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -727,7 +728,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -739,7 +740,7 @@ private Mono> deactivateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -748,7 +749,7 @@ private Mono> deactivateRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deactivateRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -769,8 +770,8 @@ private Mono> deactivateRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -780,7 +781,7 @@ private Mono> deactivateRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -791,15 +792,15 @@ private Mono> deactivateRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deactivateRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono deactivateRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -808,14 +809,14 @@ private Mono deactivateRevisionAsync(String resourceGroupName, String cont * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deactivateRevision(String resourceGroupName, String containerAppName, String name) { - deactivateRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName) { + deactivateRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -823,7 +824,7 @@ public void deactivateRevision(String resourceGroupName, String containerAppName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -832,8 +833,8 @@ public void deactivateRevision(String resourceGroupName, String containerAppName */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deactivateRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return deactivateRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** @@ -841,7 +842,7 @@ public Response deactivateRevisionWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -849,7 +850,7 @@ public Response deactivateRevisionWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name) { + String resourceGroupName, String containerAppName, String revisionName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -870,8 +871,8 @@ private Mono> restartRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -883,7 +884,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context)) @@ -895,7 +896,7 @@ private Mono> restartRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -904,7 +905,7 @@ private Mono> restartRevisionWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartRevisionWithResponseAsync( - String resourceGroupName, String containerAppName, String name, Context context) { + String resourceGroupName, String containerAppName, String revisionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -925,8 +926,8 @@ private Mono> restartRevisionWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (revisionName == null) { + return Mono.error(new IllegalArgumentException("Parameter revisionName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -936,7 +937,7 @@ private Mono> restartRevisionWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, containerAppName, - name, + revisionName, this.client.getApiVersion(), accept, context); @@ -947,15 +948,15 @@ private Mono> restartRevisionWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartRevisionAsync(String resourceGroupName, String containerAppName, String name) { - return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, name) + private Mono restartRevisionAsync(String resourceGroupName, String containerAppName, String revisionName) { + return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName) .flatMap((Response res) -> Mono.empty()); } @@ -964,14 +965,14 @@ private Mono restartRevisionAsync(String resourceGroupName, String contain * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restartRevision(String resourceGroupName, String containerAppName, String name) { - restartRevisionAsync(resourceGroupName, containerAppName, name).block(); + public void restartRevision(String resourceGroupName, String containerAppName, String revisionName) { + restartRevisionAsync(resourceGroupName, containerAppName, revisionName).block(); } /** @@ -979,7 +980,7 @@ public void restartRevision(String resourceGroupName, String containerAppName, S * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. - * @param name Name of the Container App Revision. + * @param revisionName Name of the Container App Revision. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -988,8 +989,8 @@ public void restartRevision(String resourceGroupName, String containerAppName, S */ @ServiceMethod(returns = ReturnType.SINGLE) public Response restartRevisionWithResponse( - String resourceGroupName, String containerAppName, String name, Context context) { - return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, name, context).block(); + String resourceGroupName, String containerAppName, String revisionName, Context context) { + return restartRevisionWithResponseAsync(resourceGroupName, containerAppName, revisionName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java index 92a5033ce15e0..f840af74979e0 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/DaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java index 6a4868cff3922..c43afdfe68ebb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java @@ -91,7 +91,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String environmentName; - private String name; + private String componentName; public DaprComponentImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; @@ -104,7 +104,8 @@ public DaprComponent create() { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -114,7 +115,8 @@ public DaprComponent create(Context context) { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), context) .getValue(); return this; } @@ -122,7 +124,7 @@ public DaprComponent create(Context context) { DaprComponentImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new DaprComponentInner(); this.serviceManager = serviceManager; - this.name = name; + this.componentName = name; } public DaprComponentImpl update() { @@ -134,7 +136,8 @@ public DaprComponent apply() { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -144,7 +147,8 @@ public DaprComponent apply(Context context) { serviceManager .serviceClient() .getDaprComponents() - .createOrUpdateWithResponse(resourceGroupName, environmentName, name, this.innerModel(), context) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, componentName, this.innerModel(), context) .getValue(); return this; } @@ -156,7 +160,7 @@ public DaprComponent apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "daprComponents"); + this.componentName = Utils.getValueFromIdByName(innerObject.id(), "daprComponents"); } public DaprComponent refresh() { @@ -164,7 +168,7 @@ public DaprComponent refresh() { serviceManager .serviceClient() .getDaprComponents() - .getWithResponse(resourceGroupName, environmentName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE) .getValue(); return this; } @@ -174,19 +178,19 @@ public DaprComponent refresh(Context context) { serviceManager .serviceClient() .getDaprComponents() - .getWithResponse(resourceGroupName, environmentName, name, context) + .getWithResponse(resourceGroupName, environmentName, componentName, context) .getValue(); return this; } public DaprSecretsCollection listSecrets() { - return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, name); + return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, componentName); } public Response listSecretsWithResponse(Context context) { return serviceManager .daprComponents() - .listSecretsWithResponse(resourceGroupName, environmentName, name, context); + .listSecretsWithResponse(resourceGroupName, environmentName, componentName, context); } public DaprComponentImpl withComponentType(String componentType) { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java index 32649ddfb212b..3214e57d274d6 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java @@ -79,7 +79,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @@ -87,7 +87,7 @@ Mono> get( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -95,7 +95,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @@ -103,7 +103,7 @@ Mono> createOrUpdate( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DaprComponentInner daprComponentEnvelope, @HeaderParam("Accept") String accept, @@ -112,7 +112,7 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @@ -120,7 +120,7 @@ Mono> delete( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -128,7 +128,7 @@ Mono> delete( @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets") + + "/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> listSecrets( @@ -136,7 +136,7 @@ Mono> listSecrets( @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("environmentName") String environmentName, - @PathParam("name") String name, + @PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -339,7 +339,7 @@ public PagedIterable list(String resourceGroupName, String e * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -347,7 +347,7 @@ public PagedIterable list(String resourceGroupName, String e */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -368,8 +368,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -381,7 +381,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -393,7 +393,7 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -402,7 +402,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -423,8 +423,8 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -434,7 +434,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -445,15 +445,15 @@ private Mono> getWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String environmentName, String name) { - return getWithResponseAsync(resourceGroupName, environmentName, name) + private Mono getAsync(String resourceGroupName, String environmentName, String componentName) { + return getWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -469,15 +469,15 @@ private Mono getAsync(String resourceGroupName, String envir * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DaprComponentInner get(String resourceGroupName, String environmentName, String name) { - return getAsync(resourceGroupName, environmentName, name).block(); + public DaprComponentInner get(String resourceGroupName, String environmentName, String componentName) { + return getAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -485,7 +485,7 @@ public DaprComponentInner get(String resourceGroupName, String environmentName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -494,8 +494,8 @@ public DaprComponentInner get(String resourceGroupName, String environmentName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** @@ -503,7 +503,7 @@ public Response getWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -512,7 +512,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -533,8 +536,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } if (daprComponentEnvelope == null) { return Mono @@ -552,7 +555,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -565,7 +568,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,7 +580,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String environmentName, - String name, + String componentName, DaprComponentInner daprComponentEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -600,8 +603,8 @@ private Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } if (daprComponentEnvelope == null) { return Mono @@ -617,7 +620,7 @@ private Mono> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), daprComponentEnvelope, accept, @@ -629,7 +632,7 @@ private Mono> createOrUpdateWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -638,8 +641,11 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, name, daprComponentEnvelope) + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, componentName, daprComponentEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -655,7 +661,7 @@ private Mono createOrUpdateAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -664,8 +670,11 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public DaprComponentInner createOrUpdate( - String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope) { - return createOrUpdateAsync(resourceGroupName, environmentName, name, daprComponentEnvelope).block(); + String resourceGroupName, + String environmentName, + String componentName, + DaprComponentInner daprComponentEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, componentName, daprComponentEnvelope).block(); } /** @@ -673,7 +682,7 @@ public DaprComponentInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param daprComponentEnvelope Configuration details of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -685,10 +694,11 @@ public DaprComponentInner createOrUpdate( public Response createOrUpdateWithResponse( String resourceGroupName, String environmentName, - String name, + String componentName, DaprComponentInner daprComponentEnvelope, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, name, daprComponentEnvelope, context) + return createOrUpdateWithResponseAsync( + resourceGroupName, environmentName, componentName, daprComponentEnvelope, context) .block(); } @@ -697,7 +707,7 @@ public Response createOrUpdateWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -705,7 +715,7 @@ public Response createOrUpdateWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -726,8 +736,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -739,7 +749,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -751,7 +761,7 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -760,7 +770,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -781,8 +791,8 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -792,7 +802,7 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -803,15 +813,15 @@ private Mono> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String environmentName, String name) { - return deleteWithResponseAsync(resourceGroupName, environmentName, name) + private Mono deleteAsync(String resourceGroupName, String environmentName, String componentName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap((Response res) -> Mono.empty()); } @@ -820,14 +830,14 @@ private Mono deleteAsync(String resourceGroupName, String environmentName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String environmentName, String name) { - deleteAsync(resourceGroupName, environmentName, name).block(); + public void delete(String resourceGroupName, String environmentName, String componentName) { + deleteAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -835,7 +845,7 @@ public void delete(String resourceGroupName, String environmentName, String name * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -844,8 +854,8 @@ public void delete(String resourceGroupName, String environmentName, String name */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** @@ -853,7 +863,7 @@ public Response deleteWithResponse( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -862,7 +872,7 @@ public Response deleteWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecretsWithResponseAsync( - String resourceGroupName, String environmentName, String name) { + String resourceGroupName, String environmentName, String componentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -883,8 +893,8 @@ private Mono> listSecretsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -896,7 +906,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context)) @@ -908,7 +918,7 @@ private Mono> listSecretsWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -918,7 +928,7 @@ private Mono> listSecretsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSecretsWithResponseAsync( - String resourceGroupName, String environmentName, String name, Context context) { + String resourceGroupName, String environmentName, String componentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -939,8 +949,8 @@ private Mono> listSecretsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (componentName == null) { + return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -950,7 +960,7 @@ private Mono> listSecretsWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, environmentName, - name, + componentName, this.client.getApiVersion(), accept, context); @@ -961,7 +971,7 @@ private Mono> listSecretsWithResponseAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -969,8 +979,8 @@ private Mono> listSecretsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSecretsAsync( - String resourceGroupName, String environmentName, String name) { - return listSecretsWithResponseAsync(resourceGroupName, environmentName, name) + String resourceGroupName, String environmentName, String componentName) { + return listSecretsWithResponseAsync(resourceGroupName, environmentName, componentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -986,15 +996,16 @@ private Mono listSecretsAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dapr component Secrets Collection ARM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name) { - return listSecretsAsync(resourceGroupName, environmentName, name).block(); + public DaprSecretsCollectionInner listSecrets( + String resourceGroupName, String environmentName, String componentName) { + return listSecretsAsync(resourceGroupName, environmentName, componentName).block(); } /** @@ -1002,7 +1013,7 @@ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String e * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1011,8 +1022,8 @@ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String e */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context) { - return listSecretsWithResponseAsync(resourceGroupName, environmentName, name, context).block(); + String resourceGroupName, String environmentName, String componentName, Context context) { + return listSecretsWithResponseAsync(resourceGroupName, environmentName, componentName, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java index da515dbdebe67..84cbb60acc243 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 f204d0aaca1c8..83e1faa9d5692 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java @@ -104,7 +104,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String name; + private String environmentName; public ManagedEnvironmentImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; @@ -116,7 +116,7 @@ public ManagedEnvironment create() { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), Context.NONE); return this; } @@ -125,7 +125,7 @@ public ManagedEnvironment create(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), context); return this; } @@ -133,7 +133,7 @@ public ManagedEnvironment create(Context context) { String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new ManagedEnvironmentInner(); this.serviceManager = serviceManager; - this.name = name; + this.environmentName = name; } public ManagedEnvironmentImpl update() { @@ -145,7 +145,7 @@ public ManagedEnvironment apply() { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), Context.NONE); return this; } @@ -154,7 +154,7 @@ public ManagedEnvironment apply(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .createOrUpdate(resourceGroupName, name, this.innerModel(), context); + .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), context); return this; } @@ -164,7 +164,7 @@ public ManagedEnvironment apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); } public ManagedEnvironment refresh() { @@ -172,7 +172,7 @@ public ManagedEnvironment refresh() { serviceManager .serviceClient() .getManagedEnvironments() - .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE) + .getByResourceGroupWithResponse(resourceGroupName, environmentName, Context.NONE) .getValue(); return this; } @@ -182,7 +182,7 @@ public ManagedEnvironment refresh(Context context) { serviceManager .serviceClient() .getManagedEnvironments() - .getByResourceGroupWithResponse(resourceGroupName, name, context) + .getByResourceGroupWithResponse(resourceGroupName, environmentName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java index e804165337f86..18703b5ad2997 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentStorageImpl.java @@ -46,13 +46,14 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String resourceGroupName; - private String envName; + private String environmentName; - private String name; + private String storageName; - public ManagedEnvironmentStorageImpl withExistingManagedEnvironment(String resourceGroupName, String envName) { + public ManagedEnvironmentStorageImpl withExistingManagedEnvironment( + String resourceGroupName, String environmentName) { this.resourceGroupName = resourceGroupName; - this.envName = envName; + this.environmentName = environmentName; return this; } @@ -61,7 +62,8 @@ public ManagedEnvironmentStorage create() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, storageName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -71,7 +73,7 @@ public ManagedEnvironmentStorage create(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), context) + .createOrUpdateWithResponse(resourceGroupName, environmentName, storageName, this.innerModel(), context) .getValue(); return this; } @@ -80,7 +82,7 @@ public ManagedEnvironmentStorage create(Context context) { String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) { this.innerObject = new ManagedEnvironmentStorageInner(); this.serviceManager = serviceManager; - this.name = name; + this.storageName = name; } public ManagedEnvironmentStorageImpl update() { @@ -92,7 +94,8 @@ public ManagedEnvironmentStorage apply() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), Context.NONE) + .createOrUpdateWithResponse( + resourceGroupName, environmentName, storageName, this.innerModel(), Context.NONE) .getValue(); return this; } @@ -102,7 +105,7 @@ public ManagedEnvironmentStorage apply(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .createOrUpdateWithResponse(resourceGroupName, envName, name, this.innerModel(), context) + .createOrUpdateWithResponse(resourceGroupName, environmentName, storageName, this.innerModel(), context) .getValue(); return this; } @@ -113,8 +116,8 @@ public ManagedEnvironmentStorage apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.envName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "storages"); + this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments"); + this.storageName = Utils.getValueFromIdByName(innerObject.id(), "storages"); } public ManagedEnvironmentStorage refresh() { @@ -122,7 +125,7 @@ public ManagedEnvironmentStorage refresh() { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .getWithResponse(resourceGroupName, envName, name, Context.NONE) + .getWithResponse(resourceGroupName, environmentName, storageName, Context.NONE) .getValue(); return this; } @@ -132,7 +135,7 @@ public ManagedEnvironmentStorage refresh(Context context) { serviceManager .serviceClient() .getManagedEnvironmentsStorages() - .getWithResponse(resourceGroupName, envName, name, context) + .getWithResponse(resourceGroupName, environmentName, storageName, context) .getValue(); return this; } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java index fbf5e07de56d5..3a446f025e19f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java @@ -93,14 +93,14 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> getByResourceGroup( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -108,14 +108,14 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentInner environmentEnvelope, @HeaderParam("Accept") String accept, @@ -124,14 +124,14 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -139,14 +139,14 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{name}") + + "/managedEnvironments/{environmentName}") @ExpectedResponses({202}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono>> update( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentInner environmentEnvelope, @HeaderParam("Accept") String accept, @@ -485,7 +485,7 @@ public PagedIterable listByResourceGroup(String resourc * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -494,7 +494,7 @@ public PagedIterable listByResourceGroup(String resourc */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -511,8 +511,9 @@ private Mono> getByResourceGroupWithResponseAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -523,7 +524,7 @@ private Mono> getByResourceGroupWithResponseAs this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context)) @@ -534,7 +535,7 @@ private Mono> getByResourceGroupWithResponseAs * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -544,7 +545,7 @@ private Mono> getByResourceGroupWithResponseAs */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -561,8 +562,9 @@ private Mono> getByResourceGroupWithResponseAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -571,7 +573,7 @@ private Mono> getByResourceGroupWithResponseAs this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context); @@ -581,7 +583,7 @@ private Mono> getByResourceGroupWithResponseAs * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -589,8 +591,8 @@ private Mono> getByResourceGroupWithResponseAs * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String name) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name) + private Mono getByResourceGroupAsync(String resourceGroupName, String environmentName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, environmentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -605,22 +607,22 @@ private Mono getByResourceGroupAsync(String resourceGro * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a Managed Environment used to host container apps. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String name) { - return getByResourceGroupAsync(resourceGroupName, name).block(); + public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String environmentName) { + return getByResourceGroupAsync(resourceGroupName, environmentName).block(); } /** * Get the properties of a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -629,15 +631,15 @@ public ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( - String resourceGroupName, String name, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, name, context).block(); + String resourceGroupName, String environmentName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, environmentName, context).block(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -647,7 +649,7 @@ public Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -664,8 +666,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -682,7 +685,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -694,7 +697,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -705,7 +708,10 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -722,8 +728,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -738,7 +745,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -749,7 +756,7 @@ private Mono>> createOrUpdateWithResponseAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -758,9 +765,9 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedEnvironmentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, environmentEnvelope); + createOrUpdateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope); return this .client .getLroResult( @@ -775,7 +782,7 @@ private PollerFlux, ManagedEnvironmentInner> * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -785,10 +792,13 @@ private PollerFlux, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedEnvironmentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context); + createOrUpdateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope, context); return this .client .getLroResult( @@ -803,7 +813,7 @@ private PollerFlux, ManagedEnvironmentInner> * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -812,15 +822,15 @@ private PollerFlux, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope).getSyncPoller(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -830,15 +840,19 @@ public SyncPoller, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context).getSyncPoller(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) + .getSyncPoller(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -847,8 +861,8 @@ public SyncPoller, ManagedEnvironmentInner> */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope) + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -857,7 +871,7 @@ private Mono createOrUpdateAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -867,8 +881,11 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context) + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -877,7 +894,7 @@ private Mono createOrUpdateAsync( * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -886,15 +903,15 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return createOrUpdateAsync(resourceGroupName, name, environmentEnvelope).block(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).block(); } /** * Creates or updates a Managed Environment used to host container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -904,22 +921,25 @@ public ManagedEnvironmentInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentInner createOrUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return createOrUpdateAsync(resourceGroupName, name, environmentEnvelope, context).block(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return createOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String name) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -936,8 +956,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -948,7 +969,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context)) @@ -959,7 +980,7 @@ private Mono>> deleteWithResponseAsync(String resource * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -968,7 +989,7 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -985,8 +1006,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -995,7 +1017,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), accept, context); @@ -1005,15 +1027,15 @@ private Mono>> deleteWithResponseAsync( * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String name) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String environmentName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, environmentName); return this .client .getLroResult( @@ -1024,7 +1046,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1033,9 +1055,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String name, Context context) { + String resourceGroupName, String environmentName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, name, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, environmentName, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1045,22 +1067,22 @@ private PollerFlux, Void> beginDeleteAsync( * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName) { + return beginDeleteAsync(resourceGroupName, environmentName).getSyncPoller(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1068,30 +1090,33 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).getSyncPoller(); + public SyncPoller, Void> beginDelete( + String resourceGroupName, String environmentName, Context context) { + return beginDeleteAsync(resourceGroupName, environmentName, context).getSyncPoller(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name) { - return beginDeleteAsync(resourceGroupName, name).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String environmentName) { + return beginDeleteAsync(resourceGroupName, environmentName) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1099,44 +1124,46 @@ private Mono deleteAsync(String resourceGroupName, String name) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, name, context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String environmentName, Context context) { + return beginDeleteAsync(resourceGroupName, environmentName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name) { - deleteAsync(resourceGroupName, name).block(); + public void delete(String resourceGroupName, String environmentName) { + deleteAsync(resourceGroupName, environmentName).block(); } /** * Delete a Managed Environment if it does not have any container apps. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String name, Context context) { - deleteAsync(resourceGroupName, name, context).block(); + public void delete(String resourceGroupName, String environmentName, Context context) { + deleteAsync(resourceGroupName, environmentName, context).block(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1145,7 +1172,7 @@ public void delete(String resourceGroupName, String name, Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1162,8 +1189,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -1180,7 +1208,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1192,7 +1220,7 @@ private Mono>> updateWithResponseAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1202,7 +1230,10 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1219,8 +1250,9 @@ private Mono>> updateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (environmentEnvelope == null) { return Mono @@ -1235,7 +1267,7 @@ private Mono>> updateWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - name, + environmentName, this.client.getApiVersion(), environmentEnvelope, accept, @@ -1246,7 +1278,7 @@ private Mono>> updateWithResponseAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1255,8 +1287,9 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, name, environmentEnvelope); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + Mono>> mono = + updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope); return this .client .getLroResult( @@ -1267,7 +1300,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1277,10 +1310,13 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginUpdateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - updateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context); + updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); @@ -1290,7 +1326,7 @@ private PollerFlux, Void> beginUpdateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1299,15 +1335,15 @@ private PollerFlux, Void> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope).getSyncPoller(); + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1317,15 +1353,18 @@ public SyncPoller, Void> beginUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdate( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context).getSyncPoller(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).getSyncPoller(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -1333,8 +1372,9 @@ public SyncPoller, Void> beginUpdate( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope) + private Mono updateAsync( + String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1343,7 +1383,7 @@ private Mono updateAsync(String resourceGroupName, String name, ManagedEnv * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1353,8 +1393,11 @@ private Mono updateAsync(String resourceGroupName, String name, ManagedEnv */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context) + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1363,22 +1406,22 @@ private Mono updateAsync( * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) { - updateAsync(resourceGroupName, name, environmentEnvelope).block(); + public void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) { + updateAsync(resourceGroupName, environmentName, environmentEnvelope).block(); } /** * Patches a Managed Environment using JSON Merge Patch. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param name Name of the Environment. + * @param environmentName Name of the Environment. * @param environmentEnvelope Configuration details of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1387,8 +1430,11 @@ public void update(String resourceGroupName, String name, ManagedEnvironmentInne */ @ServiceMethod(returns = ReturnType.SINGLE) public void update( - String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) { - updateAsync(resourceGroupName, name, environmentEnvelope, context).block(); + String resourceGroupName, + String environmentName, + ManagedEnvironmentInner environmentEnvelope, + Context context) { + updateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java index 03caab102a76b..143dc935e8720 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 844ed45e35a60..a54a31f81c32b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java @@ -60,14 +60,14 @@ private interface ManagedEnvironmentsStoragesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages") + + "/managedEnvironments/{environmentName}/storages") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -75,15 +75,15 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -91,15 +91,15 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> createOrUpdate( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ManagedEnvironmentStorageInner storageEnvelope, @HeaderParam("Accept") String accept, @@ -108,15 +108,15 @@ Mono> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{envName}/storages/{name}") + + "/managedEnvironments/{environmentName}/storages/{storageName}") @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> delete( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("envName") String envName, - @PathParam("name") String name, + @PathParam("environmentName") String environmentName, + @PathParam("storageName") String storageName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -126,7 +126,7 @@ Mono> delete( * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -135,7 +135,7 @@ Mono> delete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync( - String resourceGroupName, String envName) { + String resourceGroupName, String environmentName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -152,8 +152,9 @@ private Mono> listWithRespon return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -164,7 +165,7 @@ private Mono> listWithRespon this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, + environmentName, this.client.getApiVersion(), accept, context)) @@ -175,7 +176,7 @@ private Mono> listWithRespon * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -185,7 +186,7 @@ private Mono> listWithRespon */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync( - String resourceGroupName, String envName, Context context) { + String resourceGroupName, String environmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -202,8 +203,9 @@ private Mono> listWithRespon return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -212,7 +214,7 @@ private Mono> listWithRespon this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, + environmentName, this.client.getApiVersion(), accept, context); @@ -222,15 +224,16 @@ private Mono> listWithRespon * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all storages for a managedEnvironment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync(String resourceGroupName, String envName) { - return listWithResponseAsync(resourceGroupName, envName) + private Mono listAsync( + String resourceGroupName, String environmentName) { + return listWithResponseAsync(resourceGroupName, environmentName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -245,22 +248,22 @@ private Mono listAsync(String resourc * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all storages for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String envName) { - return listAsync(resourceGroupName, envName).block(); + public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String environmentName) { + return listAsync(resourceGroupName, environmentName).block(); } /** * Get all storages for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -269,16 +272,16 @@ public ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse( - String resourceGroupName, String envName, Context context) { - return listWithResponseAsync(resourceGroupName, envName, context).block(); + String resourceGroupName, String environmentName, Context context) { + return listWithResponseAsync(resourceGroupName, environmentName, context).block(); } /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -286,7 +289,7 @@ public Response listWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String envName, String name) { + String resourceGroupName, String environmentName, String storageName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -303,11 +306,12 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -318,8 +322,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context)) @@ -330,8 +334,8 @@ private Mono> getWithResponseAsync( * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -340,7 +344,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String envName, String name, Context context) { + String resourceGroupName, String environmentName, String storageName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -357,11 +361,12 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -370,8 +375,8 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -381,16 +386,17 @@ private Mono> getWithResponseAsync( * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storage for a managedEnvironment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String envName, String name) { - return getWithResponseAsync(resourceGroupName, envName, name) + private Mono getAsync( + String resourceGroupName, String environmentName, String storageName) { + return getWithResponseAsync(resourceGroupName, environmentName, storageName) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -405,24 +411,24 @@ private Mono getAsync(String resourceGroupName, * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storage for a managedEnvironment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedEnvironmentStorageInner get(String resourceGroupName, String envName, String name) { - return getAsync(resourceGroupName, envName, name).block(); + public ManagedEnvironmentStorageInner get(String resourceGroupName, String environmentName, String storageName) { + return getAsync(resourceGroupName, environmentName, storageName).block(); } /** * Get storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -431,16 +437,16 @@ public ManagedEnvironmentStorageInner get(String resourceGroupName, String envNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( - String resourceGroupName, String envName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, envName, name, context).block(); + String resourceGroupName, String environmentName, String storageName, Context context) { + return getWithResponseAsync(resourceGroupName, environmentName, storageName, context).block(); } /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -450,7 +456,10 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -467,11 +476,12 @@ private Mono> createOrUpdateWithRespons return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } if (storageEnvelope == null) { return Mono @@ -488,8 +498,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -501,8 +511,8 @@ private Mono> createOrUpdateWithRespons * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,8 +524,8 @@ private Mono> createOrUpdateWithRespons @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( String resourceGroupName, - String envName, - String name, + String environmentName, + String storageName, ManagedEnvironmentStorageInner storageEnvelope, Context context) { if (this.client.getEndpoint() == null) { @@ -534,11 +544,12 @@ private Mono> createOrUpdateWithRespons return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } if (storageEnvelope == null) { return Mono @@ -553,8 +564,8 @@ private Mono> createOrUpdateWithRespons this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), storageEnvelope, accept, @@ -565,8 +576,8 @@ private Mono> createOrUpdateWithRespons * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -575,8 +586,11 @@ private Mono> createOrUpdateWithRespons */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { - return createOrUpdateWithResponseAsync(resourceGroupName, envName, name, storageEnvelope) + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { + return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, storageName, storageEnvelope) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -591,8 +605,8 @@ private Mono createOrUpdateAsync( * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -601,16 +615,19 @@ private Mono createOrUpdateAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedEnvironmentStorageInner createOrUpdate( - String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope) { - return createOrUpdateAsync(resourceGroupName, envName, name, storageEnvelope).block(); + String resourceGroupName, + String environmentName, + String storageName, + ManagedEnvironmentStorageInner storageEnvelope) { + return createOrUpdateAsync(resourceGroupName, environmentName, storageName, storageEnvelope).block(); } /** * Create or update storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param storageEnvelope Configuration details of storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,26 +638,29 @@ public ManagedEnvironmentStorageInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( String resourceGroupName, - String envName, - String name, + String environmentName, + String storageName, ManagedEnvironmentStorageInner storageEnvelope, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, envName, name, storageEnvelope, context).block(); + return createOrUpdateWithResponseAsync( + resourceGroupName, environmentName, storageName, storageEnvelope, context) + .block(); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String envName, String name) { + private Mono> deleteWithResponseAsync( + String resourceGroupName, String environmentName, String storageName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -657,11 +677,12 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil @@ -672,8 +693,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context)) @@ -684,8 +705,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -694,7 +715,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( - String resourceGroupName, String envName, String name, Context context) { + String resourceGroupName, String environmentName, String storageName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -711,11 +732,12 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (envName == null) { - return Mono.error(new IllegalArgumentException("Parameter envName is required and cannot be null.")); + if (environmentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + if (storageName == null) { + return Mono.error(new IllegalArgumentException("Parameter storageName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -724,8 +746,8 @@ private Mono> deleteWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - envName, - name, + environmentName, + storageName, this.client.getApiVersion(), accept, context); @@ -735,39 +757,40 @@ private Mono> deleteWithResponseAsync( * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String envName, String name) { - return deleteWithResponseAsync(resourceGroupName, envName, name).flatMap((Response res) -> Mono.empty()); + private Mono deleteAsync(String resourceGroupName, String environmentName, String storageName) { + return deleteWithResponseAsync(resourceGroupName, environmentName, storageName) + .flatMap((Response res) -> Mono.empty()); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String envName, String name) { - deleteAsync(resourceGroupName, envName, name).block(); + public void delete(String resourceGroupName, String environmentName, String storageName) { + deleteAsync(resourceGroupName, environmentName, storageName).block(); } /** * Delete storage for a managedEnvironment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. - * @param name Name of the storage. + * @param environmentName Name of the Environment. + * @param storageName Name of the storage. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -775,7 +798,8 @@ public void delete(String resourceGroupName, String envName, String name) { * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, envName, name, context).block(); + public Response deleteWithResponse( + String resourceGroupName, String environmentName, String storageName, Context context) { + return deleteWithResponseAsync(resourceGroupName, environmentName, storageName, context).block(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesImpl.java index 5314a09b4d580..e76c2b9ba57d0 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 b4dc38d2ee4ec..31d014fe5267a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java @@ -56,14 +56,14 @@ private interface NamespacesService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App" - + "/managedEnvironments/{managedEnvironmentName}/checkNameAvailability") + + "/managedEnvironments/{environmentName}/checkNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> checkNameAvailability( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("managedEnvironmentName") String managedEnvironmentName, + @PathParam("environmentName") String environmentName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CheckNameAvailabilityRequest checkNameAvailabilityRequest, @HeaderParam("Accept") String accept, @@ -74,7 +74,7 @@ Mono> checkNameAvailability( * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -83,9 +83,7 @@ Mono> checkNameAvailability( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -102,10 +100,9 @@ private Mono> checkNameAvailability return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (checkNameAvailabilityRequest == null) { return Mono @@ -124,7 +121,7 @@ private Mono> checkNameAvailability this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), checkNameAvailabilityRequest, accept, @@ -136,7 +133,7 @@ private Mono> checkNameAvailability * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +144,7 @@ private Mono> checkNameAvailability @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) { if (this.client.getEndpoint() == null) { @@ -166,10 +163,9 @@ private Mono> checkNameAvailability return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (managedEnvironmentName == null) { + if (environmentName == null) { return Mono - .error( - new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null.")); } if (checkNameAvailabilityRequest == null) { return Mono @@ -186,7 +182,7 @@ private Mono> checkNameAvailability this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - managedEnvironmentName, + environmentName, this.client.getApiVersion(), checkNameAvailabilityRequest, accept, @@ -197,7 +193,7 @@ private Mono> checkNameAvailability * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -206,11 +202,8 @@ private Mono> checkNameAvailability */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest) + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, environmentName, checkNameAvailabilityRequest) .flatMap( (Response res) -> { if (res.getValue() != null) { @@ -225,7 +218,7 @@ private Mono checkNameAvailabilityAsync( * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -234,18 +227,15 @@ private Mono checkNameAvailabilityAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public CheckNameAvailabilityResponseInner checkNameAvailability( - String resourceGroupName, - String managedEnvironmentName, - CheckNameAvailabilityRequest checkNameAvailabilityRequest) { - return checkNameAvailabilityAsync(resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest) - .block(); + String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) { + return checkNameAvailabilityAsync(resourceGroupName, environmentName, checkNameAvailabilityRequest).block(); } /** * Checks if resource name is available. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @param checkNameAvailabilityRequest The check name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,11 +246,11 @@ public CheckNameAvailabilityResponseInner checkNameAvailability( @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( String resourceGroupName, - String managedEnvironmentName, + String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) { return checkNameAvailabilityWithResponseAsync( - resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest, context) + resourceGroupName, environmentName, checkNameAvailabilityRequest, context) .block(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java index 2a963c915cfaf..967fab6616897 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/models/Certificate.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java index c403f6d2c72a8..280ac919822bb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificate.java @@ -115,13 +115,13 @@ interface WithLocation { /** The stage of the Certificate definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, managedEnvironmentName. + * Specifies resourceGroupName, environmentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param managedEnvironmentName Name of the Managed Environment. + * @param environmentName Name of the Managed Environment. * @return the next definition stage. */ - WithCreate withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName); + WithCreate withExistingManagedEnvironment(String resourceGroupName, String environmentName); } /** * The stage of the Certificate definition which contains all the minimum required properties for the resource diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Certificates.java index bb3066ee38f50..6da4c95d16f9c 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/ContainerAppsRevisionReplicas.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisionReplicas.java index ebaf0f24d0744..82d3de9d5e548 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 bb7434d209994..967230379074e 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/DaprComponents.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java index 3c18a3d516a8d..133f3dc3e14fb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java @@ -42,21 +42,21 @@ public interface DaprComponents { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a dapr component. */ - DaprComponent get(String resourceGroupName, String environmentName, String name); + DaprComponent get(String resourceGroupName, String environmentName, String componentName); /** * Get a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -65,27 +65,27 @@ public interface DaprComponents { * @return a dapr component along with {@link Response}. */ Response getWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); /** * Delete a Dapr Component from a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String environmentName, String name); + void delete(String resourceGroupName, String environmentName, String componentName); /** * Delete a Dapr Component from a Managed Environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -93,28 +93,29 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context); + Response deleteWithResponse( + String resourceGroupName, String environmentName, String componentName, Context context); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dapr component Secrets Collection ARM resource. */ - DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name); + DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String componentName); /** * List secrets for a dapr component. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param environmentName Name of the Managed Environment. - * @param name Name of the Dapr Component. + * @param componentName Name of the Dapr Component. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -123,7 +124,7 @@ Response getWithResponse( * @return dapr component Secrets Collection ARM resource along with {@link Response}. */ Response listSecretsWithResponse( - String resourceGroupName, String environmentName, String name, Context context); + String resourceGroupName, String environmentName, String componentName, Context context); /** * Get a dapr component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java index dbee8699b7e9f..ccd67dbece2dc 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentStorage.java @@ -64,13 +64,13 @@ interface Blank extends WithParentResource { /** The stage of the ManagedEnvironmentStorage definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, envName. + * Specifies resourceGroupName, environmentName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param envName Name of the Environment. + * @param environmentName Name of the Environment. * @return the next definition stage. */ - WithCreate withExistingManagedEnvironment(String resourceGroupName, String envName); + WithCreate withExistingManagedEnvironment(String resourceGroupName, String environmentName); } /** * The stage of the ManagedEnvironmentStorage definition which contains all the minimum required properties for diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java index 7fe8270230a0d..2477278f7a9d2 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 ca0bc45d4480c..914cd071857ef 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 0da6c9e6591a9..31ec2a5bd7a8d 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); }