deleteWithResponse(
String resourceGroupName, String environmentName, String certificateName, Context context);
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -162,7 +164,9 @@ CertificateInner update(
String resourceGroupName, String environmentName, String certificateName, CertificatePatch certificateEnvelope);
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ *
Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
new file mode 100644
index 000000000000..6306b6f23e80
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsCertificatesClient.
+ */
+public interface ConnectedEnvironmentsCertificatesClient {
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @return the Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner get(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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
+ * 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)
+ CertificateInner update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope);
+
+ /**
+ * Update properties of a certificate
+ *
+ *
Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java
new file mode 100644
index 000000000000..48d95ec51e13
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java
@@ -0,0 +1,308 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsClient. */
+public interface ConnectedEnvironmentsClient {
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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 connectedEnvironments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner getByResourceGroup(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of an connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 {@link SyncPoller} for polling of an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context);
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 connectedEnvironmentName);
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Update connected Environment's properties.
+ *
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner update(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Update connected Environment's properties.
+ *
+ *
Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment for Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Checks the resource connectedEnvironmentName availability.
+ *
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName availability request.
+ * @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 check availability result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResponseInner checkNameAvailability(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+
+ /**
+ * Checks the resource connectedEnvironmentName availability.
+ *
+ *
Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName availability request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the check availability result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
new file mode 100644
index 000000000000..24c729b87eb9
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsDaprComponentsClient.
+ */
+public interface ConnectedEnvironmentsDaprComponentsClient {
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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.
+ * @return the Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentInner get(String resourceGroupName, String connectedEnvironmentName, String componentName);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dapr component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope);
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ *
Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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.
+ * @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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context);
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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 connectedEnvironmentName, String componentName);
+
+ /**
+ * Delete a Dapr Component.
+ *
+ *
Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprSecretsCollectionInner listSecrets(
+ String resourceGroupName, String connectedEnvironmentName, String componentName);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @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
+ * 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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSecretsWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
new file mode 100644
index 000000000000..637b4b0b548a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsStoragesClient. */
+public interface ConnectedEnvironmentsStoragesClient {
+ /**
+ * Get all storages for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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 connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStoragesCollectionInner list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get all storages for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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.
+ * @return all storages for a connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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 connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStorageInner get(String resourceGroupName, String connectedEnvironmentName, String storageName);
+
+ /**
+ * Get storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage for a connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String storageName, Context context);
+
+ /**
+ * Create or update storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage resource for connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStorageInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope);
+
+ /**
+ * Create or update storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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.
+ * @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 resource for connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope,
+ Context context);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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 connectedEnvironmentName, String storageName);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName 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
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String storageName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
index 21fe87e369a8..ef1b6e2ece49 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
@@ -79,6 +79,27 @@ public interface ContainerAppsApiClient {
*/
DaprComponentsClient getDaprComponents();
+ /**
+ * Gets the ContainerAppsDiagnosticsClient object to access its operations.
+ *
+ * @return the ContainerAppsDiagnosticsClient object.
+ */
+ ContainerAppsDiagnosticsClient getContainerAppsDiagnostics();
+
+ /**
+ * Gets the ManagedEnvironmentDiagnosticsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentDiagnosticsClient object.
+ */
+ ManagedEnvironmentDiagnosticsClient getManagedEnvironmentDiagnostics();
+
+ /**
+ * Gets the ManagedEnvironmentsDiagnosticsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsDiagnosticsClient object.
+ */
+ ManagedEnvironmentsDiagnosticsClient getManagedEnvironmentsDiagnostics();
+
/**
* Gets the OperationsClient object to access its operations.
*
@@ -120,4 +141,32 @@ public interface ContainerAppsApiClient {
* @return the ContainerAppsSourceControlsClient object.
*/
ContainerAppsSourceControlsClient getContainerAppsSourceControls();
+
+ /**
+ * Gets the ConnectedEnvironmentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsClient object.
+ */
+ ConnectedEnvironmentsClient getConnectedEnvironments();
+
+ /**
+ * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsCertificatesClient object.
+ */
+ ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates();
+
+ /**
+ * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsDaprComponentsClient object.
+ */
+ ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents();
+
+ /**
+ * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsStoragesClient object.
+ */
+ ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
index 5ee0e85fc0d8..d8149b36b04a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
@@ -219,7 +219,9 @@ ContainerAppInner createOrUpdate(
void delete(String resourceGroupName, String containerAppName, Context context);
/**
- * Patches a Container App using JSON Merge Patch.
+ * Update properties of a Container App
+ *
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -235,7 +237,9 @@ SyncPoller, Void> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
- * Patches a Container App using JSON Merge Patch.
+ * Update properties of a Container App
+ *
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -252,7 +256,9 @@ SyncPoller, Void> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
- * Patches a Container App using JSON Merge Patch.
+ * Update properties of a Container App
+ *
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -266,7 +272,9 @@ SyncPoller, Void> beginUpdate(
void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
- * Patches a Container App using JSON Merge Patch.
+ * Update properties of a Container App
+ *
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java
new file mode 100644
index 000000000000..6e08aadf6927
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.RevisionInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsDiagnosticsClient. */
+public interface ContainerAppsDiagnosticsClient {
+ /**
+ * Get the list of diagnostics for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App for which detector info is needed.
+ * @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 list of diagnostics for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the list of diagnostics for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App for which detector info is needed.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of diagnostics for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String containerAppName, Context context);
+
+ /**
+ * Get a diagnostics result 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 detectorName Name of the Container App Detector.
+ * @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 diagnostics result of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsInner getDetector(String resourceGroupName, String containerAppName, String detectorName);
+
+ /**
+ * Get a diagnostics result 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 detectorName Name of the Container App Detector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a diagnostics result of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetectorWithResponse(
+ String resourceGroupName, String containerAppName, String detectorName, Context context);
+
+ /**
+ * Get the Revisions for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App for which Revisions are needed.
+ * @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 Revisions for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRevisions(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the Revisions for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Revisions for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRevisions(
+ String resourceGroupName, String containerAppName, String filter, Context context);
+
+ /**
+ * 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 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
+ * 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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRevisionWithResponse(
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner getRoot(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRootWithResponse(String resourceGroupName, String containerAppName, 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 5a659b7517d8..6ba1036ec56b 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
@@ -76,7 +76,9 @@ Response getWithResponse(
String resourceGroupName, String environmentName, String componentName, Context context);
/**
- * Creates or updates a Dapr Component in a Managed Environment.
+ * Creates or updates a Dapr Component.
+ *
+ * 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.
@@ -96,7 +98,9 @@ DaprComponentInner createOrUpdate(
DaprComponentInner daprComponentEnvelope);
/**
- * Creates or updates a Dapr Component in a Managed Environment.
+ * Creates or updates a Dapr Component.
+ *
+ *
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.
@@ -118,7 +122,9 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete a Dapr Component from a Managed Environment.
+ * Delete a Dapr Component.
+ *
+ * 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.
@@ -132,7 +138,9 @@ Response createOrUpdateWithResponse(
void delete(String resourceGroupName, String environmentName, String componentName);
/**
- * Delete a Dapr Component from a Managed Environment.
+ * Delete a Dapr Component.
+ *
+ * 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.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java
new file mode 100644
index 000000000000..558409a4d4c4
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsCollectionInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentDiagnosticsClient. */
+public interface ManagedEnvironmentDiagnosticsClient {
+ /**
+ * Get the list of diagnostics for a given Managed Environment.
+ *
+ *
Get the list of diagnostics for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 list of diagnostics for a Managed Environment used to host container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsCollectionInner listDetectors(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the list of diagnostics for a given Managed Environment.
+ *
+ *
Get the list of diagnostics for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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.
+ * @return the list of diagnostics for a Managed Environment used to host container apps along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDetectorsWithResponse(
+ String resourceGroupName, String environmentName, Context context);
+
+ /**
+ * Get the diagnostics data for a given Managed Environment.
+ *
+ * Get the diagnostics data for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Environment.
+ * @param detectorName Name of the Managed Environment detector.
+ * @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 diagnostics data for a Managed Environment used to host container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsInner getDetector(String resourceGroupName, String environmentName, String detectorName);
+
+ /**
+ * Get the diagnostics data for a given Managed Environment.
+ *
+ *
Get the diagnostics data for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Environment.
+ * @param detectorName Name of the Managed Environment detector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostics data for a Managed Environment used to host container apps along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetectorWithResponse(
+ String resourceGroupName, String environmentName, String detectorName, 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 338dd07ce2e9..39fb74de4c97 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
@@ -16,7 +16,9 @@
/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsClient. */
public interface ManagedEnvironmentsClient {
/**
- * Get all Managed Environments for a subscription.
+ * Get all Environments for a subscription.
+ *
+ * Get all Managed Environments for a subscription.
*
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -27,7 +29,9 @@ public interface ManagedEnvironmentsClient {
PagedIterable list();
/**
- * Get all Managed Environments for a subscription.
+ * Get all Environments for a subscription.
+ *
+ * Get all Managed Environments for a subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -40,7 +44,9 @@ public interface ManagedEnvironmentsClient {
PagedIterable list(Context context);
/**
- * Get all the Managed Environments in a resource group.
+ * Get all the Environments in a resource group.
+ *
+ * Get all the Managed Environments in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -53,7 +59,9 @@ public interface ManagedEnvironmentsClient {
PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Get all the Managed Environments in a resource group.
+ * Get all the Environments in a resource group.
+ *
+ * Get all the Managed Environments in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
@@ -67,7 +75,9 @@ public interface ManagedEnvironmentsClient {
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Get the properties of a Managed Environment used to host container apps.
+ * Get the properties of a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -81,7 +91,9 @@ public interface ManagedEnvironmentsClient {
ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String environmentName);
/**
- * Get the properties of a Managed Environment used to host container apps.
+ * Get the properties of a Managed Environment.
+ *
+ *
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 environmentName Name of the Environment.
@@ -97,7 +109,9 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String environmentName, Context context);
/**
- * Creates or updates a Managed Environment used to host container apps.
+ * Creates or updates a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -113,7 +127,9 @@ SyncPoller, ManagedEnvironmentInner> beginCr
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
- * Creates or updates a Managed Environment used to host container apps.
+ * Creates or updates a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -130,7 +146,9 @@ SyncPoller, ManagedEnvironmentInner> beginCr
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
- * Creates or updates a Managed Environment used to host container apps.
+ * Creates or updates a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -146,7 +164,9 @@ ManagedEnvironmentInner createOrUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
- * Creates or updates a Managed Environment used to host container apps.
+ * Creates or updates a Managed Environment.
+ *
+ *
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 environmentName Name of the Environment.
@@ -163,7 +183,9 @@ ManagedEnvironmentInner createOrUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
- * Delete a Managed Environment if it does not have any container apps.
+ * Delete a Managed Environment.
+ *
+ *
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 environmentName Name of the Environment.
@@ -177,7 +199,9 @@ ManagedEnvironmentInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName);
/**
- * Delete a Managed Environment if it does not have any container apps.
+ * Delete a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -192,7 +216,9 @@ ManagedEnvironmentInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, Context context);
/**
- * Delete a Managed Environment if it does not have any container apps.
+ * Delete a Managed Environment.
+ *
+ * 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 environmentName Name of the Environment.
@@ -205,7 +231,9 @@ ManagedEnvironmentInner createOrUpdate(
void delete(String resourceGroupName, String environmentName);
/**
- * Delete a Managed Environment if it does not have any container apps.
+ * Delete a Managed Environment.
+ *
+ *
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 environmentName Name of the Environment.
@@ -219,7 +247,9 @@ ManagedEnvironmentInner createOrUpdate(
void delete(String resourceGroupName, String environmentName, Context context);
/**
- * Patches a Managed Environment using JSON Merge Patch.
+ * Update Managed Environment's properties.
+ *
+ *
Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Environment.
@@ -235,7 +265,9 @@ SyncPoller, Void> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
- * Patches a Managed Environment using JSON Merge Patch.
+ * Update Managed Environment's properties.
+ *
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Environment.
@@ -252,7 +284,9 @@ SyncPoller, Void> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
- * Patches a Managed Environment using JSON Merge Patch.
+ * Update Managed Environment's properties.
+ *
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Environment.
@@ -266,7 +300,9 @@ SyncPoller, Void> beginUpdate(
void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
- * Patches a Managed Environment using JSON Merge Patch.
+ * Update Managed Environment's properties.
+ *
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java
new file mode 100644
index 000000000000..ea0cb95326bf
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsDiagnosticsClient. */
+public interface ManagedEnvironmentsDiagnosticsClient {
+ /**
+ * Get the properties of a Managed Environment.
+ *
+ *
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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentInner getRoot(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the properties of a Managed Environment.
+ *
+ *
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 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.
+ * @return the properties of a Managed Environment used to host container apps along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRootWithResponse(
+ String resourceGroupName, String environmentName, 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 1a0dc5841f94..50960ffcbc3b 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
@@ -14,7 +14,9 @@
/** An instance of this class provides access to all the operations defined in NamespacesClient. */
public interface NamespacesClient {
/**
- * Checks if resource name is available.
+ * Checks the resource name availability.
+ *
+ * Checks if resource name is available.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -30,7 +32,9 @@ CheckNameAvailabilityResponseInner checkNameAvailability(
String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest);
/**
- * Checks if resource name is available.
+ * Checks the resource name availability.
+ *
+ *
Checks if resource name is available.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
index 84c4c35a5019..f693d5b9037f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
@@ -16,37 +16,34 @@
@Fluent
public final class AuthConfigProperties {
/*
- * The configuration settings of the platform of ContainerApp Service
- * Authentication/Authorization.
+ * The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "platform")
private AuthPlatform platform;
/*
- * The configuration settings that determines the validation flow of users
- * using Service Authentication/Authorization.
+ * The configuration settings that determines the validation flow of users using Service
+ * Authentication/Authorization.
*/
@JsonProperty(value = "globalValidation")
private GlobalValidation globalValidation;
/*
- * The configuration settings of each of the identity providers used to
- * configure ContainerApp Service Authentication/Authorization.
+ * The configuration settings of each of the identity providers used to configure ContainerApp Service
+ * Authentication/Authorization.
*/
@JsonProperty(value = "identityProviders")
private IdentityProviders identityProviders;
/*
- * The configuration settings of the login flow of users using ContainerApp
- * Service Authentication/Authorization.
+ * The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "login")
private Login login;
/*
- * The configuration settings of the HTTP requests for authentication and
- * authorization requests made against ContainerApp Service
- * Authentication/Authorization.
+ * The configuration settings of the HTTP requests for authentication and authorization requests made against
+ * ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "httpSettings")
private HttpSettings httpSettings;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CertificateInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CertificateInner.java
index af4a68117d00..9fa25b27dbf4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CertificateInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CertificateInner.java
@@ -21,8 +21,7 @@ public final class CertificateInner extends Resource {
private CertificateProperties properties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
new file mode 100644
index 000000000000..825f98399001
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An environment for Kubernetes cluster specialized for web workloads by Azure App Service. */
+@Fluent
+public final class ConnectedEnvironmentInner extends Resource {
+ /*
+ * The complex type of the extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * ConnectedEnvironment resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ConnectedEnvironmentProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the extendedLocation property: The complex type of the extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The complex type of the extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: ConnectedEnvironment resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ConnectedEnvironmentProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ConnectedEnvironmentInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ConnectedEnvironmentInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Kubernetes Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.
+ *
+ * @return the deploymentErrors value.
+ */
+ public String deploymentErrors() {
+ return this.innerProperties() == null ? null : this.innerProperties().deploymentErrors();
+ }
+
+ /**
+ * Get the defaultDomain property: Default Domain Name for the cluster.
+ *
+ * @return the defaultDomain value.
+ */
+ public String defaultDomain() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultDomain();
+ }
+
+ /**
+ * Get the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().staticIp();
+ }
+
+ /**
+ * Set the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withStaticIp(String staticIp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConnectedEnvironmentProperties();
+ }
+ this.innerProperties().withStaticIp(staticIp);
+ return this;
+ }
+
+ /**
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIConnectionString value.
+ */
+ public String daprAIConnectionString() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprAIConnectionString();
+ }
+
+ /**
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIConnectionString the daprAIConnectionString value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withDaprAIConnectionString(String daprAIConnectionString) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConnectedEnvironmentProperties();
+ }
+ this.innerProperties().withDaprAIConnectionString(daprAIConnectionString);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
new file mode 100644
index 000000000000..f5a615055b4f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ConnectedEnvironment resource specific properties. */
+@Fluent
+public final class ConnectedEnvironmentProperties {
+ /*
+ * Provisioning state of the Kubernetes Environment.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ConnectedEnvironmentProvisioningState provisioningState;
+
+ /*
+ * Any errors that occurred during deployment or deployment validation
+ */
+ @JsonProperty(value = "deploymentErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private String deploymentErrors;
+
+ /*
+ * Default Domain Name for the cluster
+ */
+ @JsonProperty(value = "defaultDomain", access = JsonProperty.Access.WRITE_ONLY)
+ private String defaultDomain;
+
+ /*
+ * Static IP of the connectedEnvironment
+ */
+ @JsonProperty(value = "staticIp")
+ private String staticIp;
+
+ /*
+ * Application Insights connection string used by Dapr to export Service to Service communication telemetry
+ */
+ @JsonProperty(value = "daprAIConnectionString")
+ private String daprAIConnectionString;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Kubernetes Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.
+ *
+ * @return the deploymentErrors value.
+ */
+ public String deploymentErrors() {
+ return this.deploymentErrors;
+ }
+
+ /**
+ * Get the defaultDomain property: Default Domain Name for the cluster.
+ *
+ * @return the defaultDomain value.
+ */
+ public String defaultDomain() {
+ return this.defaultDomain;
+ }
+
+ /**
+ * Get the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.staticIp;
+ }
+
+ /**
+ * Set the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the ConnectedEnvironmentProperties object itself.
+ */
+ public ConnectedEnvironmentProperties withStaticIp(String staticIp) {
+ this.staticIp = staticIp;
+ return this;
+ }
+
+ /**
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIConnectionString value.
+ */
+ public String daprAIConnectionString() {
+ return this.daprAIConnectionString;
+ }
+
+ /**
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIConnectionString the daprAIConnectionString value to set.
+ * @return the ConnectedEnvironmentProperties object itself.
+ */
+ public ConnectedEnvironmentProperties withDaprAIConnectionString(String daprAIConnectionString) {
+ this.daprAIConnectionString = daprAIConnectionString;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
new file mode 100644
index 000000000000..2ee1d74dd5e7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Storage resource for connectedEnvironment. */
+@Fluent
+public final class ConnectedEnvironmentStorageInner extends ProxyResource {
+ /*
+ * Storage properties
+ */
+ @JsonProperty(value = "properties")
+ private ConnectedEnvironmentStorageProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Storage properties.
+ *
+ * @return the properties value.
+ */
+ public ConnectedEnvironmentStorageProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Storage properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ConnectedEnvironmentStorageInner object itself.
+ */
+ public ConnectedEnvironmentStorageInner withProperties(ConnectedEnvironmentStorageProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
new file mode 100644
index 000000000000..f152f04bf171
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of Storage for Environments. */
+@Fluent
+public final class ConnectedEnvironmentStoragesCollectionInner {
+ /*
+ * Collection of storage resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of storage resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of storage resources.
+ *
+ * @param value the value value to set.
+ * @return the ConnectedEnvironmentStoragesCollectionInner object itself.
+ */
+ public ConnectedEnvironmentStoragesCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model ConnectedEnvironmentStoragesCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectedEnvironmentStoragesCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 89661084471e..9993dba7afcf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
@@ -8,6 +8,7 @@
import com.azure.core.management.Resource;
import com.azure.resourcemanager.appcontainers.models.Configuration;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.Template;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -18,8 +19,14 @@
@Fluent
public final class ContainerAppInner extends Resource {
/*
- * managed identities for the Container App to interact with other Azure
- * services without maintaining any secrets or credentials in code.
+ * The complex type of the extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * managed identities for the Container App to interact with other Azure services without maintaining any secrets
+ * or credentials in code.
*/
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
@@ -30,6 +37,26 @@ public final class ContainerAppInner extends Resource {
@JsonProperty(value = "properties")
private ContainerAppProperties innerProperties;
+ /**
+ * Get the extendedLocation property: The complex type of the extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The complex type of the extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
/**
* Get the identity property: managed identities for the Container App to interact with other Azure services without
* maintaining any secrets or credentials in code.
@@ -85,7 +112,7 @@ public ContainerAppProvisioningState provisioningState() {
}
/**
- * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Get the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @return the managedEnvironmentId value.
*/
@@ -94,7 +121,7 @@ public String managedEnvironmentId() {
}
/**
- * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Set the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @param managedEnvironmentId the managedEnvironmentId value to set.
* @return the ContainerAppInner object itself.
@@ -107,6 +134,29 @@ public ContainerAppInner withManagedEnvironmentId(String managedEnvironmentId) {
return this;
}
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
@@ -195,6 +245,9 @@ public List outboundIpAddresses() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
if (identity() != null) {
identity().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
index e3a5b1736b4f..f77ad6a3e174 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
@@ -21,11 +21,17 @@ public final class ContainerAppProperties {
private ContainerAppProvisioningState provisioningState;
/*
- * Resource ID of the Container App's environment.
+ * Deprecated. Resource ID of the Container App's environment.
*/
@JsonProperty(value = "managedEnvironmentId")
private String managedEnvironmentId;
+ /*
+ * Resource ID of environment.
+ */
+ @JsonProperty(value = "environmentId")
+ private String environmentId;
+
/*
* Name of the latest revision of the Container App.
*/
@@ -72,7 +78,7 @@ public ContainerAppProvisioningState provisioningState() {
}
/**
- * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Get the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @return the managedEnvironmentId value.
*/
@@ -81,7 +87,7 @@ public String managedEnvironmentId() {
}
/**
- * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Set the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @param managedEnvironmentId the managedEnvironmentId value to set.
* @return the ContainerAppProperties object itself.
@@ -91,6 +97,26 @@ public ContainerAppProperties withManagedEnvironmentId(String managedEnvironment
return this;
}
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
index 612f3c3383d7..a0b246103f13 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
@@ -5,46 +5,80 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
+import com.azure.resourcemanager.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo;
import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Custom domain analysis. */
@Fluent
-public final class CustomHostnameAnalysisResultInner extends ProxyResource {
+public final class CustomHostnameAnalysisResultInner {
/*
- * CustomHostnameAnalysisResult resource specific properties
+ * Host name that was analyzed
*/
- @JsonProperty(value = "properties")
- private CustomHostnameAnalysisResultProperties innerProperties;
+ @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String hostname;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * true
if hostname is already verified; otherwise, false
.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ @JsonProperty(value = "isHostnameAlreadyVerified", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isHostnameAlreadyVerified;
- /**
- * Get the innerProperties property: CustomHostnameAnalysisResult resource specific properties.
- *
- * @return the innerProperties value.
+ /*
+ * DNS verification test result.
*/
- private CustomHostnameAnalysisResultProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "customDomainVerificationTest", access = JsonProperty.Access.WRITE_ONLY)
+ private DnsVerificationTestResult customDomainVerificationTest;
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
+ /*
+ * Raw failure information if DNS verification fails.
*/
- public SystemData systemData() {
- return this.systemData;
- }
+ @JsonProperty(value = "customDomainVerificationFailureInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo;
+
+ /*
+ * true
if there is a conflict on the Container App's managed environment; otherwise,
+ * false
.
+ */
+ @JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean hasConflictOnManagedEnvironment;
+
+ /*
+ * Name of the conflicting Container App on the Managed Environment if it's within the same subscription.
+ */
+ @JsonProperty(value = "conflictingContainerAppResourceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String conflictingContainerAppResourceId;
+
+ /*
+ * CName records visible for this hostname.
+ */
+ @JsonProperty(value = "cNameRecords")
+ private List cNameRecords;
+
+ /*
+ * TXT records visible for this hostname.
+ */
+ @JsonProperty(value = "txtRecords")
+ private List txtRecords;
+
+ /*
+ * A records visible for this hostname.
+ */
+ @JsonProperty(value = "aRecords")
+ private List aRecords;
+
+ /*
+ * Alternate CName records visible for this hostname.
+ */
+ @JsonProperty(value = "alternateCNameRecords")
+ private List alternateCNameRecords;
+
+ /*
+ * Alternate TXT records visible for this hostname.
+ */
+ @JsonProperty(value = "alternateTxtRecords")
+ private List alternateTxtRecords;
/**
* Get the hostname property: Host name that was analyzed.
@@ -52,7 +86,7 @@ public SystemData systemData() {
* @return the hostname value.
*/
public String hostname() {
- return this.innerProperties() == null ? null : this.innerProperties().hostname();
+ return this.hostname;
}
/**
@@ -62,7 +96,7 @@ public String hostname() {
* @return the isHostnameAlreadyVerified value.
*/
public Boolean isHostnameAlreadyVerified() {
- return this.innerProperties() == null ? null : this.innerProperties().isHostnameAlreadyVerified();
+ return this.isHostnameAlreadyVerified;
}
/**
@@ -71,7 +105,7 @@ public Boolean isHostnameAlreadyVerified() {
* @return the customDomainVerificationTest value.
*/
public DnsVerificationTestResult customDomainVerificationTest() {
- return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationTest();
+ return this.customDomainVerificationTest;
}
/**
@@ -79,8 +113,8 @@ public DnsVerificationTestResult customDomainVerificationTest() {
*
* @return the customDomainVerificationFailureInfo value.
*/
- public DefaultErrorResponseError customDomainVerificationFailureInfo() {
- return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationFailureInfo();
+ public CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo() {
+ return this.customDomainVerificationFailureInfo;
}
/**
@@ -90,7 +124,7 @@ public DefaultErrorResponseError customDomainVerificationFailureInfo() {
* @return the hasConflictOnManagedEnvironment value.
*/
public Boolean hasConflictOnManagedEnvironment() {
- return this.innerProperties() == null ? null : this.innerProperties().hasConflictOnManagedEnvironment();
+ return this.hasConflictOnManagedEnvironment;
}
/**
@@ -100,7 +134,7 @@ public Boolean hasConflictOnManagedEnvironment() {
* @return the conflictingContainerAppResourceId value.
*/
public String conflictingContainerAppResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().conflictingContainerAppResourceId();
+ return this.conflictingContainerAppResourceId;
}
/**
@@ -109,7 +143,7 @@ public String conflictingContainerAppResourceId() {
* @return the cNameRecords value.
*/
public List cNameRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().cNameRecords();
+ return this.cNameRecords;
}
/**
@@ -119,10 +153,7 @@ public List cNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withCNameRecords(List cNameRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withCNameRecords(cNameRecords);
+ this.cNameRecords = cNameRecords;
return this;
}
@@ -132,7 +163,7 @@ public CustomHostnameAnalysisResultInner withCNameRecords(List cNameReco
* @return the txtRecords value.
*/
public List txtRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().txtRecords();
+ return this.txtRecords;
}
/**
@@ -142,10 +173,7 @@ public List txtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withTxtRecords(List txtRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withTxtRecords(txtRecords);
+ this.txtRecords = txtRecords;
return this;
}
@@ -155,7 +183,7 @@ public CustomHostnameAnalysisResultInner withTxtRecords(List txtRecords)
* @return the aRecords value.
*/
public List aRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().aRecords();
+ return this.aRecords;
}
/**
@@ -165,10 +193,7 @@ public List aRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withARecords(List aRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withARecords(aRecords);
+ this.aRecords = aRecords;
return this;
}
@@ -178,7 +203,7 @@ public CustomHostnameAnalysisResultInner withARecords(List aRecords) {
* @return the alternateCNameRecords value.
*/
public List alternateCNameRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().alternateCNameRecords();
+ return this.alternateCNameRecords;
}
/**
@@ -188,10 +213,7 @@ public List alternateCNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List alternateCNameRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withAlternateCNameRecords(alternateCNameRecords);
+ this.alternateCNameRecords = alternateCNameRecords;
return this;
}
@@ -201,7 +223,7 @@ public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List
* @return the alternateTxtRecords value.
*/
public List alternateTxtRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().alternateTxtRecords();
+ return this.alternateTxtRecords;
}
/**
@@ -211,10 +233,7 @@ public List alternateTxtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List alternateTxtRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withAlternateTxtRecords(alternateTxtRecords);
+ this.alternateTxtRecords = alternateTxtRecords;
return this;
}
@@ -224,8 +243,8 @@ public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List al
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (customDomainVerificationFailureInfo() != null) {
+ customDomainVerificationFailureInfo().validate();
}
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java
deleted file mode 100644
index c567bf14bcfd..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java
+++ /dev/null
@@ -1,252 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
-import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** CustomHostnameAnalysisResult resource specific properties. */
-@Fluent
-public final class CustomHostnameAnalysisResultProperties {
- /*
- * Host name that was analyzed
- */
- @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
- private String hostname;
-
- /*
- * true
if hostname is already verified; otherwise,
- * false
.
- */
- @JsonProperty(value = "isHostnameAlreadyVerified", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean isHostnameAlreadyVerified;
-
- /*
- * DNS verification test result.
- */
- @JsonProperty(value = "customDomainVerificationTest", access = JsonProperty.Access.WRITE_ONLY)
- private DnsVerificationTestResult customDomainVerificationTest;
-
- /*
- * Raw failure information if DNS verification fails.
- */
- @JsonProperty(value = "customDomainVerificationFailureInfo", access = JsonProperty.Access.WRITE_ONLY)
- private DefaultErrorResponseError customDomainVerificationFailureInfo;
-
- /*
- * true
if there is a conflict on the Container App's managed
- * environment; otherwise, false
.
- */
- @JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean hasConflictOnManagedEnvironment;
-
- /*
- * Name of the conflicting Container App on the Managed Environment if it's
- * within the same subscription.
- */
- @JsonProperty(value = "conflictingContainerAppResourceId", access = JsonProperty.Access.WRITE_ONLY)
- private String conflictingContainerAppResourceId;
-
- /*
- * CName records visible for this hostname.
- */
- @JsonProperty(value = "cNameRecords")
- private List cNameRecords;
-
- /*
- * TXT records visible for this hostname.
- */
- @JsonProperty(value = "txtRecords")
- private List txtRecords;
-
- /*
- * A records visible for this hostname.
- */
- @JsonProperty(value = "aRecords")
- private List aRecords;
-
- /*
- * Alternate CName records visible for this hostname.
- */
- @JsonProperty(value = "alternateCNameRecords")
- private List alternateCNameRecords;
-
- /*
- * Alternate TXT records visible for this hostname.
- */
- @JsonProperty(value = "alternateTxtRecords")
- private List alternateTxtRecords;
-
- /**
- * Get the hostname property: Host name that was analyzed.
- *
- * @return the hostname value.
- */
- public String hostname() {
- return this.hostname;
- }
-
- /**
- * Get the isHostnameAlreadyVerified property: <code>true</code> if hostname is already verified;
- * otherwise, <code>false</code>.
- *
- * @return the isHostnameAlreadyVerified value.
- */
- public Boolean isHostnameAlreadyVerified() {
- return this.isHostnameAlreadyVerified;
- }
-
- /**
- * Get the customDomainVerificationTest property: DNS verification test result.
- *
- * @return the customDomainVerificationTest value.
- */
- public DnsVerificationTestResult customDomainVerificationTest() {
- return this.customDomainVerificationTest;
- }
-
- /**
- * Get the customDomainVerificationFailureInfo property: Raw failure information if DNS verification fails.
- *
- * @return the customDomainVerificationFailureInfo value.
- */
- public DefaultErrorResponseError customDomainVerificationFailureInfo() {
- return this.customDomainVerificationFailureInfo;
- }
-
- /**
- * Get the hasConflictOnManagedEnvironment property: <code>true</code> if there is a conflict on the
- * Container App's managed environment; otherwise, <code>false</code>.
- *
- * @return the hasConflictOnManagedEnvironment value.
- */
- public Boolean hasConflictOnManagedEnvironment() {
- return this.hasConflictOnManagedEnvironment;
- }
-
- /**
- * Get the conflictingContainerAppResourceId property: Name of the conflicting Container App on the Managed
- * Environment if it's within the same subscription.
- *
- * @return the conflictingContainerAppResourceId value.
- */
- public String conflictingContainerAppResourceId() {
- return this.conflictingContainerAppResourceId;
- }
-
- /**
- * Get the cNameRecords property: CName records visible for this hostname.
- *
- * @return the cNameRecords value.
- */
- public List cNameRecords() {
- return this.cNameRecords;
- }
-
- /**
- * Set the cNameRecords property: CName records visible for this hostname.
- *
- * @param cNameRecords the cNameRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withCNameRecords(List cNameRecords) {
- this.cNameRecords = cNameRecords;
- return this;
- }
-
- /**
- * Get the txtRecords property: TXT records visible for this hostname.
- *
- * @return the txtRecords value.
- */
- public List txtRecords() {
- return this.txtRecords;
- }
-
- /**
- * Set the txtRecords property: TXT records visible for this hostname.
- *
- * @param txtRecords the txtRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withTxtRecords(List txtRecords) {
- this.txtRecords = txtRecords;
- return this;
- }
-
- /**
- * Get the aRecords property: A records visible for this hostname.
- *
- * @return the aRecords value.
- */
- public List aRecords() {
- return this.aRecords;
- }
-
- /**
- * Set the aRecords property: A records visible for this hostname.
- *
- * @param aRecords the aRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withARecords(List aRecords) {
- this.aRecords = aRecords;
- return this;
- }
-
- /**
- * Get the alternateCNameRecords property: Alternate CName records visible for this hostname.
- *
- * @return the alternateCNameRecords value.
- */
- public List alternateCNameRecords() {
- return this.alternateCNameRecords;
- }
-
- /**
- * Set the alternateCNameRecords property: Alternate CName records visible for this hostname.
- *
- * @param alternateCNameRecords the alternateCNameRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withAlternateCNameRecords(List alternateCNameRecords) {
- this.alternateCNameRecords = alternateCNameRecords;
- return this;
- }
-
- /**
- * Get the alternateTxtRecords property: Alternate TXT records visible for this hostname.
- *
- * @return the alternateTxtRecords value.
- */
- public List alternateTxtRecords() {
- return this.alternateTxtRecords;
- }
-
- /**
- * Set the alternateTxtRecords property: Alternate TXT records visible for this hostname.
- *
- * @param alternateTxtRecords the alternateTxtRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withAlternateTxtRecords(List alternateTxtRecords) {
- this.alternateTxtRecords = alternateTxtRecords;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (customDomainVerificationFailureInfo() != null) {
- customDomainVerificationFailureInfo().validate();
- }
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
index 7d742a9d49b3..3bb7c38d9e6e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
@@ -22,8 +22,7 @@ public final class DaprComponentInner extends ProxyResource {
private DaprComponentProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
new file mode 100644
index 000000000000..d799fc3c0a3f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Diagnostics data collection for a resource. */
+@Fluent
+public final class DiagnosticsCollectionInner {
+ /*
+ * Collection of diagnostic data.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * Link to next page of resources.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: Collection of diagnostic data.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of diagnostic data.
+ *
+ * @param value the value value to set.
+ * @return the DiagnosticsCollectionInner object itself.
+ */
+ public DiagnosticsCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: Link to next page of resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model DiagnosticsCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DiagnosticsCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
new file mode 100644
index 000000000000..fb76d8b7f135
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Diagnostics data for a resource. */
+@Fluent
+public final class DiagnosticsInner extends ProxyResource {
+ /*
+ * Diagnostics resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private DiagnosticsProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Diagnostics resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public DiagnosticsProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Diagnostics resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DiagnosticsInner object itself.
+ */
+ public DiagnosticsInner withProperties(DiagnosticsProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
index 6eb3f4a165a4..e0c9b882b223 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
@@ -23,8 +23,7 @@ public final class ManagedEnvironmentInner extends Resource {
private ManagedEnvironmentProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
index 3a58e75fc37d..3e681ebeb864 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
@@ -20,15 +20,13 @@ public final class ManagedEnvironmentProperties {
private EnvironmentProvisioningState provisioningState;
/*
- * Azure Monitor instrumentation key used by Dapr to export Service to
- * Service communication telemetry
+ * Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry
*/
@JsonProperty(value = "daprAIInstrumentationKey")
private String daprAIInstrumentationKey;
/*
- * Application Insights connection string used by Dapr to export Service to
- * Service communication telemetry
+ * Application Insights connection string used by Dapr to export Service to Service communication telemetry
*/
@JsonProperty(value = "daprAIConnectionString")
private String daprAIConnectionString;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
index 887f1f9bd6aa..d022b2eaf5d6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
@@ -20,8 +20,7 @@ public final class ManagedEnvironmentStorageInner extends ProxyResource {
private ManagedEnvironmentStorageProperties properties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
index 1fdacd15d9fe..ea79ba7d1781 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
@@ -22,8 +22,7 @@ public final class ReplicaInner extends ProxyResource {
private ReplicaProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
index 10388304b930..4c5f930e7ec4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
@@ -10,8 +10,10 @@
import com.azure.resourcemanager.appcontainers.models.RevisionHealthState;
import com.azure.resourcemanager.appcontainers.models.RevisionProvisioningState;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficLabel;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
/** Container App Revision. */
@Fluent
@@ -23,8 +25,7 @@ public final class RevisionInner extends ProxyResource {
private RevisionProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -102,6 +103,15 @@ public Integer trafficWeight() {
return this.innerProperties() == null ? null : this.innerProperties().trafficWeight();
}
+ /**
+ * Get the trafficLabels property: Traffic labels associated with this revision.
+ *
+ * @return the trafficLabels value.
+ */
+ public List trafficLabels() {
+ return this.innerProperties() == null ? null : this.innerProperties().trafficLabels();
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
index bae22e238de8..8d75ec7ceb6f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
@@ -8,8 +8,10 @@
import com.azure.resourcemanager.appcontainers.models.RevisionHealthState;
import com.azure.resourcemanager.appcontainers.models.RevisionProvisioningState;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficLabel;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
/** Revision resource specific properties. */
@Immutable
@@ -53,6 +55,12 @@ public final class RevisionProperties {
@JsonProperty(value = "trafficWeight", access = JsonProperty.Access.WRITE_ONLY)
private Integer trafficWeight;
+ /*
+ * Traffic labels associated with this revision
+ */
+ @JsonProperty(value = "trafficLabels", access = JsonProperty.Access.WRITE_ONLY)
+ private List trafficLabels;
+
/*
* Optional Field - Platform Error Message
*/
@@ -126,6 +134,15 @@ public Integer trafficWeight() {
return this.trafficWeight;
}
+ /**
+ * Get the trafficLabels property: Traffic labels associated with this revision.
+ *
+ * @return the trafficLabels value.
+ */
+ public List trafficLabels() {
+ return this.trafficLabels;
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
@@ -162,5 +179,8 @@ public void validate() {
if (template() != null) {
template().validate();
}
+ if (trafficLabels() != null) {
+ trafficLabels().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
index 35e2285d769b..980c0cac9ee0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
@@ -21,8 +21,7 @@ public final class SourceControlInner extends ProxyResource {
private SourceControlProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
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 419aa65a6c9f..eb07a721d909 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
@@ -866,7 +866,9 @@ public Response deleteWithResponse(
}
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -933,7 +935,9 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -999,7 +1003,9 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -1022,7 +1028,9 @@ private Mono updateAsync(
}
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -1043,7 +1051,9 @@ public CertificateInner update(
}
/**
- * Patches a certificate. Currently only patching of tags is supported.
+ * Update properties of a certificate
+ *
+ *
Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
new file mode 100644
index 000000000000..775d10917d31
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironment;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ConnectedEnvironmentImpl
+ implements ConnectedEnvironment, ConnectedEnvironment.Definition, ConnectedEnvironment.Update {
+ private ConnectedEnvironmentInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ExtendedLocation extendedLocation() {
+ return this.innerModel().extendedLocation();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String deploymentErrors() {
+ return this.innerModel().deploymentErrors();
+ }
+
+ public String defaultDomain() {
+ return this.innerModel().defaultDomain();
+ }
+
+ public String staticIp() {
+ return this.innerModel().staticIp();
+ }
+
+ public String daprAIConnectionString() {
+ return this.innerModel().daprAIConnectionString();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ConnectedEnvironmentInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String connectedEnvironmentName;
+
+ public ConnectedEnvironmentImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ConnectedEnvironment create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironment create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentImpl(
+ String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ConnectedEnvironmentInner();
+ this.serviceManager = serviceManager;
+ this.connectedEnvironmentName = name;
+ }
+
+ public ConnectedEnvironmentImpl update() {
+ return this;
+ }
+
+ public ConnectedEnvironment apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironment apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentImpl(
+ ConnectedEnvironmentInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
+ }
+
+ public ConnectedEnvironment refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironment refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, context)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.innerModel().withExtendedLocation(extendedLocation);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withStaticIp(String staticIp) {
+ this.innerModel().withStaticIp(staticIp);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withDaprAIConnectionString(String daprAIConnectionString) {
+ this.innerModel().withDaprAIConnectionString(daprAIConnectionString);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
new file mode 100644
index 000000000000..6b49e3cdead7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
+
+public final class ConnectedEnvironmentStorageImpl
+ implements ConnectedEnvironmentStorage, ConnectedEnvironmentStorage.Definition, ConnectedEnvironmentStorage.Update {
+ private ConnectedEnvironmentStorageInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ConnectedEnvironmentStorageProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ConnectedEnvironmentStorageInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String connectedEnvironmentName;
+
+ private String storageName;
+
+ public ConnectedEnvironmentStorageImpl withExistingConnectedEnvironment(
+ String resourceGroupName, String connectedEnvironmentName) {
+ this.resourceGroupName = resourceGroupName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ConnectedEnvironmentStorageImpl(
+ String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ConnectedEnvironmentStorageInner();
+ this.serviceManager = serviceManager;
+ this.storageName = name;
+ }
+
+ public ConnectedEnvironmentStorageImpl update() {
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ConnectedEnvironmentStorageImpl(
+ ConnectedEnvironmentStorageInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
+ this.storageName = Utils.getValueFromIdByName(innerObject.id(), "storages");
+ }
+
+ public ConnectedEnvironmentStorage refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, context)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorageImpl withProperties(ConnectedEnvironmentStorageProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
new file mode 100644
index 000000000000..e3f77be64af1
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStoragesCollection;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class ConnectedEnvironmentStoragesCollectionImpl implements ConnectedEnvironmentStoragesCollection {
+ private ConnectedEnvironmentStoragesCollectionInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ ConnectedEnvironmentStoragesCollectionImpl(
+ ConnectedEnvironmentStoragesCollectionInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new ConnectedEnvironmentStorageImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ConnectedEnvironmentStoragesCollectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
new file mode 100644
index 000000000000..bbe0f161a02e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -0,0 +1,1175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificateCollection;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsCertificatesClient.
+ */
+public final class ConnectedEnvironmentsCertificatesClientImpl implements ConnectedEnvironmentsCertificatesClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectedEnvironmentsCertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectedEnvironmentsCertificatesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedEnvironmentsCertificatesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ ConnectedEnvironmentsCertificatesService.class,
+ client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsCertificates to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface ConnectedEnvironmentsCertificatesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CertificateInner certificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CertificatePatch certificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connected environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @return the Certificates in a given connected environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @return the Certificates in a given connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @return the Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName, context));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName) {
+ return getAsync(resourceGroupName, connectedEnvironmentName, certificateName).block();
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 connectedEnvironmentName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 connectedEnvironmentName, String certificateName) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, certificateName).block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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
+ .error(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
+ } else {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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
+ .error(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
+ } else {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ return updateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ return updateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope).block();
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ *
Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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.
+ * @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 along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ return updateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @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 collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @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.
+ * @return collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
new file mode 100644
index 000000000000..520533110bfc
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
+
+public final class ConnectedEnvironmentsCertificatesImpl implements ConnectedEnvironmentsCertificates {
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectedEnvironmentsCertificatesImpl.class);
+
+ private final ConnectedEnvironmentsCertificatesClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ConnectedEnvironmentsCertificatesImpl(
+ ConnectedEnvironmentsCertificatesClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, connectedEnvironmentName);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, connectedEnvironmentName, context);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public Certificate get(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ CertificateInner inner = this.serviceClient().get(resourceGroupName, connectedEnvironmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Certificate createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ CertificateInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return this
+ .serviceClient()
+ .deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ }
+
+ public Certificate update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ CertificateInner inner =
+ this
+ .serviceClient()
+ .update(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateWithResponse(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private ConnectedEnvironmentsCertificatesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
new file mode 100644
index 000000000000..3f915061f1b5
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -0,0 +1,1697 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentCollection;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsClient. */
+public final class ConnectedEnvironmentsClientImpl implements ConnectedEnvironmentsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectedEnvironmentsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectedEnvironmentsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedEnvironmentsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(ConnectedEnvironmentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironments to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface ConnectedEnvironmentsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ConnectedEnvironmentInner environmentEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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 connectedEnvironments for a subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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.
+ * @return all connectedEnvironments for a subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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 connectedEnvironments for a subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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.
+ * @return all connectedEnvironments for a subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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 connectedEnvironments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Get all connectedEnvironments for a subscription.
+ *
+ * @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.
+ * @return all connectedEnvironments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 connectedEnvironments in a resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 connectedEnvironments in a resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 connectedEnvironments in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 connectedEnvironments in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an connectedEnvironment along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ * @return the properties of an connectedEnvironment along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an connectedEnvironment on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, connectedEnvironmentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner getByResourceGroup(String resourceGroupName, String connectedEnvironmentName) {
+ return getByResourceGroupAsync(resourceGroupName, connectedEnvironmentName).block();
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ * @return the properties of an connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, connectedEnvironmentName, context).block();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (environmentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentEnvelope is required and cannot be null."));
+ } else {
+ environmentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ environmentEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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.
+ * @return an environment for Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (environmentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentEnvelope is required and cannot be null."));
+ } else {
+ environmentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ environmentEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ConnectedEnvironmentInner.class,
+ ConnectedEnvironmentInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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.
+ * @return the {@link PollerFlux} for polling of an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ConnectedEnvironmentInner.class,
+ ConnectedEnvironmentInner.class,
+ context);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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.
+ * @return the {@link SyncPoller} for polling of an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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.
+ * @return an environment for Kubernetes cluster specialized for web workloads by Azure App Service on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope).block();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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.
+ * @return an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context).block();
+ }
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 connectedEnvironmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 connectedEnvironmentName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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