diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
index 2cda5dd69c19a..6aed66fd7a141 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
@@ -24,26 +24,42 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsApiClient;
+import com.azure.resourcemanager.appcontainers.implementation.BillingMetersImpl;
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.NamespacesImpl;
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
+import com.azure.resourcemanager.appcontainers.models.BillingMeters;
import com.azure.resourcemanager.appcontainers.models.Certificates;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironments;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsDaprComponents;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
@@ -66,6 +82,12 @@ public final class ContainerAppsApiManager {
private DaprComponents daprComponents;
+ private ContainerAppsDiagnostics containerAppsDiagnostics;
+
+ private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;
+
+ private ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics;
+
private Operations operations;
private ManagedEnvironments managedEnvironments;
@@ -78,6 +100,16 @@ public final class ContainerAppsApiManager {
private ContainerAppsSourceControls containerAppsSourceControls;
+ private ConnectedEnvironments connectedEnvironments;
+
+ private ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates;
+
+ private ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents;
+
+ private ConnectedEnvironmentsStorages connectedEnvironmentsStorages;
+
+ private BillingMeters billingMeters;
+
private final ContainerAppsApiClient clientObject;
private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -243,7 +275,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -363,6 +395,45 @@ public DaprComponents daprComponents() {
return daprComponents;
}
+ /**
+ * Gets the resource collection API of ContainerAppsDiagnostics.
+ *
+ * @return Resource collection API of ContainerAppsDiagnostics.
+ */
+ public ContainerAppsDiagnostics containerAppsDiagnostics() {
+ if (this.containerAppsDiagnostics == null) {
+ this.containerAppsDiagnostics =
+ new ContainerAppsDiagnosticsImpl(clientObject.getContainerAppsDiagnostics(), this);
+ }
+ return containerAppsDiagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedEnvironmentDiagnostics.
+ *
+ * @return Resource collection API of ManagedEnvironmentDiagnostics.
+ */
+ public ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics() {
+ if (this.managedEnvironmentDiagnostics == null) {
+ this.managedEnvironmentDiagnostics =
+ new ManagedEnvironmentDiagnosticsImpl(clientObject.getManagedEnvironmentDiagnostics(), this);
+ }
+ return managedEnvironmentDiagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedEnvironmentsDiagnostics.
+ *
+ * @return Resource collection API of ManagedEnvironmentsDiagnostics.
+ */
+ public ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics() {
+ if (this.managedEnvironmentsDiagnostics == null) {
+ this.managedEnvironmentsDiagnostics =
+ new ManagedEnvironmentsDiagnosticsImpl(clientObject.getManagedEnvironmentsDiagnostics(), this);
+ }
+ return managedEnvironmentsDiagnostics;
+ }
+
/**
* Gets the resource collection API of Operations.
*
@@ -437,6 +508,70 @@ public ContainerAppsSourceControls containerAppsSourceControls() {
return containerAppsSourceControls;
}
+ /**
+ * Gets the resource collection API of ConnectedEnvironments. It manages ConnectedEnvironment.
+ *
+ * @return Resource collection API of ConnectedEnvironments.
+ */
+ public ConnectedEnvironments connectedEnvironments() {
+ if (this.connectedEnvironments == null) {
+ this.connectedEnvironments = new ConnectedEnvironmentsImpl(clientObject.getConnectedEnvironments(), this);
+ }
+ return connectedEnvironments;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsCertificates.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsCertificates.
+ */
+ public ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates() {
+ if (this.connectedEnvironmentsCertificates == null) {
+ this.connectedEnvironmentsCertificates =
+ new ConnectedEnvironmentsCertificatesImpl(clientObject.getConnectedEnvironmentsCertificates(), this);
+ }
+ return connectedEnvironmentsCertificates;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsDaprComponents.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsDaprComponents.
+ */
+ public ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents() {
+ if (this.connectedEnvironmentsDaprComponents == null) {
+ this.connectedEnvironmentsDaprComponents =
+ new ConnectedEnvironmentsDaprComponentsImpl(
+ clientObject.getConnectedEnvironmentsDaprComponents(), this);
+ }
+ return connectedEnvironmentsDaprComponents;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsStorages. It manages ConnectedEnvironmentStorage.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsStorages.
+ */
+ public ConnectedEnvironmentsStorages connectedEnvironmentsStorages() {
+ if (this.connectedEnvironmentsStorages == null) {
+ this.connectedEnvironmentsStorages =
+ new ConnectedEnvironmentsStoragesImpl(clientObject.getConnectedEnvironmentsStorages(), this);
+ }
+ return connectedEnvironmentsStorages;
+ }
+
+ /**
+ * Gets the resource collection API of BillingMeters.
+ *
+ * @return Resource collection API of BillingMeters.
+ */
+ public BillingMeters billingMeters() {
+ if (this.billingMeters == null) {
+ this.billingMeters = new BillingMetersImpl(clientObject.getBillingMeters(), this);
+ }
+ return billingMeters;
+ }
+
/**
* @return Wrapped service client ContainerAppsApiClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BillingMetersClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BillingMetersClient.java
new file mode 100644
index 0000000000000..753b70ee4f01e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BillingMetersClient.java
@@ -0,0 +1,45 @@
+// 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.BillingMeterCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in BillingMetersClient. */
+public interface BillingMetersClient {
+ /**
+ * Get billing meters by location.
+ *
+ * Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @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 billingMeters for a location.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BillingMeterCollectionInner get(String location);
+
+ /**
+ * Get billing meters by location.
+ *
+ *
Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @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 billingMeters for a location along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
index 32178bc86902a..650fb77a11cc5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
@@ -145,7 +145,9 @@ Response 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 0000000000000..6306b6f23e804
--- /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 0000000000000..48d95ec51e137
--- /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 0000000000000..24c729b87eb9a
--- /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 0000000000000..637b4b0b548ab
--- /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 21fe87e369a87..497e420bcd62b 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,39 @@ 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();
+
+ /**
+ * Gets the BillingMetersClient object to access its operations.
+ *
+ * @return the BillingMetersClient object.
+ */
+ BillingMetersClient getBillingMeters();
}
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 5ee0e85fc0d87..58e2d1c793552 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
@@ -11,6 +11,7 @@
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.ContainerAppAuthTokenInner;
import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import com.azure.resourcemanager.appcontainers.fluent.models.SecretsCollectionInner;
@@ -219,7 +220,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 +238,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 +257,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 +273,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.
@@ -341,4 +350,32 @@ Response listCustomHostnameAnalysisWithRespon
@ServiceMethod(returns = ReturnType.SINGLE)
Response listSecretsWithResponse(
String resourceGroupName, String containerAppName, Context context);
+
+ /**
+ * Get auth token for 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 auth token for a container app.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppAuthTokenInner getAuthToken(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get auth token for a container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param 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 auth token for a container app along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthTokenWithResponse(
+ String resourceGroupName, String containerAppName, Context context);
}
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 0000000000000..6e08aadf69272
--- /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 5a659b7517d82..6ba1036ec56be 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 0000000000000..558409a4d4c41
--- /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 338dd07ce2e96..1a766eff125a0 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
@@ -11,12 +11,15 @@
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.EnvironmentAuthTokenInner;
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
/** 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 +30,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 +45,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 +60,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 +76,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 +92,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 +110,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 +128,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 +147,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 +165,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 +184,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 +200,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 +217,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 +232,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 +248,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 +266,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 +285,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 +301,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.
@@ -280,4 +317,36 @@ SyncPoller, Void> beginUpdate(
@ServiceMethod(returns = ReturnType.SINGLE)
void update(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
+
+ /**
+ * Get auth token for a managed environment
+ *
+ * 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.
+ * @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 environment Auth Token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnvironmentAuthTokenInner getAuthToken(String resourceGroupName, String environmentName);
+
+ /**
+ * Get auth token for a managed environment
+ *
+ *
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.
+ * @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 environment Auth Token along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthTokenWithResponse(
+ String resourceGroupName, String environmentName, Context context);
}
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 0000000000000..ea0cb95326bf4
--- /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 1a0dc5841f94b..50960ffcbc3b5 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 84c4c35a50198..f693d5b9037ff 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/BillingMeterCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
new file mode 100644
index 0000000000000..9e4dfa542ed7e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
@@ -0,0 +1,59 @@
+// 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.azure.resourcemanager.appcontainers.models.BillingMeter;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of premium workload billing meters. */
+@Fluent
+public final class BillingMeterCollectionInner {
+ /*
+ * Collection of billing meters.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of billing meters.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of billing meters.
+ *
+ * @param value the value value to set.
+ * @return the BillingMeterCollectionInner object itself.
+ */
+ public BillingMeterCollectionInner 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 BillingMeterCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BillingMeterCollectionInner.class);
+}
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 af4a68117d002..9fa25b27dbf49 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 0000000000000..e691d5c00f843
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
@@ -0,0 +1,201 @@
+// 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.CustomDomainConfiguration;
+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;
+ }
+
+ /**
+ * Get the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @return the customDomainConfiguration value.
+ */
+ public CustomDomainConfiguration customDomainConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().customDomainConfiguration();
+ }
+
+ /**
+ * Set the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @param customDomainConfiguration the customDomainConfiguration value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withCustomDomainConfiguration(
+ CustomDomainConfiguration customDomainConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConnectedEnvironmentProperties();
+ }
+ this.innerProperties().withCustomDomainConfiguration(customDomainConfiguration);
+ 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 0000000000000..29610b17e63fa
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
@@ -0,0 +1,151 @@
+// 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.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+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;
+
+ /*
+ * Custom domain configuration for the environment
+ */
+ @JsonProperty(value = "customDomainConfiguration")
+ private CustomDomainConfiguration customDomainConfiguration;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Get the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @return the customDomainConfiguration value.
+ */
+ public CustomDomainConfiguration customDomainConfiguration() {
+ return this.customDomainConfiguration;
+ }
+
+ /**
+ * Set the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @param customDomainConfiguration the customDomainConfiguration value to set.
+ * @return the ConnectedEnvironmentProperties object itself.
+ */
+ public ConnectedEnvironmentProperties withCustomDomainConfiguration(
+ CustomDomainConfiguration customDomainConfiguration) {
+ this.customDomainConfiguration = customDomainConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (customDomainConfiguration() != null) {
+ customDomainConfiguration().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 0000000000000..2ee1d74dd5e72
--- /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 0000000000000..f152f04bf1716
--- /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/ContainerAppAuthTokenInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppAuthTokenInner.java
new file mode 100644
index 0000000000000..e68c5b466a12b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppAuthTokenInner.java
@@ -0,0 +1,89 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Container App Auth Token. */
+@Fluent
+public final class ContainerAppAuthTokenInner extends Resource {
+ /*
+ * Container App auth token resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ContainerAppAuthTokenProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Container App auth token resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ContainerAppAuthTokenProperties 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 ContainerAppAuthTokenInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ContainerAppAuthTokenInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the token property: Auth token value.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.innerProperties() == null ? null : this.innerProperties().token();
+ }
+
+ /**
+ * Get the expires property: Token expiration date.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.innerProperties() == null ? null : this.innerProperties().expires();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppAuthTokenProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppAuthTokenProperties.java
new file mode 100644
index 0000000000000..88805794270ef
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppAuthTokenProperties.java
@@ -0,0 +1,51 @@
+// 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.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Container App auth token resource specific properties. */
+@Immutable
+public final class ContainerAppAuthTokenProperties {
+ /*
+ * Auth token value.
+ */
+ @JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY)
+ private String token;
+
+ /*
+ * Token expiration date.
+ */
+ @JsonProperty(value = "expires", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime expires;
+
+ /**
+ * Get the token property: Auth token value.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Get the expires property: Token expiration date.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.expires;
+ }
+
+ /**
+ * 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/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 89661084471e9..1c9873940d645 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,52 @@ 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 workloadProfileType property: Workload profile type to pin for container app execution.
+ *
+ * @return the workloadProfileType value.
+ */
+ public String workloadProfileType() {
+ return this.innerProperties() == null ? null : this.innerProperties().workloadProfileType();
+ }
+
+ /**
+ * Set the workloadProfileType property: Workload profile type to pin for container app execution.
+ *
+ * @param workloadProfileType the workloadProfileType value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withWorkloadProfileType(String workloadProfileType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withWorkloadProfileType(workloadProfileType);
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
@@ -189,12 +262,24 @@ public List outboundIpAddresses() {
return this.innerProperties() == null ? null : this.innerProperties().outboundIpAddresses();
}
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the container app.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventStreamEndpoint();
+ }
+
/**
* Validates the instance.
*
* @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 e3a5b1736b4f6..0f2727af7ead4 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,23 @@ 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;
+
+ /*
+ * Workload profile type to pin for container app execution.
+ */
+ @JsonProperty(value = "workloadProfileType")
+ private String workloadProfileType;
+
/*
* Name of the latest revision of the Container App.
*/
@@ -62,6 +74,12 @@ public final class ContainerAppProperties {
@JsonProperty(value = "outboundIPAddresses", access = JsonProperty.Access.WRITE_ONLY)
private List outboundIpAddresses;
+ /*
+ * The endpoint of the eventstream of the container app.
+ */
+ @JsonProperty(value = "eventStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String eventStreamEndpoint;
+
/**
* Get the provisioningState property: Provisioning state of the Container App.
*
@@ -72,7 +90,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 +99,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 +109,46 @@ 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 workloadProfileType property: Workload profile type to pin for container app execution.
+ *
+ * @return the workloadProfileType value.
+ */
+ public String workloadProfileType() {
+ return this.workloadProfileType;
+ }
+
+ /**
+ * Set the workloadProfileType property: Workload profile type to pin for container app execution.
+ *
+ * @param workloadProfileType the workloadProfileType value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withWorkloadProfileType(String workloadProfileType) {
+ this.workloadProfileType = workloadProfileType;
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
@@ -167,6 +225,15 @@ public List outboundIpAddresses() {
return this.outboundIpAddresses;
}
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the container app.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.eventStreamEndpoint;
+ }
+
/**
* Validates the instance.
*
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 612f3c3383d77..a0b246103f13b 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 c567bf14bcfdf..0000000000000
--- 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 7d742a9d49b30..1ad2032833cd8 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;
@@ -161,6 +160,29 @@ public DaprComponentInner withSecrets(List secrets) {
return this;
}
+ /**
+ * Get the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.
+ *
+ * @return the secretStoreComponent value.
+ */
+ public String secretStoreComponent() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretStoreComponent();
+ }
+
+ /**
+ * Set the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.
+ *
+ * @param secretStoreComponent the secretStoreComponent value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withSecretStoreComponent(String secretStoreComponent) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withSecretStoreComponent(secretStoreComponent);
+ return this;
+ }
+
/**
* Get the metadata property: Component metadata.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
index 9341c9fa3aed2..a8d5a81ea6aea 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
@@ -43,6 +43,12 @@ public final class DaprComponentProperties {
@JsonProperty(value = "secrets")
private List secrets;
+ /*
+ * Name of a Dapr component to retrieve component secrets from
+ */
+ @JsonProperty(value = "secretStoreComponent")
+ private String secretStoreComponent;
+
/*
* Component metadata
*/
@@ -155,6 +161,26 @@ public DaprComponentProperties withSecrets(List secrets) {
return this;
}
+ /**
+ * Get the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.
+ *
+ * @return the secretStoreComponent value.
+ */
+ public String secretStoreComponent() {
+ return this.secretStoreComponent;
+ }
+
+ /**
+ * Set the secretStoreComponent property: Name of a Dapr component to retrieve component secrets from.
+ *
+ * @param secretStoreComponent the secretStoreComponent value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withSecretStoreComponent(String secretStoreComponent) {
+ this.secretStoreComponent = secretStoreComponent;
+ return this;
+ }
+
/**
* Get the metadata property: Component metadata.
*
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 0000000000000..d799fc3c0a3f0
--- /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 0000000000000..fb76d8b7f1357
--- /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/EnvironmentAuthTokenInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/EnvironmentAuthTokenInner.java
new file mode 100644
index 0000000000000..04e59646b4bb6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/EnvironmentAuthTokenInner.java
@@ -0,0 +1,89 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Environment Auth Token. */
+@Fluent
+public final class EnvironmentAuthTokenInner extends Resource {
+ /*
+ * Environment auth token resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private EnvironmentAuthTokenProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Environment auth token resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private EnvironmentAuthTokenProperties 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 EnvironmentAuthTokenInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public EnvironmentAuthTokenInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the token property: Auth token value.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.innerProperties() == null ? null : this.innerProperties().token();
+ }
+
+ /**
+ * Get the expires property: Token expiration date.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.innerProperties() == null ? null : this.innerProperties().expires();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/EnvironmentAuthTokenProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/EnvironmentAuthTokenProperties.java
new file mode 100644
index 0000000000000..0c34767011077
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/EnvironmentAuthTokenProperties.java
@@ -0,0 +1,51 @@
+// 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.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Environment auth token resource specific properties. */
+@Immutable
+public final class EnvironmentAuthTokenProperties {
+ /*
+ * Auth token value.
+ */
+ @JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY)
+ private String token;
+
+ /*
+ * Token expiration date.
+ */
+ @JsonProperty(value = "expires", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime expires;
+
+ /**
+ * Get the token property: Auth token value.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Get the expires property: Token expiration date.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.expires;
+ }
+
+ /**
+ * 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/ManagedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
index 6eb3f4a165a4a..f86ffa2c5b5f5 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
@@ -8,14 +8,24 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
+import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.EnvironmentSkuProperties;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
+import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
import java.util.Map;
/** An environment for hosting container apps. */
@Fluent
public final class ManagedEnvironmentInner extends Resource {
+ /*
+ * SKU properties of the Environment.
+ */
+ @JsonProperty(value = "sku")
+ private EnvironmentSkuProperties sku;
+
/*
* Managed environment resource specific properties
*/
@@ -23,12 +33,31 @@ 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;
+ /**
+ * Get the sku property: SKU properties of the Environment.
+ *
+ * @return the sku value.
+ */
+ public EnvironmentSkuProperties sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: SKU properties of the Environment.
+ *
+ * @param sku the sku value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withSku(EnvironmentSkuProperties sku) {
+ this.sku = sku;
+ return this;
+ }
+
/**
* Get the innerProperties property: Managed environment resource specific properties.
*
@@ -218,12 +247,70 @@ public ManagedEnvironmentInner withZoneRedundant(Boolean zoneRedundant) {
return this;
}
+ /**
+ * Get the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @return the customDomainConfiguration value.
+ */
+ public CustomDomainConfiguration customDomainConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().customDomainConfiguration();
+ }
+
+ /**
+ * Set the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @param customDomainConfiguration the customDomainConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withCustomDomainConfiguration(CustomDomainConfiguration customDomainConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withCustomDomainConfiguration(customDomainConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the Environment.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventStreamEndpoint();
+ }
+
+ /**
+ * Get the workloadProfiles property: Workload profiles configured for the Managed Environment.
+ *
+ * @return the workloadProfiles value.
+ */
+ public List workloadProfiles() {
+ return this.innerProperties() == null ? null : this.innerProperties().workloadProfiles();
+ }
+
+ /**
+ * Set the workloadProfiles property: Workload profiles configured for the Managed Environment.
+ *
+ * @param workloadProfiles the workloadProfiles value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withWorkloadProfiles(List workloadProfiles) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withWorkloadProfiles(workloadProfiles);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
if (innerProperties() != null) {
innerProperties().validate();
}
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 3a58e75fc37d0..11aa4c813e8a2 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
@@ -6,9 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
+import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
+import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** Managed environment resource specific properties. */
@Fluent
@@ -20,15 +23,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;
@@ -71,6 +72,24 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "zoneRedundant")
private Boolean zoneRedundant;
+ /*
+ * Custom domain configuration for the environment
+ */
+ @JsonProperty(value = "customDomainConfiguration")
+ private CustomDomainConfiguration customDomainConfiguration;
+
+ /*
+ * The endpoint of the eventstream of the Environment.
+ */
+ @JsonProperty(value = "eventStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String eventStreamEndpoint;
+
+ /*
+ * Workload profiles configured for the Managed Environment.
+ */
+ @JsonProperty(value = "workloadProfiles")
+ private List workloadProfiles;
+
/**
* Get the provisioningState property: Provisioning state of the Environment.
*
@@ -213,6 +232,56 @@ public ManagedEnvironmentProperties withZoneRedundant(Boolean zoneRedundant) {
return this;
}
+ /**
+ * Get the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @return the customDomainConfiguration value.
+ */
+ public CustomDomainConfiguration customDomainConfiguration() {
+ return this.customDomainConfiguration;
+ }
+
+ /**
+ * Set the customDomainConfiguration property: Custom domain configuration for the environment.
+ *
+ * @param customDomainConfiguration the customDomainConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withCustomDomainConfiguration(
+ CustomDomainConfiguration customDomainConfiguration) {
+ this.customDomainConfiguration = customDomainConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the Environment.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.eventStreamEndpoint;
+ }
+
+ /**
+ * Get the workloadProfiles property: Workload profiles configured for the Managed Environment.
+ *
+ * @return the workloadProfiles value.
+ */
+ public List workloadProfiles() {
+ return this.workloadProfiles;
+ }
+
+ /**
+ * Set the workloadProfiles property: Workload profiles configured for the Managed Environment.
+ *
+ * @param workloadProfiles the workloadProfiles value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withWorkloadProfiles(List workloadProfiles) {
+ this.workloadProfiles = workloadProfiles;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -225,5 +294,11 @@ public void validate() {
if (appLogsConfiguration() != null) {
appLogsConfiguration().validate();
}
+ if (customDomainConfiguration() != null) {
+ customDomainConfiguration().validate();
+ }
+ if (workloadProfiles() != null) {
+ workloadProfiles().forEach(e -> e.validate());
+ }
}
}
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 887f1f9bd6aae..d022b2eaf5d69 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 1fdacd15d9fec..ea79ba7d1781f 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 10388304b930d..5d28f961a3ca4 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
@@ -23,8 +23,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;
@@ -56,6 +55,16 @@ public OffsetDateTime createdTime() {
return this.innerProperties() == null ? null : this.innerProperties().createdTime();
}
+ /**
+ * Get the lastActiveTime property: Timestamp describing when the revision was last active. Only meaningful when
+ * revision is inactive.
+ *
+ * @return the lastActiveTime value.
+ */
+ public OffsetDateTime lastActiveTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastActiveTime();
+ }
+
/**
* Get the fqdn property: Fully qualified domain name of the revision.
*
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 bae22e238de86..b681d6fcaee3d 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
@@ -21,6 +21,12 @@ public final class RevisionProperties {
@JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdTime;
+ /*
+ * Timestamp describing when the revision was last active. Only meaningful when revision is inactive
+ */
+ @JsonProperty(value = "lastActiveTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastActiveTime;
+
/*
* Fully qualified domain name of the revision
*/
@@ -80,6 +86,16 @@ public OffsetDateTime createdTime() {
return this.createdTime;
}
+ /**
+ * Get the lastActiveTime property: Timestamp describing when the revision was last active. Only meaningful when
+ * revision is inactive.
+ *
+ * @return the lastActiveTime value.
+ */
+ public OffsetDateTime lastActiveTime() {
+ return this.lastActiveTime;
+ }
+
/**
* Get the fqdn property: Fully qualified domain name of the revision.
*
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 35e2285d769b3..980c0cac9ee04 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/BillingMeterCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMeterCollectionImpl.java
new file mode 100644
index 0000000000000..309f306eadbb2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMeterCollectionImpl.java
@@ -0,0 +1,41 @@
+// 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.BillingMeterCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.BillingMeter;
+import com.azure.resourcemanager.appcontainers.models.BillingMeterCollection;
+import java.util.Collections;
+import java.util.List;
+
+public final class BillingMeterCollectionImpl implements BillingMeterCollection {
+ private BillingMeterCollectionInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ BillingMeterCollectionImpl(
+ BillingMeterCollectionInner 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);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public BillingMeterCollectionInner 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/BillingMetersClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
new file mode 100644
index 0000000000000..c3e2ce19db4c0
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
@@ -0,0 +1,199 @@
+// 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.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.PathParam;
+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.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.BillingMetersClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BillingMeterCollectionInner;
+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 BillingMetersClient. */
+public final class BillingMetersClientImpl implements BillingMetersClient {
+ /** The proxy service used to perform REST calls. */
+ private final BillingMetersService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of BillingMetersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BillingMetersClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy.create(BillingMetersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientBillingMeters to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface BillingMetersService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get billing meters by location.
+ *
+ * Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 billingMeters for a location along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get billing meters by location.
+ *
+ * Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @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 billingMeters for a location along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ location,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get billing meters by location.
+ *
+ * Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 billingMeters for a location on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String location) {
+ return getWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get billing meters by location.
+ *
+ * Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 billingMeters for a location.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BillingMeterCollectionInner get(String location) {
+ return getAsync(location).block();
+ }
+
+ /**
+ * Get billing meters by location.
+ *
+ *
Get all billingMeters for a location.
+ *
+ * @param location The name of Azure region.
+ * @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 billingMeters for a location along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String location, Context context) {
+ return getWithResponseAsync(location, context).block();
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersImpl.java
new file mode 100644
index 0000000000000..7c83eca26589f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersImpl.java
@@ -0,0 +1,59 @@
+// 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.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.BillingMetersClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BillingMeterCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.BillingMeterCollection;
+import com.azure.resourcemanager.appcontainers.models.BillingMeters;
+
+public final class BillingMetersImpl implements BillingMeters {
+ private static final ClientLogger LOGGER = new ClientLogger(BillingMetersImpl.class);
+
+ private final BillingMetersClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public BillingMetersImpl(
+ BillingMetersClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public BillingMeterCollection get(String location) {
+ BillingMeterCollectionInner inner = this.serviceClient().get(location);
+ if (inner != null) {
+ return new BillingMeterCollectionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(String location, Context context) {
+ Response inner = this.serviceClient().getWithResponse(location, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BillingMeterCollectionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private BillingMetersClient 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/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
index 419aa65a6c9fd..a3bbcdc8d56be 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.
@@ -1071,7 +1081,8 @@ public Response updateWithResponse(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
@@ -1106,7 +1117,8 @@ private Mono> listNextSinglePageAsync(String nex
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
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 0000000000000..1542491103f81
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
@@ -0,0 +1,220 @@
+// 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.CustomDomainConfiguration;
+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 CustomDomainConfiguration customDomainConfiguration() {
+ return this.innerModel().customDomainConfiguration();
+ }
+
+ 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;
+ }
+
+ public ConnectedEnvironmentImpl withCustomDomainConfiguration(CustomDomainConfiguration customDomainConfiguration) {
+ this.innerModel().withCustomDomainConfiguration(customDomainConfiguration);
+ 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 0000000000000..6b49e3cdead7f
--- /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 0000000000000..e3f77be64af18
--- /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 0000000000000..809b80c957703
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -0,0 +1,1177 @@
+// 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 URL to get the next list of items
+ * 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 URL to get the next list of items
+ * 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 0000000000000..520533110bfcb
--- /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 0000000000000..79c6d64198261
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -0,0 +1,1701 @@
+// 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