diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index f3788b70c7e7a..4f35aa4371673 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -339,6 +339,7 @@ com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-app;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.1
diff --git a/pom.xml b/pom.xml
index 0ce586ceb6e74..4d68f08f9f96b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -844,6 +844,7 @@
sdk/anomalydetectorsdk/aotsdk/apimanagement
+ sdk/appsdk/appconfigurationsdk/applicationinsightssdk/attestation
diff --git a/sdk/app/azure-resourcemanager-app/CHANGELOG.md b/sdk/app/azure-resourcemanager-app/CHANGELOG.md
new file mode 100644
index 0000000000000..d92f97d11e37e
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-03-14)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/app/azure-resourcemanager-app/README.md b/sdk/app/azure-resourcemanager-app/README.md
new file mode 100644
index 0000000000000..829b8461217be
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager ContainerAppsApi client library for Java
+
+Azure Resource Manager ContainerAppsApi client library for Java.
+
+This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-app;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-app
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ContainerAppsApiManager manager = ContainerAppsApiManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/app/azure-resourcemanager-app/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/app/azure-resourcemanager-app/SAMPLE.md b/sdk/app/azure-resourcemanager-app/SAMPLE.md
new file mode 100644
index 0000000000000..f36e89df12008
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/SAMPLE.md
@@ -0,0 +1,1301 @@
+# Code snippets and samples
+
+
+## Certificates
+
+- [CreateOrUpdate](#certificates_createorupdate)
+- [Delete](#certificates_delete)
+- [Get](#certificates_get)
+- [List](#certificates_list)
+- [Update](#certificates_update)
+
+## ContainerApps
+
+- [CreateOrUpdate](#containerapps_createorupdate)
+- [Delete](#containerapps_delete)
+- [GetByResourceGroup](#containerapps_getbyresourcegroup)
+- [List](#containerapps_list)
+- [ListByResourceGroup](#containerapps_listbyresourcegroup)
+- [ListCustomHostnameAnalysis](#containerapps_listcustomhostnameanalysis)
+- [ListSecrets](#containerapps_listsecrets)
+- [Update](#containerapps_update)
+
+## ContainerAppsAuthConfigs
+
+- [CreateOrUpdate](#containerappsauthconfigs_createorupdate)
+- [Delete](#containerappsauthconfigs_delete)
+- [Get](#containerappsauthconfigs_get)
+- [ListByContainerApp](#containerappsauthconfigs_listbycontainerapp)
+
+## ContainerAppsRevisionReplicas
+
+- [GetReplica](#containerappsrevisionreplicas_getreplica)
+- [ListReplicas](#containerappsrevisionreplicas_listreplicas)
+
+## ContainerAppsRevisions
+
+- [ActivateRevision](#containerappsrevisions_activaterevision)
+- [DeactivateRevision](#containerappsrevisions_deactivaterevision)
+- [GetRevision](#containerappsrevisions_getrevision)
+- [ListRevisions](#containerappsrevisions_listrevisions)
+- [RestartRevision](#containerappsrevisions_restartrevision)
+
+## ContainerAppsSourceControls
+
+- [CreateOrUpdate](#containerappssourcecontrols_createorupdate)
+- [Delete](#containerappssourcecontrols_delete)
+- [Get](#containerappssourcecontrols_get)
+- [ListByContainerApp](#containerappssourcecontrols_listbycontainerapp)
+
+## DaprComponents
+
+- [CreateOrUpdate](#daprcomponents_createorupdate)
+- [Delete](#daprcomponents_delete)
+- [Get](#daprcomponents_get)
+- [List](#daprcomponents_list)
+
+## ManagedEnvironments
+
+- [CreateOrUpdate](#managedenvironments_createorupdate)
+- [Delete](#managedenvironments_delete)
+- [GetByResourceGroup](#managedenvironments_getbyresourcegroup)
+- [List](#managedenvironments_list)
+- [ListByResourceGroup](#managedenvironments_listbyresourcegroup)
+- [Update](#managedenvironments_update)
+
+## ManagedEnvironmentsStorages
+
+- [CreateOrUpdate](#managedenvironmentsstorages_createorupdate)
+- [Delete](#managedenvironmentsstorages_delete)
+- [Get](#managedenvironmentsstorages_get)
+- [List](#managedenvironmentsstorages_list)
+
+## Namespaces
+
+- [CheckNameAvailability](#namespaces_checknameavailability)
+
+## Operations
+
+- [List](#operations_list)
+### Certificates_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.CertificateProperties;
+
+/** Samples for Certificates CreateOrUpdate. */
+public final class CertificatesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateCertificate(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .define("certificate-firendly-name")
+ .withRegion("East US")
+ .withExistingManagedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(
+ new CertificateProperties()
+ .withPassword("private key password")
+ .withValue("PFX-or-PEM-blob".getBytes()))
+ .create();
+ }
+}
+```
+
+### Certificates_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates Delete. */
+public final class CertificatesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json
+ */
+ /**
+ * Sample code: Delete Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteCertificate(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### Certificates_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates Get. */
+public final class CertificatesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### Certificates_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates List. */
+public final class CertificatesListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json
+ */
+ /**
+ * Sample code: List Certificates by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listCertificatesByManagedEnvironment(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.certificates().list("examplerg", "testcontainerenv", Context.NONE);
+ }
+}
+```
+
+### Certificates_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.models.Certificate;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Certificates Update. */
+public final class CertificatesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json
+ */
+ /**
+ * Sample code: Patch Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchCertificate(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ Certificate resource =
+ manager
+ .certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContainerApps_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.AppProtocol;
+import com.azure.resourcemanager.app.models.BindingType;
+import com.azure.resourcemanager.app.models.Configuration;
+import com.azure.resourcemanager.app.models.Container;
+import com.azure.resourcemanager.app.models.ContainerAppProbe;
+import com.azure.resourcemanager.app.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.app.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.app.models.CustomDomain;
+import com.azure.resourcemanager.app.models.CustomScaleRule;
+import com.azure.resourcemanager.app.models.Dapr;
+import com.azure.resourcemanager.app.models.Ingress;
+import com.azure.resourcemanager.app.models.Scale;
+import com.azure.resourcemanager.app.models.ScaleRule;
+import com.azure.resourcemanager.app.models.Template;
+import com.azure.resourcemanager.app.models.Type;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ContainerApps CreateOrUpdate. */
+public final class ContainerAppsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateContainerApp(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerApps()
+ .define("testcontainerApp0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withManagedEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withConfiguration(
+ new Configuration()
+ .withIngress(
+ new Ingress()
+ .withExternal(true)
+ .withTargetPort(3000)
+ .withCustomDomains(
+ Arrays
+ .asList(
+ new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain()
+ .withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"))))
+ .withDapr(new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)))
+ .withTemplate(
+ new Template()
+ .withContainers(
+ Arrays
+ .asList(
+ new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
+ Arrays
+ .asList(
+ new ContainerAppProbe()
+ .withHttpGet(
+ new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays
+ .asList(
+ new ContainerAppProbeHttpGetHttpHeadersItem()
+ .withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale()
+ .withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule()
+ .withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50")))))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContainerApps_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps Delete. */
+public final class ContainerAppsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json
+ */
+ /**
+ * Sample code: Delete Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteContainerApp(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerApps().delete("rg", "testWorkerApp0", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps GetByResourceGroup. */
+public final class ContainerAppsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json
+ */
+ /**
+ * Sample code: Get Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerApp(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps List. */
+public final class ContainerAppsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Container Apps by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppsBySubscription(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerApps().list(Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps ListByResourceGroup. */
+public final class ContainerAppsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List Container Apps by resource group.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppsByResourceGroup(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerApps().listByResourceGroup("rg", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListCustomHostnameAnalysis
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps ListCustomHostnameAnalysis. */
+public final class ContainerAppsListCustomHostnameAnalysisSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ */
+ /**
+ * Sample code: Analyze Custom Hostname.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void analyzeCustomHostname(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerApps()
+ .listCustomHostnameAnalysisWithResponse("rg", "testcontainerApp0", "my.name.corp", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListSecrets
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps ListSecrets. */
+public final class ContainerAppsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json
+ */
+ /**
+ * Sample code: List Container Apps Secrets.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppsSecrets(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerApps().listSecretsWithResponse("rg", "testcontainerApp0", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.models.ContainerApp;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ContainerApps Update. */
+public final class ContainerAppsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json
+ */
+ /**
+ * Sample code: Patch Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchContainerApp(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ ContainerApp resource =
+ manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0", Context.NONE).getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContainerAppsAuthConfigs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.AppRegistration;
+import com.azure.resourcemanager.app.models.AuthPlatform;
+import com.azure.resourcemanager.app.models.Facebook;
+import com.azure.resourcemanager.app.models.GlobalValidation;
+import com.azure.resourcemanager.app.models.IdentityProviders;
+import com.azure.resourcemanager.app.models.UnauthenticatedClientActionV2;
+
+/** Samples for ContainerAppsAuthConfigs CreateOrUpdate. */
+public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Container App AuthConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateContainerAppAuthConfig(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsAuthConfigs()
+ .define("current")
+ .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
+ .withPlatform(new AuthPlatform().withEnabled(true))
+ .withGlobalValidation(
+ new GlobalValidation().withUnauthenticatedClientAction(UnauthenticatedClientActionV2.ALLOW_ANONYMOUS))
+ .withIdentityProviders(
+ new IdentityProviders()
+ .withFacebook(
+ new Facebook()
+ .withRegistration(
+ new AppRegistration().withAppId("123").withAppSecretSettingName("facebook-secret"))))
+ .create();
+ }
+}
+```
+
+### ContainerAppsAuthConfigs_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsAuthConfigs Delete. */
+public final class ContainerAppsAuthConfigsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json
+ */
+ /**
+ * Sample code: Delete Container App AuthConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteContainerAppAuthConfig(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsAuthConfigs()
+ .deleteWithResponse("workerapps-rg-xj", "testcanadacentral", "current", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsAuthConfigs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsAuthConfigs Get. */
+public final class ContainerAppsAuthConfigsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json
+ */
+ /**
+ * Sample code: Get Container App's AuthConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSAuthConfig(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsAuthConfigs()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsAuthConfigs_ListByContainerApp
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsAuthConfigs ListByContainerApp. */
+public final class ContainerAppsAuthConfigsListByContainerAppSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_ListByContainer.json
+ */
+ /**
+ * Sample code: List Auth Configs by Container Apps.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listAuthConfigsByContainerApps(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs().listByContainerApp("workerapps-rg-xj", "testcanadacentral", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisionReplicas_GetReplica
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisionReplicas GetReplica. */
+public final class ContainerAppsRevisionReplicasGetReplicaSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json
+ */
+ /**
+ * Sample code: Get Container App's revision replica.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSRevisionReplica(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisionReplicas()
+ .getReplicaWithResponse(
+ "workerapps-rg-xj", "myapp", "myapp--0wlqy09", "myapp--0wlqy09-5d9774cff-5wnd8", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisionReplicas_ListReplicas
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisionReplicas ListReplicas. */
+public final class ContainerAppsRevisionReplicasListReplicasSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_List.json
+ */
+ /**
+ * Sample code: List Container App's replicas.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppSReplicas(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisionReplicas()
+ .listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ActivateRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions ActivateRevision. */
+public final class ContainerAppsRevisionsActivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json
+ */
+ /**
+ * Sample code: Activate Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void activateContainerAppSRevision(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisions()
+ .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_DeactivateRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions DeactivateRevision. */
+public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json
+ */
+ /**
+ * Sample code: Deactivate Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deactivateContainerAppSRevision(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisions()
+ .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_GetRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions GetRevision. */
+public final class ContainerAppsRevisionsGetRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json
+ */
+ /**
+ * Sample code: Get Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSRevision(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisions()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ListRevisions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions ListRevisions. */
+public final class ContainerAppsRevisionsListRevisionsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_List.json
+ */
+ /**
+ * Sample code: List Container App's revisions.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppSRevisions(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_RestartRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions RestartRevision. */
+public final class ContainerAppsRevisionsRestartRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json
+ */
+ /**
+ * Sample code: Restart Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void restartContainerAppSRevision(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsRevisions()
+ .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSourceControls_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.AzureCredentials;
+import com.azure.resourcemanager.app.models.GithubActionConfiguration;
+import com.azure.resourcemanager.app.models.RegistryInfo;
+
+/** Samples for ContainerAppsSourceControls CreateOrUpdate. */
+public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Container App SourceControl.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateContainerAppSourceControl(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsSourceControls()
+ .define("current")
+ .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
+ .withRepoUrl("https://github.com/xwang971/ghatest")
+ .withBranch("master")
+ .withGithubActionConfiguration(
+ new GithubActionConfiguration()
+ .withRegistryInfo(
+ new RegistryInfo()
+ .withRegistryUrl("xwang971reg.azurecr.io")
+ .withRegistryUsername("xwang971reg")
+ .withRegistryPassword(""))
+ .withAzureCredentials(
+ new AzureCredentials()
+ .withClientId("")
+ .withClientSecret("")
+ .withTenantId("")))
+ .create();
+ }
+}
+```
+
+### ContainerAppsSourceControls_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsSourceControls Delete. */
+public final class ContainerAppsSourceControlsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json
+ */
+ /**
+ * Sample code: Delete Container App SourceControl.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteContainerAppSourceControl(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls().delete("workerapps-rg-xj", "testcanadacentral", "current", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSourceControls_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsSourceControls Get. */
+public final class ContainerAppsSourceControlsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json
+ */
+ /**
+ * Sample code: Get Container App's SourceControl.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSSourceControl(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsSourceControls()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSourceControls_ListByContainerApp
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsSourceControls ListByContainerApp. */
+public final class ContainerAppsSourceControlsListByContainerAppSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_ListByContainer.json
+ */
+ /**
+ * Sample code: List App's Source Controls.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listAppSSourceControls(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls().listByContainerApp("workerapps-rg-xj", "testcanadacentral", Context.NONE);
+ }
+}
+```
+
+### DaprComponents_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.DaprMetadata;
+import com.azure.resourcemanager.app.models.Secret;
+import java.util.Arrays;
+
+/** Samples for DaprComponents CreateOrUpdate. */
+public final class DaprComponentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update dapr component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateDaprComponent(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .daprComponents()
+ .define("reddog")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(
+ Arrays
+ .asList(
+ new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("masterkey")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2"))
+ .create();
+ }
+}
+```
+
+### DaprComponents_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DaprComponents Delete. */
+public final class DaprComponentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json
+ */
+ /**
+ * Sample code: Delete dapr component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteDaprComponent(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.daprComponents().deleteWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
+```
+
+### DaprComponents_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DaprComponents Get. */
+public final class DaprComponentsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json
+ */
+ /**
+ * Sample code: Get Dapr Component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getDaprComponent(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.daprComponents().getWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
+```
+
+### DaprComponents_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DaprComponents List. */
+public final class DaprComponentsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_List.json
+ */
+ /**
+ * Sample code: List Dapr Components.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listDaprComponents(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.daprComponents().list("examplerg", "myenvironment", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.AppLogsConfiguration;
+import com.azure.resourcemanager.app.models.LogAnalyticsConfiguration;
+
+/** Samples for ManagedEnvironments CreateOrUpdate. */
+public final class ManagedEnvironmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create environments.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createEnvironments(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .managedEnvironments()
+ .define("testcontainerenv")
+ .withRegion("East US")
+ .withExistingResourceGroup("examplerg")
+ .withAppLogsConfiguration(
+ new AppLogsConfiguration()
+ .withLogAnalyticsConfiguration(
+ new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("string")))
+ .create();
+ }
+}
+```
+
+### ManagedEnvironments_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironments Delete. */
+public final class ManagedEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json
+ */
+ /**
+ * Sample code: Delete environment by name.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteEnvironmentByName(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironments().delete("examplerg", "examplekenv", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironments_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironments GetByResourceGroup. */
+public final class ManagedEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json
+ */
+ /**
+ * Sample code: Get environments by name.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getEnvironmentsByName(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironments().getByResourceGroupWithResponse("examplerg", "jlaw-demo1", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironments List. */
+public final class ManagedEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListBySubscription.json
+ */
+ /**
+ * Sample code: List environments by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listEnvironmentsBySubscription(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironments().list(Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironments_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironments ListByResourceGroup. */
+public final class ManagedEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List environments by resource group.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listEnvironmentsByResourceGroup(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironments().listByResourceGroup("examplerg", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironments_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.models.ManagedEnvironment;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ManagedEnvironments Update. */
+public final class ManagedEnvironmentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json
+ */
+ /**
+ * Sample code: Patch Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchManagedEnvironment(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ ManagedEnvironment resource =
+ manager
+ .managedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "testcontainerenv", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ManagedEnvironmentsStorages_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.AccessMode;
+import com.azure.resourcemanager.app.models.AzureFileProperties;
+import com.azure.resourcemanager.app.models.ManagedEnvironmentStorageProperties;
+
+/** Samples for ManagedEnvironmentsStorages CreateOrUpdate. */
+public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update environments storage.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateEnvironmentsStorage(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .managedEnvironmentsStorages()
+ .define("jlaw-demo1")
+ .withExistingManagedEnvironment("examplerg", "managedEnv")
+ .withProperties(
+ new ManagedEnvironmentStorageProperties()
+ .withAzureFile(
+ new AzureFileProperties()
+ .withAccountName("account1")
+ .withAccountKey("key")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
+ .create();
+ }
+}
+```
+
+### ManagedEnvironmentsStorages_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentsStorages Delete. */
+public final class ManagedEnvironmentsStoragesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json
+ */
+ /**
+ * Sample code: List environments storages by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listEnvironmentsStoragesBySubscription(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsStorages().deleteWithResponse("examplerg", "managedEnv", "jlaw-demo1", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentsStorages_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentsStorages Get. */
+public final class ManagedEnvironmentsStoragesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json
+ */
+ /**
+ * Sample code: get a environments storage properties by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getAEnvironmentsStoragePropertiesBySubscription(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsStorages().getWithResponse("examplerg", "managedEnv", "jlaw-demo1", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentsStorages_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentsStorages List. */
+public final class ManagedEnvironmentsStoragesListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json
+ */
+ /**
+ * Sample code: List environments storages by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listEnvironmentsStoragesBySubscription(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsStorages().listWithResponse("examplerg", "managedEnv", Context.NONE);
+ }
+}
+```
+
+### Namespaces_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.models.CheckNameAvailabilityRequest;
+
+/** Samples for Namespaces CheckNameAvailability. */
+public final class NamespacesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Certificates_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void certificatesCheckNameAvailability(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest()
+ .withName("testcertificatename")
+ .withType("Microsoft.App/managedEnvironments/certificates"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: ContainerApps_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void containerAppsCheckNameAvailability(
+ com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcappname").withType("Microsoft.App/containerApps"),
+ Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Operations_List.json
+ */
+ /**
+ * Sample code: List all operations.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listAllOperations(com.azure.resourcemanager.app.ContainerAppsApiManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/app/azure-resourcemanager-app/pom.xml b/sdk/app/azure-resourcemanager-app/pom.xml
new file mode 100644
index 0000000000000..4078f1bd448a8
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-app
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ContainerAppsApi Management
+ This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2022-03.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
+
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/ContainerAppsApiManager.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/ContainerAppsApiManager.java
new file mode 100644
index 0000000000000..4d84731fd287d
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/ContainerAppsApiManager.java
@@ -0,0 +1,369 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.app.fluent.ContainerAppsApiClient;
+import com.azure.resourcemanager.app.implementation.CertificatesImpl;
+import com.azure.resourcemanager.app.implementation.ContainerAppsApiClientBuilder;
+import com.azure.resourcemanager.app.implementation.ContainerAppsAuthConfigsImpl;
+import com.azure.resourcemanager.app.implementation.ContainerAppsImpl;
+import com.azure.resourcemanager.app.implementation.ContainerAppsRevisionReplicasImpl;
+import com.azure.resourcemanager.app.implementation.ContainerAppsRevisionsImpl;
+import com.azure.resourcemanager.app.implementation.ContainerAppsSourceControlsImpl;
+import com.azure.resourcemanager.app.implementation.DaprComponentsImpl;
+import com.azure.resourcemanager.app.implementation.ManagedEnvironmentsImpl;
+import com.azure.resourcemanager.app.implementation.ManagedEnvironmentsStoragesImpl;
+import com.azure.resourcemanager.app.implementation.NamespacesImpl;
+import com.azure.resourcemanager.app.implementation.OperationsImpl;
+import com.azure.resourcemanager.app.models.Certificates;
+import com.azure.resourcemanager.app.models.ContainerApps;
+import com.azure.resourcemanager.app.models.ContainerAppsAuthConfigs;
+import com.azure.resourcemanager.app.models.ContainerAppsRevisionReplicas;
+import com.azure.resourcemanager.app.models.ContainerAppsRevisions;
+import com.azure.resourcemanager.app.models.ContainerAppsSourceControls;
+import com.azure.resourcemanager.app.models.DaprComponents;
+import com.azure.resourcemanager.app.models.ManagedEnvironments;
+import com.azure.resourcemanager.app.models.ManagedEnvironmentsStorages;
+import com.azure.resourcemanager.app.models.Namespaces;
+import com.azure.resourcemanager.app.models.Operations;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to ContainerAppsApiManager. */
+public final class ContainerAppsApiManager {
+ private ContainerAppsAuthConfigs containerAppsAuthConfigs;
+
+ private ContainerApps containerApps;
+
+ private ContainerAppsRevisions containerAppsRevisions;
+
+ private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
+
+ private DaprComponents daprComponents;
+
+ private Operations operations;
+
+ private ManagedEnvironments managedEnvironments;
+
+ private Certificates certificates;
+
+ private Namespaces namespaces;
+
+ private ManagedEnvironmentsStorages managedEnvironmentsStorages;
+
+ private ContainerAppsSourceControls containerAppsSourceControls;
+
+ private final ContainerAppsApiClient clientObject;
+
+ private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ContainerAppsApiClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ContainerAppsApi service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerAppsApi service API instance.
+ */
+ public static ContainerAppsApiManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ContainerAppsApiManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ContainerAppsApiManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of ContainerAppsApi service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerAppsApi service API instance.
+ */
+ public ContainerAppsApiManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.app")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ContainerAppsApiManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of ContainerAppsAuthConfigs. */
+ public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
+ if (this.containerAppsAuthConfigs == null) {
+ this.containerAppsAuthConfigs =
+ new ContainerAppsAuthConfigsImpl(clientObject.getContainerAppsAuthConfigs(), this);
+ }
+ return containerAppsAuthConfigs;
+ }
+
+ /** @return Resource collection API of ContainerApps. */
+ public ContainerApps containerApps() {
+ if (this.containerApps == null) {
+ this.containerApps = new ContainerAppsImpl(clientObject.getContainerApps(), this);
+ }
+ return containerApps;
+ }
+
+ /** @return Resource collection API of ContainerAppsRevisions. */
+ public ContainerAppsRevisions containerAppsRevisions() {
+ if (this.containerAppsRevisions == null) {
+ this.containerAppsRevisions =
+ new ContainerAppsRevisionsImpl(clientObject.getContainerAppsRevisions(), this);
+ }
+ return containerAppsRevisions;
+ }
+
+ /** @return Resource collection API of ContainerAppsRevisionReplicas. */
+ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() {
+ if (this.containerAppsRevisionReplicas == null) {
+ this.containerAppsRevisionReplicas =
+ new ContainerAppsRevisionReplicasImpl(clientObject.getContainerAppsRevisionReplicas(), this);
+ }
+ return containerAppsRevisionReplicas;
+ }
+
+ /** @return Resource collection API of DaprComponents. */
+ public DaprComponents daprComponents() {
+ if (this.daprComponents == null) {
+ this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
+ }
+ return daprComponents;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of ManagedEnvironments. */
+ public ManagedEnvironments managedEnvironments() {
+ if (this.managedEnvironments == null) {
+ this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
+ }
+ return managedEnvironments;
+ }
+
+ /** @return Resource collection API of Certificates. */
+ public Certificates certificates() {
+ if (this.certificates == null) {
+ this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
+ }
+ return certificates;
+ }
+
+ /** @return Resource collection API of Namespaces. */
+ public Namespaces namespaces() {
+ if (this.namespaces == null) {
+ this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
+ }
+ return namespaces;
+ }
+
+ /** @return Resource collection API of ManagedEnvironmentsStorages. */
+ public ManagedEnvironmentsStorages managedEnvironmentsStorages() {
+ if (this.managedEnvironmentsStorages == null) {
+ this.managedEnvironmentsStorages =
+ new ManagedEnvironmentsStoragesImpl(clientObject.getManagedEnvironmentsStorages(), this);
+ }
+ return managedEnvironmentsStorages;
+ }
+
+ /** @return Resource collection API of ContainerAppsSourceControls. */
+ public ContainerAppsSourceControls containerAppsSourceControls() {
+ if (this.containerAppsSourceControls == null) {
+ this.containerAppsSourceControls =
+ new ContainerAppsSourceControlsImpl(clientObject.getContainerAppsSourceControls(), this);
+ }
+ return containerAppsSourceControls;
+ }
+
+ /**
+ * @return Wrapped service client ContainerAppsApiClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public ContainerAppsApiClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/CertificatesClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/CertificatesClient.java
new file mode 100644
index 0000000000000..9501cab732d29
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/CertificatesClient.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.CertificateInner;
+import com.azure.resourcemanager.app.models.CertificatePatch;
+
+/** An instance of this class provides access to all the operations defined in CertificatesClient. */
+public interface CertificatesClient {
+ /**
+ * Get the Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String managedEnvironmentName);
+
+ /**
+ * Get the Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName, String name);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName, String name, Context context);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName, String name);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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.app.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 managedEnvironmentName,
+ String name,
+ CertificateInner certificateEnvelope,
+ Context context);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String managedEnvironmentName, String name);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName, String name, Context context);
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName, String name, CertificatePatch certificateEnvelope);
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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.app.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 managedEnvironmentName,
+ String name,
+ CertificatePatch certificateEnvelope,
+ Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsApiClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsApiClient.java
new file mode 100644
index 0000000000000..f38d310c284be
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsApiClient.java
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ContainerAppsApiClient class. */
+public interface ContainerAppsApiClient {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ *
+ * @return the ContainerAppsAuthConfigsClient object.
+ */
+ ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs();
+
+ /**
+ * Gets the ContainerAppsClient object to access its operations.
+ *
+ * @return the ContainerAppsClient object.
+ */
+ ContainerAppsClient getContainerApps();
+
+ /**
+ * Gets the ContainerAppsRevisionsClient object to access its operations.
+ *
+ * @return the ContainerAppsRevisionsClient object.
+ */
+ ContainerAppsRevisionsClient getContainerAppsRevisions();
+
+ /**
+ * Gets the ContainerAppsRevisionReplicasClient object to access its operations.
+ *
+ * @return the ContainerAppsRevisionReplicasClient object.
+ */
+ ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas();
+
+ /**
+ * Gets the DaprComponentsClient object to access its operations.
+ *
+ * @return the DaprComponentsClient object.
+ */
+ DaprComponentsClient getDaprComponents();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the ManagedEnvironmentsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsClient object.
+ */
+ ManagedEnvironmentsClient getManagedEnvironments();
+
+ /**
+ * Gets the CertificatesClient object to access its operations.
+ *
+ * @return the CertificatesClient object.
+ */
+ CertificatesClient getCertificates();
+
+ /**
+ * Gets the NamespacesClient object to access its operations.
+ *
+ * @return the NamespacesClient object.
+ */
+ NamespacesClient getNamespaces();
+
+ /**
+ * Gets the ManagedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsStoragesClient object.
+ */
+ ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages();
+
+ /**
+ * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ *
+ * @return the ContainerAppsSourceControlsClient object.
+ */
+ ContainerAppsSourceControlsClient getContainerAppsSourceControls();
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsAuthConfigsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsAuthConfigsClient.java
new file mode 100644
index 0000000000000..f01f73068149e
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsAuthConfigsClient.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.AuthConfigInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsAuthConfigsClient. */
+public interface ContainerAppsAuthConfigsClient {
+ /**
+ * Get the Container App AuthConfigs in a given resource group.
+ *
+ * @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.resourcemanager.app.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 Container App AuthConfigs in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the Container App AuthConfigs in a given resource group.
+ *
+ * @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.resourcemanager.app.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 Container App AuthConfigs in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(
+ String resourceGroupName, String containerAppName, Context context);
+
+ /**
+ * Get a AuthConfig of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a AuthConfig of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthConfigInner get(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Get a AuthConfig of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a AuthConfig of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String containerAppName, String name, Context context);
+
+ /**
+ * Description for Create or update the AuthConfig for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @param authConfigEnvelope Properties used to create a Container App AuthConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthConfigInner createOrUpdate(
+ String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope);
+
+ /**
+ * Description for Create or update the AuthConfig for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @param authConfigEnvelope Properties used to create a Container App AuthConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 configuration settings for the Azure ContainerApp Service Authentication / Authorization feature along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String containerAppName,
+ String name,
+ AuthConfigInner authConfigEnvelope,
+ Context context);
+
+ /**
+ * Description for Delete a Container App AuthConfig.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Description for Delete a Container App AuthConfig.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App AuthConfig.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 containerAppName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsClient.java
new file mode 100644
index 0000000000000..6ab45551ba02d
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsClient.java
@@ -0,0 +1,311 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.ContainerAppInner;
+import com.azure.resourcemanager.app.fluent.models.CustomHostnameAnalysisResultInner;
+import com.azure.resourcemanager.app.fluent.models.SecretsCollectionInner;
+import com.azure.resourcemanager.app.models.ContainerAppPatch;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsClient. */
+public interface ContainerAppsClient {
+ /**
+ * Get the Container Apps in a given subscription.
+ *
+ * @throws com.azure.resourcemanager.app.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 Container Apps in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get the Container Apps in a given subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 Container Apps in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get the Container Apps in a given 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.app.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 Container Apps in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get the Container Apps in a given 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.app.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 Container Apps in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param 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 getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Create or update a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties used to create a container app.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 container App.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+
+ /**
+ * Description for Create or update a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties used to create a container app.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 container App.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+
+ /**
+ * Description for Create or update a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties used to create a container app.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner createOrUpdate(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+
+ /**
+ * Description for Create or update a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties used to create a container app.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner createOrUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+
+ /**
+ * Description for Delete a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name);
+
+ /**
+ * Description for Delete a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name, Context context);
+
+ /**
+ * Description for Delete a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name);
+
+ /**
+ * Description for Delete a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, Context context);
+
+ /**
+ * Patches a Container App. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner update(String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope);
+
+ /**
+ * Patches a Container App. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope, Context context);
+
+ /**
+ * Analyzes a custom hostname 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.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain analysis.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomHostnameAnalysisResultInner listCustomHostnameAnalysis(String resourceGroupName, String containerAppName);
+
+ /**
+ * Analyzes a custom hostname 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 customHostname Custom hostname.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain analysis along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listCustomHostnameAnalysisWithResponse(
+ String resourceGroupName, String containerAppName, String customHostname, Context context);
+
+ /**
+ * List secrets for a container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Secrets Collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecretsCollectionInner listSecrets(String resourceGroupName, String name);
+
+ /**
+ * List secrets for a container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Secrets Collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSecretsWithResponse(String resourceGroupName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionReplicasClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionReplicasClient.java
new file mode 100644
index 0000000000000..8e8efcff0ad66
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionReplicasClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.ReplicaCollectionInner;
+import com.azure.resourcemanager.app.fluent.models.ReplicaInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsRevisionReplicasClient. */
+public interface ContainerAppsRevisionReplicasClient {
+ /**
+ * Get a replica for a Container App Revision.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision.
+ * @param name Name of the Container App Revision Replica.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a replica for a Container App Revision.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicaInner getReplica(String resourceGroupName, String containerAppName, String revisionName, String name);
+
+ /**
+ * Get a replica for a Container App Revision.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision.
+ * @param name Name of the Container App Revision Replica.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a replica for a Container App Revision along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getReplicaWithResponse(
+ String resourceGroupName, String containerAppName, String revisionName, String name, Context context);
+
+ /**
+ * List replicas for a Container App Revision.
+ *
+ * @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.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Revision Replicas collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicaCollectionInner listReplicas(String resourceGroupName, String containerAppName, String revisionName);
+
+ /**
+ * List replicas for a Container App Revision.
+ *
+ * @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.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Revision Replicas collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listReplicasWithResponse(
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionsClient.java
new file mode 100644
index 0000000000000..e57337f73dbd1
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsRevisionsClient.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.RevisionInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsRevisionsClient. */
+public interface ContainerAppsRevisionsClient {
+ /**
+ * 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.app.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 context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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, 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 name Name of the Container App Revision.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name);
+
+ /**
+ * Get a revision of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name, Context context);
+
+ /**
+ * Activates a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void activateRevision(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Activates a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 activateRevisionWithResponse(
+ String resourceGroupName, String containerAppName, String name, Context context);
+
+ /**
+ * Deactivates a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deactivateRevision(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Deactivates a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 deactivateRevisionWithResponse(
+ String resourceGroupName, String containerAppName, String name, Context context);
+
+ /**
+ * Restarts a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restartRevision(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Restarts a revision for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App Revision.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 restartRevisionWithResponse(
+ String resourceGroupName, String containerAppName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsSourceControlsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsSourceControlsClient.java
new file mode 100644
index 0000000000000..a06316229012b
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsSourceControlsClient.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.app.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.app.fluent.models.SourceControlInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsSourceControlsClient. */
+public interface ContainerAppsSourceControlsClient {
+ /**
+ * Get the Container App SourceControls in a given resource group.
+ *
+ * @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.resourcemanager.app.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 Container App SourceControls in a given resource group as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the Container App SourceControls in a given resource group.
+ *
+ * @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.resourcemanager.app.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 Container App SourceControls in a given resource group as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(
+ String resourceGroupName, String containerAppName, Context context);
+
+ /**
+ * Get a SourceControl of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a SourceControl of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceControlInner get(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Get a SourceControl of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a SourceControl of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String containerAppName, String name, Context context);
+
+ /**
+ * Description for Create or update the SourceControl for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param sourceControlEnvelope Properties used to create a Container App SourceControl.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 container App SourceControl.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SourceControlInner> beginCreateOrUpdate(
+ String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope);
+
+ /**
+ * Description for Create or update the SourceControl for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param sourceControlEnvelope Properties used to create a Container App SourceControl.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 container App SourceControl.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SourceControlInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String containerAppName,
+ String name,
+ SourceControlInner sourceControlEnvelope,
+ Context context);
+
+ /**
+ * Description for Create or update the SourceControl for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param sourceControlEnvelope Properties used to create a Container App SourceControl.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App SourceControl.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceControlInner createOrUpdate(
+ String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope);
+
+ /**
+ * Description for Create or update the SourceControl for a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param sourceControlEnvelope Properties used to create a Container App SourceControl.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App SourceControl.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceControlInner createOrUpdate(
+ String resourceGroupName,
+ String containerAppName,
+ String name,
+ SourceControlInner sourceControlEnvelope,
+ Context context);
+
+ /**
+ * Description for Delete a Container App SourceControl.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 containerAppName, String name);
+
+ /**
+ * Description for Delete a Container App SourceControl.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 containerAppName, String name, Context context);
+
+ /**
+ * Description for Delete a Container App SourceControl.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String name);
+
+ /**
+ * Description for Delete a Container App SourceControl.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param name Name of the Container App SourceControl.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/DaprComponentsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/DaprComponentsClient.java
new file mode 100644
index 0000000000000..2dea94f6c05c7
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/DaprComponentsClient.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.DaprComponentInner;
+
+/** An instance of this class provides access to all the operations defined in DaprComponentsClient. */
+public interface DaprComponentsClient {
+ /**
+ * Get the Dapr Components for a managed environment.
+ *
+ * @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.resourcemanager.app.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 managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Dapr Components for a managed environment.
+ *
+ * @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.resourcemanager.app.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 managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 environmentName, String name);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 environmentName, String name, Context context);
+
+ /**
+ * Creates or updates a Dapr Component in a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 environmentName, String name, DaprComponentInner daprComponentEnvelope);
+
+ /**
+ * Creates or updates a Dapr Component in a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param 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.app.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 environmentName,
+ String name,
+ DaprComponentInner daprComponentEnvelope,
+ Context context);
+
+ /**
+ * Delete a Dapr Component from a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String environmentName, String name);
+
+ /**
+ * Delete a Dapr Component from a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 environmentName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsClient.java
new file mode 100644
index 0000000000000..5611912295bf0
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsClient.java
@@ -0,0 +1,253 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.ManagedEnvironmentInner;
+import com.azure.resourcemanager.app.models.ManagedEnvironmentPatch;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsClient. */
+public interface ManagedEnvironmentsClient {
+ /**
+ * Get all Managed Environments for a subscription.
+ *
+ * @throws com.azure.resourcemanager.app.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 Managed Environments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all Managed Environments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 Managed Environments for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * 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.
+ * @throws com.azure.resourcemanager.app.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 the Managed Environments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 the Managed Environments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Get the properties of a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 getByResourceGroupWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Creates or updates a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+
+ /**
+ * Creates or updates a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+
+ /**
+ * Delete a Managed Environment if it does not have any container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name);
+
+ /**
+ * Delete a Managed Environment if it does not have any container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 name, Context context);
+
+ /**
+ * Delete a Managed Environment if it does not have any container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name);
+
+ /**
+ * Delete a Managed Environment if it does not have any container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, Context context);
+
+ /**
+ * 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 name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentInner update(String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope);
+
+ /**
+ * 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 name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 hosting container apps along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsStoragesClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsStoragesClient.java
new file mode 100644
index 0000000000000..dc5e00f45907e
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsStoragesClient.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.ManagedEnvironmentStorageInner;
+import com.azure.resourcemanager.app.fluent.models.ManagedEnvironmentStoragesCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsStoragesClient. */
+public interface ManagedEnvironmentsStoragesClient {
+ /**
+ * Get all storages for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all storages for a managedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String envName);
+
+ /**
+ * Get all storages for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all storages for a managedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String envName, Context context);
+
+ /**
+ * Get storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage for a managedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentStorageInner get(String resourceGroupName, String envName, String name);
+
+ /**
+ * Get storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage for a managedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String envName, String name, Context context);
+
+ /**
+ * Create or update storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @param storageEnvelope Configuration details of storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentStorageInner createOrUpdate(
+ String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope);
+
+ /**
+ * Create or update storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @param 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.app.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 managedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String envName,
+ String name,
+ ManagedEnvironmentStorageInner storageEnvelope,
+ Context context);
+
+ /**
+ * Delete storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException thrown if the request is rejected
+ * by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String envName, String name);
+
+ /**
+ * Delete storage for a managedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param envName Name of the Environment.
+ * @param name Name of the storage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 envName, String name, Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/NamespacesClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/NamespacesClient.java
new file mode 100644
index 0000000000000..0d0af361fc6f9
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/NamespacesClient.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.app.models.CheckNameAvailabilityRequest;
+
+/** An instance of this class provides access to all the operations defined in NamespacesClient. */
+public interface NamespacesClient {
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/OperationsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..7f52bf81dc449
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.fluent.models.OperationDetailInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available RP operations.
+ *
+ * @throws com.azure.resourcemanager.app.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 available operations of the service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available RP operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.app.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 available operations of the service as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigInner.java
new file mode 100644
index 0000000000000..a75efb99632a0
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigInner.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.app.models.AuthPlatform;
+import com.azure.resourcemanager.app.models.GlobalValidation;
+import com.azure.resourcemanager.app.models.HttpSettings;
+import com.azure.resourcemanager.app.models.IdentityProviders;
+import com.azure.resourcemanager.app.models.Login;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature. */
+@Fluent
+public final class AuthConfigInner extends ProxyResource {
+ /*
+ * AuthConfig resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private AuthConfigProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: AuthConfig resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private AuthConfigProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the platform property: The configuration settings of the platform of ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @return the platform value.
+ */
+ public AuthPlatform platform() {
+ return this.innerProperties() == null ? null : this.innerProperties().platform();
+ }
+
+ /**
+ * Set the platform property: The configuration settings of the platform of ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @param platform the platform value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withPlatform(AuthPlatform platform) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withPlatform(platform);
+ return this;
+ }
+
+ /**
+ * Get the globalValidation property: The configuration settings that determines the validation flow of users using
+ * Service Authentication/Authorization.
+ *
+ * @return the globalValidation value.
+ */
+ public GlobalValidation globalValidation() {
+ return this.innerProperties() == null ? null : this.innerProperties().globalValidation();
+ }
+
+ /**
+ * Set the globalValidation property: The configuration settings that determines the validation flow of users using
+ * Service Authentication/Authorization.
+ *
+ * @param globalValidation the globalValidation value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withGlobalValidation(GlobalValidation globalValidation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withGlobalValidation(globalValidation);
+ return this;
+ }
+
+ /**
+ * Get the identityProviders property: The configuration settings of each of the identity providers used to
+ * configure ContainerApp Service Authentication/Authorization.
+ *
+ * @return the identityProviders value.
+ */
+ public IdentityProviders identityProviders() {
+ return this.innerProperties() == null ? null : this.innerProperties().identityProviders();
+ }
+
+ /**
+ * Set the identityProviders property: The configuration settings of each of the identity providers used to
+ * configure ContainerApp Service Authentication/Authorization.
+ *
+ * @param identityProviders the identityProviders value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withIdentityProviders(IdentityProviders identityProviders) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withIdentityProviders(identityProviders);
+ return this;
+ }
+
+ /**
+ * Get the login property: The configuration settings of the login flow of users using ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @return the login value.
+ */
+ public Login login() {
+ return this.innerProperties() == null ? null : this.innerProperties().login();
+ }
+
+ /**
+ * Set the login property: The configuration settings of the login flow of users using ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @param login the login value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withLogin(Login login) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withLogin(login);
+ return this;
+ }
+
+ /**
+ * Get the httpSettings property: The configuration settings of the HTTP requests for authentication and
+ * authorization requests made against ContainerApp Service Authentication/Authorization.
+ *
+ * @return the httpSettings value.
+ */
+ public HttpSettings httpSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().httpSettings();
+ }
+
+ /**
+ * Set the httpSettings property: The configuration settings of the HTTP requests for authentication and
+ * authorization requests made against ContainerApp Service Authentication/Authorization.
+ *
+ * @param httpSettings the httpSettings value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withHttpSettings(HttpSettings httpSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withHttpSettings(httpSettings);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigProperties.java
new file mode 100644
index 0000000000000..df1fef5a441d7
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/AuthConfigProperties.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.AuthPlatform;
+import com.azure.resourcemanager.app.models.GlobalValidation;
+import com.azure.resourcemanager.app.models.HttpSettings;
+import com.azure.resourcemanager.app.models.IdentityProviders;
+import com.azure.resourcemanager.app.models.Login;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** AuthConfig resource specific properties. */
+@Fluent
+public final class AuthConfigProperties {
+ /*
+ * 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.
+ */
+ @JsonProperty(value = "globalValidation")
+ private GlobalValidation globalValidation;
+
+ /*
+ * 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.
+ */
+ @JsonProperty(value = "login")
+ private Login login;
+
+ /*
+ * The configuration settings of the HTTP requests for authentication and
+ * authorization requests made against ContainerApp Service
+ * Authentication/Authorization.
+ */
+ @JsonProperty(value = "httpSettings")
+ private HttpSettings httpSettings;
+
+ /**
+ * Get the platform property: The configuration settings of the platform of ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @return the platform value.
+ */
+ public AuthPlatform platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform property: The configuration settings of the platform of ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @param platform the platform value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withPlatform(AuthPlatform platform) {
+ this.platform = platform;
+ return this;
+ }
+
+ /**
+ * Get the globalValidation property: The configuration settings that determines the validation flow of users using
+ * Service Authentication/Authorization.
+ *
+ * @return the globalValidation value.
+ */
+ public GlobalValidation globalValidation() {
+ return this.globalValidation;
+ }
+
+ /**
+ * Set the globalValidation property: The configuration settings that determines the validation flow of users using
+ * Service Authentication/Authorization.
+ *
+ * @param globalValidation the globalValidation value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withGlobalValidation(GlobalValidation globalValidation) {
+ this.globalValidation = globalValidation;
+ return this;
+ }
+
+ /**
+ * Get the identityProviders property: The configuration settings of each of the identity providers used to
+ * configure ContainerApp Service Authentication/Authorization.
+ *
+ * @return the identityProviders value.
+ */
+ public IdentityProviders identityProviders() {
+ return this.identityProviders;
+ }
+
+ /**
+ * Set the identityProviders property: The configuration settings of each of the identity providers used to
+ * configure ContainerApp Service Authentication/Authorization.
+ *
+ * @param identityProviders the identityProviders value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withIdentityProviders(IdentityProviders identityProviders) {
+ this.identityProviders = identityProviders;
+ return this;
+ }
+
+ /**
+ * Get the login property: The configuration settings of the login flow of users using ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @return the login value.
+ */
+ public Login login() {
+ return this.login;
+ }
+
+ /**
+ * Set the login property: The configuration settings of the login flow of users using ContainerApp Service
+ * Authentication/Authorization.
+ *
+ * @param login the login value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withLogin(Login login) {
+ this.login = login;
+ return this;
+ }
+
+ /**
+ * Get the httpSettings property: The configuration settings of the HTTP requests for authentication and
+ * authorization requests made against ContainerApp Service Authentication/Authorization.
+ *
+ * @return the httpSettings value.
+ */
+ public HttpSettings httpSettings() {
+ return this.httpSettings;
+ }
+
+ /**
+ * Set the httpSettings property: The configuration settings of the HTTP requests for authentication and
+ * authorization requests made against ContainerApp Service Authentication/Authorization.
+ *
+ * @param httpSettings the httpSettings value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withHttpSettings(HttpSettings httpSettings) {
+ this.httpSettings = httpSettings;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (platform() != null) {
+ platform().validate();
+ }
+ if (globalValidation() != null) {
+ globalValidation().validate();
+ }
+ if (identityProviders() != null) {
+ identityProviders().validate();
+ }
+ if (login() != null) {
+ login().validate();
+ }
+ if (httpSettings() != null) {
+ httpSettings().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CertificateInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CertificateInner.java
new file mode 100644
index 0000000000000..a4c5ce521a375
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CertificateInner.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.CertificateProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Certificate used for Custom Domain bindings of Container Apps in a Managed Environment. */
+@Fluent
+public final class CertificateInner extends Resource {
+ /*
+ * Certificate resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private CertificateProperties 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: Certificate resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public CertificateProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Certificate resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the CertificateInner object itself.
+ */
+ public CertificateInner withProperties(CertificateProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CertificateInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CertificateInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CheckNameAvailabilityResponseInner.java
new file mode 100644
index 0000000000000..1d5e6e7e1a57e
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CheckNameAvailabilityResponseInner.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.CheckNameAvailabilityReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The check availability result. */
+@Fluent
+public final class CheckNameAvailabilityResponseInner {
+ /*
+ * Indicates if the resource name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason why the given name is not available.
+ */
+ @JsonProperty(value = "reason")
+ private CheckNameAvailabilityReason reason;
+
+ /*
+ * Detailed reason why the given name is available.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the nameAvailable property: Indicates if the resource name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Indicates if the resource name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason why the given name is not available.
+ *
+ * @return the reason value.
+ */
+ public CheckNameAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason why the given name is not available.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the message property: Detailed reason why the given name is available.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: Detailed reason why the given name is available.
+ *
+ * @param message the message value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppInner.java
new file mode 100644
index 0000000000000..c3eff1004d0ac
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppInner.java
@@ -0,0 +1,205 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.resourcemanager.app.models.Configuration;
+import com.azure.resourcemanager.app.models.ContainerAppProvisioningState;
+import com.azure.resourcemanager.app.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.app.models.Template;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Container App. */
+@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.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * ContainerApp resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ContainerAppProperties innerProperties;
+
+ /**
+ * Get the identity property: managed identities for the Container App to interact with other Azure services without
+ * maintaining any secrets or credentials in code.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: managed identities for the Container App to interact with other Azure services without
+ * maintaining any secrets or credentials in code.
+ *
+ * @param identity the identity value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: ContainerApp resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ContainerAppProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ContainerAppInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ContainerAppInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Container App.
+ *
+ * @return the provisioningState value.
+ */
+ public ContainerAppProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ *
+ * @return the managedEnvironmentId value.
+ */
+ public String managedEnvironmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedEnvironmentId();
+ }
+
+ /**
+ * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ *
+ * @param managedEnvironmentId the managedEnvironmentId value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withManagedEnvironmentId(String managedEnvironmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withManagedEnvironmentId(managedEnvironmentId);
+ return this;
+ }
+
+ /**
+ * Get the latestRevisionName property: Name of the latest revision of the Container App.
+ *
+ * @return the latestRevisionName value.
+ */
+ public String latestRevisionName() {
+ return this.innerProperties() == null ? null : this.innerProperties().latestRevisionName();
+ }
+
+ /**
+ * Get the latestRevisionFqdn property: Fully Qualified Domain Name of the latest revision of the Container App.
+ *
+ * @return the latestRevisionFqdn value.
+ */
+ public String latestRevisionFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().latestRevisionFqdn();
+ }
+
+ /**
+ * Get the customDomainVerificationId property: Id used to verify domain name ownership.
+ *
+ * @return the customDomainVerificationId value.
+ */
+ public String customDomainVerificationId() {
+ return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationId();
+ }
+
+ /**
+ * Get the configuration property: Non versioned Container App configuration properties.
+ *
+ * @return the configuration value.
+ */
+ public Configuration configuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().configuration();
+ }
+
+ /**
+ * Set the configuration property: Non versioned Container App configuration properties.
+ *
+ * @param configuration the configuration value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withConfiguration(Configuration configuration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withConfiguration(configuration);
+ return this;
+ }
+
+ /**
+ * Get the template property: Container App versioned application definition.
+ *
+ * @return the template value.
+ */
+ public Template template() {
+ return this.innerProperties() == null ? null : this.innerProperties().template();
+ }
+
+ /**
+ * Set the template property: Container App versioned application definition.
+ *
+ * @param template the template value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withTemplate(Template template) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withTemplate(template);
+ return this;
+ }
+
+ /**
+ * Get the outboundIpAddresses property: Outbound IP Addresses for container app.
+ *
+ * @return the outboundIpAddresses value.
+ */
+ public List outboundIpAddresses() {
+ return this.innerProperties() == null ? null : this.innerProperties().outboundIpAddresses();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppProperties.java
new file mode 100644
index 0000000000000..e0584b84fbec1
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppProperties.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.Configuration;
+import com.azure.resourcemanager.app.models.ContainerAppProvisioningState;
+import com.azure.resourcemanager.app.models.Template;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** ContainerApp resource specific properties. */
+@Fluent
+public final class ContainerAppProperties {
+ /*
+ * Provisioning state of the Container App.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerAppProvisioningState provisioningState;
+
+ /*
+ * Resource ID of the Container App's environment.
+ */
+ @JsonProperty(value = "managedEnvironmentId")
+ private String managedEnvironmentId;
+
+ /*
+ * Name of the latest revision of the Container App.
+ */
+ @JsonProperty(value = "latestRevisionName", access = JsonProperty.Access.WRITE_ONLY)
+ private String latestRevisionName;
+
+ /*
+ * Fully Qualified Domain Name of the latest revision of the Container App.
+ */
+ @JsonProperty(value = "latestRevisionFqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String latestRevisionFqdn;
+
+ /*
+ * Id used to verify domain name ownership
+ */
+ @JsonProperty(value = "customDomainVerificationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String customDomainVerificationId;
+
+ /*
+ * Non versioned Container App configuration properties.
+ */
+ @JsonProperty(value = "configuration")
+ private Configuration configuration;
+
+ /*
+ * Container App versioned application definition.
+ */
+ @JsonProperty(value = "template")
+ private Template template;
+
+ /*
+ * Outbound IP Addresses for container app.
+ */
+ @JsonProperty(value = "outboundIPAddresses", access = JsonProperty.Access.WRITE_ONLY)
+ private List outboundIpAddresses;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Container App.
+ *
+ * @return the provisioningState value.
+ */
+ public ContainerAppProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ *
+ * @return the managedEnvironmentId value.
+ */
+ public String managedEnvironmentId() {
+ return this.managedEnvironmentId;
+ }
+
+ /**
+ * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ *
+ * @param managedEnvironmentId the managedEnvironmentId value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withManagedEnvironmentId(String managedEnvironmentId) {
+ this.managedEnvironmentId = managedEnvironmentId;
+ return this;
+ }
+
+ /**
+ * Get the latestRevisionName property: Name of the latest revision of the Container App.
+ *
+ * @return the latestRevisionName value.
+ */
+ public String latestRevisionName() {
+ return this.latestRevisionName;
+ }
+
+ /**
+ * Get the latestRevisionFqdn property: Fully Qualified Domain Name of the latest revision of the Container App.
+ *
+ * @return the latestRevisionFqdn value.
+ */
+ public String latestRevisionFqdn() {
+ return this.latestRevisionFqdn;
+ }
+
+ /**
+ * Get the customDomainVerificationId property: Id used to verify domain name ownership.
+ *
+ * @return the customDomainVerificationId value.
+ */
+ public String customDomainVerificationId() {
+ return this.customDomainVerificationId;
+ }
+
+ /**
+ * Get the configuration property: Non versioned Container App configuration properties.
+ *
+ * @return the configuration value.
+ */
+ public Configuration configuration() {
+ return this.configuration;
+ }
+
+ /**
+ * Set the configuration property: Non versioned Container App configuration properties.
+ *
+ * @param configuration the configuration value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withConfiguration(Configuration configuration) {
+ this.configuration = configuration;
+ return this;
+ }
+
+ /**
+ * Get the template property: Container App versioned application definition.
+ *
+ * @return the template value.
+ */
+ public Template template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: Container App versioned application definition.
+ *
+ * @param template the template value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withTemplate(Template template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the outboundIpAddresses property: Outbound IP Addresses for container app.
+ *
+ * @return the outboundIpAddresses value.
+ */
+ public List outboundIpAddresses() {
+ return this.outboundIpAddresses;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (configuration() != null) {
+ configuration().validate();
+ }
+ if (template() != null) {
+ template().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultInner.java
new file mode 100644
index 0000000000000..208820d538984
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultInner.java
@@ -0,0 +1,231 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.DefaultErrorResponseError;
+import com.azure.resourcemanager.app.models.DnsVerificationTestResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Custom domain analysis. */
+@Fluent
+public final class CustomHostnameAnalysisResultInner extends ProxyResource {
+ /*
+ * CustomHostnameAnalysisResult resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private CustomHostnameAnalysisResultProperties 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: CustomHostnameAnalysisResult resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private CustomHostnameAnalysisResultProperties 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;
+ }
+
+ /**
+ * Get the hostname property: Host name that was analyzed.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.innerProperties() == null ? null : this.innerProperties().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.innerProperties() == null ? null : this.innerProperties().isHostnameAlreadyVerified();
+ }
+
+ /**
+ * Get the customDomainVerificationTest property: DNS verification test result.
+ *
+ * @return the customDomainVerificationTest value.
+ */
+ public DnsVerificationTestResult customDomainVerificationTest() {
+ return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationTest();
+ }
+
+ /**
+ * Get the customDomainVerificationFailureInfo property: Raw failure information if DNS verification fails.
+ *
+ * @return the customDomainVerificationFailureInfo value.
+ */
+ public DefaultErrorResponseError customDomainVerificationFailureInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().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.innerProperties() == null ? null : this.innerProperties().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.innerProperties() == null ? null : this.innerProperties().conflictingContainerAppResourceId();
+ }
+
+ /**
+ * Get the cNameRecords property: CName records visible for this hostname.
+ *
+ * @return the cNameRecords value.
+ */
+ public List cNameRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().cNameRecords();
+ }
+
+ /**
+ * Set the cNameRecords property: CName records visible for this hostname.
+ *
+ * @param cNameRecords the cNameRecords value to set.
+ * @return the CustomHostnameAnalysisResultInner object itself.
+ */
+ public CustomHostnameAnalysisResultInner withCNameRecords(List cNameRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomHostnameAnalysisResultProperties();
+ }
+ this.innerProperties().withCNameRecords(cNameRecords);
+ return this;
+ }
+
+ /**
+ * Get the txtRecords property: TXT records visible for this hostname.
+ *
+ * @return the txtRecords value.
+ */
+ public List txtRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().txtRecords();
+ }
+
+ /**
+ * Set the txtRecords property: TXT records visible for this hostname.
+ *
+ * @param txtRecords the txtRecords value to set.
+ * @return the CustomHostnameAnalysisResultInner object itself.
+ */
+ public CustomHostnameAnalysisResultInner withTxtRecords(List txtRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomHostnameAnalysisResultProperties();
+ }
+ this.innerProperties().withTxtRecords(txtRecords);
+ return this;
+ }
+
+ /**
+ * Get the aRecords property: A records visible for this hostname.
+ *
+ * @return the aRecords value.
+ */
+ public List aRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().aRecords();
+ }
+
+ /**
+ * Set the aRecords property: A records visible for this hostname.
+ *
+ * @param aRecords the aRecords value to set.
+ * @return the CustomHostnameAnalysisResultInner object itself.
+ */
+ public CustomHostnameAnalysisResultInner withARecords(List aRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomHostnameAnalysisResultProperties();
+ }
+ this.innerProperties().withARecords(aRecords);
+ return this;
+ }
+
+ /**
+ * Get the alternateCNameRecords property: Alternate CName records visible for this hostname.
+ *
+ * @return the alternateCNameRecords value.
+ */
+ public List alternateCNameRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateCNameRecords();
+ }
+
+ /**
+ * Set the alternateCNameRecords property: Alternate CName records visible for this hostname.
+ *
+ * @param alternateCNameRecords the alternateCNameRecords value to set.
+ * @return the CustomHostnameAnalysisResultInner object itself.
+ */
+ public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List alternateCNameRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomHostnameAnalysisResultProperties();
+ }
+ this.innerProperties().withAlternateCNameRecords(alternateCNameRecords);
+ return this;
+ }
+
+ /**
+ * Get the alternateTxtRecords property: Alternate TXT records visible for this hostname.
+ *
+ * @return the alternateTxtRecords value.
+ */
+ public List alternateTxtRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateTxtRecords();
+ }
+
+ /**
+ * Set the alternateTxtRecords property: Alternate TXT records visible for this hostname.
+ *
+ * @param alternateTxtRecords the alternateTxtRecords value to set.
+ * @return the CustomHostnameAnalysisResultInner object itself.
+ */
+ public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List alternateTxtRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomHostnameAnalysisResultProperties();
+ }
+ this.innerProperties().withAlternateTxtRecords(alternateTxtRecords);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultProperties.java
new file mode 100644
index 0000000000000..a026383a60024
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/CustomHostnameAnalysisResultProperties.java
@@ -0,0 +1,252 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.DefaultErrorResponseError;
+import com.azure.resourcemanager.app.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/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentInner.java
new file mode 100644
index 0000000000000..866e5a39a709c
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentInner.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.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.DaprMetadata;
+import com.azure.resourcemanager.app.models.Secret;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Dapr Component. */
+@Fluent
+public final class DaprComponentInner extends ProxyResource {
+ /*
+ * Dapr Component resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private DaprComponentProperties 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: Dapr Component resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DaprComponentProperties 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;
+ }
+
+ /**
+ * Get the componentType property: Component type.
+ *
+ * @return the componentType value.
+ */
+ public String componentType() {
+ return this.innerProperties() == null ? null : this.innerProperties().componentType();
+ }
+
+ /**
+ * Set the componentType property: Component type.
+ *
+ * @param componentType the componentType value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withComponentType(String componentType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withComponentType(componentType);
+ return this;
+ }
+
+ /**
+ * Get the version property: Component version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Set the version property: Component version.
+ *
+ * @param version the version value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withVersion(String version) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withVersion(version);
+ return this;
+ }
+
+ /**
+ * Get the ignoreErrors property: Boolean describing if the component errors are ignores.
+ *
+ * @return the ignoreErrors value.
+ */
+ public Boolean ignoreErrors() {
+ return this.innerProperties() == null ? null : this.innerProperties().ignoreErrors();
+ }
+
+ /**
+ * Set the ignoreErrors property: Boolean describing if the component errors are ignores.
+ *
+ * @param ignoreErrors the ignoreErrors value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withIgnoreErrors(Boolean ignoreErrors) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withIgnoreErrors(ignoreErrors);
+ return this;
+ }
+
+ /**
+ * Get the initTimeout property: Initialization timeout.
+ *
+ * @return the initTimeout value.
+ */
+ public String initTimeout() {
+ return this.innerProperties() == null ? null : this.innerProperties().initTimeout();
+ }
+
+ /**
+ * Set the initTimeout property: Initialization timeout.
+ *
+ * @param initTimeout the initTimeout value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withInitTimeout(String initTimeout) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withInitTimeout(initTimeout);
+ return this;
+ }
+
+ /**
+ * Get the secrets property: Collection of secrets used by a Dapr component.
+ *
+ * @return the secrets value.
+ */
+ public List secrets() {
+ return this.innerProperties() == null ? null : this.innerProperties().secrets();
+ }
+
+ /**
+ * Set the secrets property: Collection of secrets used by a Dapr component.
+ *
+ * @param secrets the secrets value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withSecrets(List secrets) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withSecrets(secrets);
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Component metadata.
+ *
+ * @return the metadata value.
+ */
+ public List metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Component metadata.
+ *
+ * @param metadata the metadata value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withMetadata(List metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the scopes property: Names of container apps that can use this Dapr component.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.innerProperties() == null ? null : this.innerProperties().scopes();
+ }
+
+ /**
+ * Set the scopes property: Names of container apps that can use this Dapr component.
+ *
+ * @param scopes the scopes value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withScopes(List scopes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withScopes(scopes);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentProperties.java
new file mode 100644
index 0000000000000..c7325969f04fb
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/DaprComponentProperties.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.DaprMetadata;
+import com.azure.resourcemanager.app.models.Secret;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Dapr Component resource specific properties. */
+@Fluent
+public final class DaprComponentProperties {
+ /*
+ * Component type
+ */
+ @JsonProperty(value = "componentType")
+ private String componentType;
+
+ /*
+ * Component version
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /*
+ * Boolean describing if the component errors are ignores
+ */
+ @JsonProperty(value = "ignoreErrors")
+ private Boolean ignoreErrors;
+
+ /*
+ * Initialization timeout
+ */
+ @JsonProperty(value = "initTimeout")
+ private String initTimeout;
+
+ /*
+ * Collection of secrets used by a Dapr component
+ */
+ @JsonProperty(value = "secrets")
+ private List secrets;
+
+ /*
+ * Component metadata
+ */
+ @JsonProperty(value = "metadata")
+ private List metadata;
+
+ /*
+ * Names of container apps that can use this Dapr component
+ */
+ @JsonProperty(value = "scopes")
+ private List scopes;
+
+ /**
+ * Get the componentType property: Component type.
+ *
+ * @return the componentType value.
+ */
+ public String componentType() {
+ return this.componentType;
+ }
+
+ /**
+ * Set the componentType property: Component type.
+ *
+ * @param componentType the componentType value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withComponentType(String componentType) {
+ this.componentType = componentType;
+ return this;
+ }
+
+ /**
+ * Get the version property: Component version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Component version.
+ *
+ * @param version the version value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the ignoreErrors property: Boolean describing if the component errors are ignores.
+ *
+ * @return the ignoreErrors value.
+ */
+ public Boolean ignoreErrors() {
+ return this.ignoreErrors;
+ }
+
+ /**
+ * Set the ignoreErrors property: Boolean describing if the component errors are ignores.
+ *
+ * @param ignoreErrors the ignoreErrors value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withIgnoreErrors(Boolean ignoreErrors) {
+ this.ignoreErrors = ignoreErrors;
+ return this;
+ }
+
+ /**
+ * Get the initTimeout property: Initialization timeout.
+ *
+ * @return the initTimeout value.
+ */
+ public String initTimeout() {
+ return this.initTimeout;
+ }
+
+ /**
+ * Set the initTimeout property: Initialization timeout.
+ *
+ * @param initTimeout the initTimeout value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withInitTimeout(String initTimeout) {
+ this.initTimeout = initTimeout;
+ return this;
+ }
+
+ /**
+ * Get the secrets property: Collection of secrets used by a Dapr component.
+ *
+ * @return the secrets value.
+ */
+ public List secrets() {
+ return this.secrets;
+ }
+
+ /**
+ * Set the secrets property: Collection of secrets used by a Dapr component.
+ *
+ * @param secrets the secrets value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withSecrets(List secrets) {
+ this.secrets = secrets;
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Component metadata.
+ *
+ * @return the metadata value.
+ */
+ public List metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Component metadata.
+ *
+ * @param metadata the metadata value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withMetadata(List metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the scopes property: Names of container apps that can use this Dapr component.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.scopes;
+ }
+
+ /**
+ * Set the scopes property: Names of container apps that can use this Dapr component.
+ *
+ * @param scopes the scopes value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withScopes(List scopes) {
+ this.scopes = scopes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (secrets() != null) {
+ secrets().forEach(e -> e.validate());
+ }
+ if (metadata() != null) {
+ metadata().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentInner.java
new file mode 100644
index 0000000000000..a56eb1aaea49c
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentInner.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.AppLogsConfiguration;
+import com.azure.resourcemanager.app.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.app.models.VnetConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An environment for hosting container apps. */
+@Fluent
+public final class ManagedEnvironmentInner extends Resource {
+ /*
+ * Managed environment resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ManagedEnvironmentProperties 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: Managed environment resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ManagedEnvironmentProperties 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 ManagedEnvironmentInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedEnvironmentInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public EnvironmentProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIInstrumentationKey value.
+ */
+ public String daprAIInstrumentationKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprAIInstrumentationKey();
+ }
+
+ /**
+ * Set the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIInstrumentationKey the daprAIInstrumentationKey value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withDaprAIInstrumentationKey(String daprAIInstrumentationKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withDaprAIInstrumentationKey(daprAIInstrumentationKey);
+ return this;
+ }
+
+ /**
+ * Get the vnetConfiguration property: Vnet configuration for the environment.
+ *
+ * @return the vnetConfiguration value.
+ */
+ public VnetConfiguration vnetConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().vnetConfiguration();
+ }
+
+ /**
+ * Set the vnetConfiguration property: Vnet configuration for the environment.
+ *
+ * @param vnetConfiguration the vnetConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withVnetConfiguration(VnetConfiguration vnetConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withVnetConfiguration(vnetConfiguration);
+ return this;
+ }
+
+ /**
+ * 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 Environment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().staticIp();
+ }
+
+ /**
+ * Get the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a
+ * destination. Currently only "log-analytics" is supported.
+ *
+ * @return the appLogsConfiguration value.
+ */
+ public AppLogsConfiguration appLogsConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().appLogsConfiguration();
+ }
+
+ /**
+ * Set the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a
+ * destination. Currently only "log-analytics" is supported.
+ *
+ * @param appLogsConfiguration the appLogsConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withAppLogsConfiguration(appLogsConfiguration);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentProperties.java
new file mode 100644
index 0000000000000..bc4a4c8bd94ca
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentProperties.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.AppLogsConfiguration;
+import com.azure.resourcemanager.app.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.app.models.VnetConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Managed environment resource specific properties. */
+@Fluent
+public final class ManagedEnvironmentProperties {
+ /*
+ * Provisioning state of the Environment.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private EnvironmentProvisioningState provisioningState;
+
+ /*
+ * Azure Monitor instrumentation key used by Dapr to export Service to
+ * Service communication telemetry
+ */
+ @JsonProperty(value = "daprAIInstrumentationKey")
+ private String daprAIInstrumentationKey;
+
+ /*
+ * Vnet configuration for the environment
+ */
+ @JsonProperty(value = "vnetConfiguration")
+ private VnetConfiguration vnetConfiguration;
+
+ /*
+ * 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 Environment
+ */
+ @JsonProperty(value = "staticIp", access = JsonProperty.Access.WRITE_ONLY)
+ private String staticIp;
+
+ /*
+ * Cluster configuration which enables the log daemon to export
+ * app logs to a destination. Currently only "log-analytics" is
+ * supported
+ */
+ @JsonProperty(value = "appLogsConfiguration")
+ private AppLogsConfiguration appLogsConfiguration;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public EnvironmentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIInstrumentationKey value.
+ */
+ public String daprAIInstrumentationKey() {
+ return this.daprAIInstrumentationKey;
+ }
+
+ /**
+ * Set the daprAIInstrumentationKey property: Azure Monitor instrumentation key used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIInstrumentationKey the daprAIInstrumentationKey value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withDaprAIInstrumentationKey(String daprAIInstrumentationKey) {
+ this.daprAIInstrumentationKey = daprAIInstrumentationKey;
+ return this;
+ }
+
+ /**
+ * Get the vnetConfiguration property: Vnet configuration for the environment.
+ *
+ * @return the vnetConfiguration value.
+ */
+ public VnetConfiguration vnetConfiguration() {
+ return this.vnetConfiguration;
+ }
+
+ /**
+ * Set the vnetConfiguration property: Vnet configuration for the environment.
+ *
+ * @param vnetConfiguration the vnetConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withVnetConfiguration(VnetConfiguration vnetConfiguration) {
+ this.vnetConfiguration = vnetConfiguration;
+ return this;
+ }
+
+ /**
+ * 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 Environment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.staticIp;
+ }
+
+ /**
+ * Get the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a
+ * destination. Currently only "log-analytics" is supported.
+ *
+ * @return the appLogsConfiguration value.
+ */
+ public AppLogsConfiguration appLogsConfiguration() {
+ return this.appLogsConfiguration;
+ }
+
+ /**
+ * Set the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a
+ * destination. Currently only "log-analytics" is supported.
+ *
+ * @param appLogsConfiguration the appLogsConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration) {
+ this.appLogsConfiguration = appLogsConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (vnetConfiguration() != null) {
+ vnetConfiguration().validate();
+ }
+ if (appLogsConfiguration() != null) {
+ appLogsConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStorageInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStorageInner.java
new file mode 100644
index 0000000000000..127cc7d2c0f77
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStorageInner.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.ManagedEnvironmentStorageProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Storage resource for managedEnvironment. */
+@Fluent
+public final class ManagedEnvironmentStorageInner extends ProxyResource {
+ /*
+ * Storage properties
+ */
+ @JsonProperty(value = "properties")
+ private ManagedEnvironmentStorageProperties 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 ManagedEnvironmentStorageProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Storage properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ManagedEnvironmentStorageInner object itself.
+ */
+ public ManagedEnvironmentStorageInner withProperties(ManagedEnvironmentStorageProperties 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/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStoragesCollectionInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStoragesCollectionInner.java
new file mode 100644
index 0000000000000..9d3fbbd544179
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentStoragesCollectionInner.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.app.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 ManagedEnvironmentStoragesCollectionInner {
+ /*
+ * 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 ManagedEnvironmentStoragesCollectionInner object itself.
+ */
+ public ManagedEnvironmentStoragesCollectionInner 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 ManagedEnvironmentStoragesCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ManagedEnvironmentStoragesCollectionInner.class);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/OperationDetailInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/OperationDetailInner.java
new file mode 100644
index 0000000000000..5b1aef4499441
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/OperationDetailInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Operation detail payload. */
+@Fluent
+public final class OperationDetailInner {
+ /*
+ * Name of the operation
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * Display of the operation
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Origin of the operation
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /**
+ * Get the name property: Name of the operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Name of the operation.
+ *
+ * @param name the name value to set.
+ * @return the OperationDetailInner object itself.
+ */
+ public OperationDetailInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationDetailInner object itself.
+ */
+ public OperationDetailInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: Display of the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Display of the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationDetailInner object itself.
+ */
+ public OperationDetailInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Origin of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Origin of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationDetailInner object itself.
+ */
+ public OperationDetailInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaCollectionInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaCollectionInner.java
new file mode 100644
index 0000000000000..0be0c0b9a6590
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaCollectionInner.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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;
+
+/** Container App Revision Replicas collection ARM resource. */
+@Fluent
+public final class ReplicaCollectionInner {
+ /*
+ * Collection of resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of resources.
+ *
+ * @param value the value value to set.
+ * @return the ReplicaCollectionInner object itself.
+ */
+ public ReplicaCollectionInner 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 ReplicaCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ReplicaCollectionInner.class);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaInner.java
new file mode 100644
index 0000000000000..e79ed7ee659b7
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.ReplicaContainer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Container App Revision Replica. */
+@Fluent
+public final class ReplicaInner extends ProxyResource {
+ /*
+ * Replica resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ReplicaProperties 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: Replica resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ReplicaProperties 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;
+ }
+
+ /**
+ * Get the createdTime property: Timestamp describing when the pod was created by controller.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
+ }
+
+ /**
+ * Get the containers property: The containers collection under a replica.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.innerProperties() == null ? null : this.innerProperties().containers();
+ }
+
+ /**
+ * Set the containers property: The containers collection under a replica.
+ *
+ * @param containers the containers value to set.
+ * @return the ReplicaInner object itself.
+ */
+ public ReplicaInner withContainers(List containers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ReplicaProperties();
+ }
+ this.innerProperties().withContainers(containers);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaProperties.java
new file mode 100644
index 0000000000000..f180a4ee72f71
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaProperties.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.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.ReplicaContainer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Replica resource specific properties. */
+@Fluent
+public final class ReplicaProperties {
+ /*
+ * Timestamp describing when the pod was created by controller
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTime;
+
+ /*
+ * The containers collection under a replica.
+ */
+ @JsonProperty(value = "containers")
+ private List containers;
+
+ /**
+ * Get the createdTime property: Timestamp describing when the pod was created by controller.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the containers property: The containers collection under a replica.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.containers;
+ }
+
+ /**
+ * Set the containers property: The containers collection under a replica.
+ *
+ * @param containers the containers value to set.
+ * @return the ReplicaProperties object itself.
+ */
+ public ReplicaProperties withContainers(List containers) {
+ this.containers = containers;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (containers() != null) {
+ containers().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionInner.java
new file mode 100644
index 0000000000000..2869c02d511f4
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionInner.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.RevisionHealthState;
+import com.azure.resourcemanager.app.models.RevisionProvisioningState;
+import com.azure.resourcemanager.app.models.Template;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Container App Revision. */
+@Fluent
+public final class RevisionInner extends ProxyResource {
+ /*
+ * Revision resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private RevisionProperties 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: Revision resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RevisionProperties 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;
+ }
+
+ /**
+ * Get the createdTime property: Timestamp describing when the revision was created by controller.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
+ }
+
+ /**
+ * Get the fqdn property: Fully qualified domain name of the revision.
+ *
+ * @return the fqdn value.
+ */
+ public String fqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().fqdn();
+ }
+
+ /**
+ * Get the template property: Container App Revision Template with all possible settings and the defaults if user
+ * did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @return the template value.
+ */
+ public Template template() {
+ return this.innerProperties() == null ? null : this.innerProperties().template();
+ }
+
+ /**
+ * Get the active property: Boolean describing if the Revision is Active.
+ *
+ * @return the active value.
+ */
+ public Boolean active() {
+ return this.innerProperties() == null ? null : this.innerProperties().active();
+ }
+
+ /**
+ * Get the replicas property: Number of pods currently running for this revision.
+ *
+ * @return the replicas value.
+ */
+ public Integer replicas() {
+ return this.innerProperties() == null ? null : this.innerProperties().replicas();
+ }
+
+ /**
+ * Get the trafficWeight property: Traffic weight assigned to this revision.
+ *
+ * @return the trafficWeight value.
+ */
+ public Integer trafficWeight() {
+ return this.innerProperties() == null ? null : this.innerProperties().trafficWeight();
+ }
+
+ /**
+ * Get the provisioningError property: Optional Field - Platform Error Message.
+ *
+ * @return the provisioningError value.
+ */
+ public String provisioningError() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningError();
+ }
+
+ /**
+ * Get the healthState property: Current health State of the revision.
+ *
+ * @return the healthState value.
+ */
+ public RevisionHealthState healthState() {
+ return this.innerProperties() == null ? null : this.innerProperties().healthState();
+ }
+
+ /**
+ * Get the provisioningState property: Current provisioning State of the revision.
+ *
+ * @return the provisioningState value.
+ */
+ public RevisionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionProperties.java
new file mode 100644
index 0000000000000..3599e9ccafc3e
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionProperties.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.app.models.RevisionHealthState;
+import com.azure.resourcemanager.app.models.RevisionProvisioningState;
+import com.azure.resourcemanager.app.models.Template;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Revision resource specific properties. */
+@Immutable
+public final class RevisionProperties {
+ /*
+ * Timestamp describing when the revision was created
+ * by controller
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTime;
+
+ /*
+ * Fully qualified domain name of the revision
+ */
+ @JsonProperty(value = "fqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String fqdn;
+
+ /*
+ * Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated
+ * as they were at the creation time
+ */
+ @JsonProperty(value = "template", access = JsonProperty.Access.WRITE_ONLY)
+ private Template template;
+
+ /*
+ * Boolean describing if the Revision is Active
+ */
+ @JsonProperty(value = "active", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean active;
+
+ /*
+ * Number of pods currently running for this revision
+ */
+ @JsonProperty(value = "replicas", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer replicas;
+
+ /*
+ * Traffic weight assigned to this revision
+ */
+ @JsonProperty(value = "trafficWeight", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer trafficWeight;
+
+ /*
+ * Optional Field - Platform Error Message
+ */
+ @JsonProperty(value = "provisioningError", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningError;
+
+ /*
+ * Current health State of the revision
+ */
+ @JsonProperty(value = "healthState", access = JsonProperty.Access.WRITE_ONLY)
+ private RevisionHealthState healthState;
+
+ /*
+ * Current provisioning State of the revision
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private RevisionProvisioningState provisioningState;
+
+ /**
+ * Get the createdTime property: Timestamp describing when the revision was created by controller.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the fqdn property: Fully qualified domain name of the revision.
+ *
+ * @return the fqdn value.
+ */
+ public String fqdn() {
+ return this.fqdn;
+ }
+
+ /**
+ * Get the template property: Container App Revision Template with all possible settings and the defaults if user
+ * did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @return the template value.
+ */
+ public Template template() {
+ return this.template;
+ }
+
+ /**
+ * Get the active property: Boolean describing if the Revision is Active.
+ *
+ * @return the active value.
+ */
+ public Boolean active() {
+ return this.active;
+ }
+
+ /**
+ * Get the replicas property: Number of pods currently running for this revision.
+ *
+ * @return the replicas value.
+ */
+ public Integer replicas() {
+ return this.replicas;
+ }
+
+ /**
+ * Get the trafficWeight property: Traffic weight assigned to this revision.
+ *
+ * @return the trafficWeight value.
+ */
+ public Integer trafficWeight() {
+ return this.trafficWeight;
+ }
+
+ /**
+ * Get the provisioningError property: Optional Field - Platform Error Message.
+ *
+ * @return the provisioningError value.
+ */
+ public String provisioningError() {
+ return this.provisioningError;
+ }
+
+ /**
+ * Get the healthState property: Current health State of the revision.
+ *
+ * @return the healthState value.
+ */
+ public RevisionHealthState healthState() {
+ return this.healthState;
+ }
+
+ /**
+ * Get the provisioningState property: Current provisioning State of the revision.
+ *
+ * @return the provisioningState value.
+ */
+ public RevisionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (template() != null) {
+ template().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SecretsCollectionInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SecretsCollectionInner.java
new file mode 100644
index 0000000000000..d5649afd482e0
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SecretsCollectionInner.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.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.app.models.ContainerAppSecret;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Container App Secrets Collection ARM resource. */
+@Fluent
+public final class SecretsCollectionInner {
+ /*
+ * Collection of resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of resources.
+ *
+ * @param value the value value to set.
+ * @return the SecretsCollectionInner object itself.
+ */
+ public SecretsCollectionInner 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 SecretsCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SecretsCollectionInner.class);
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlInner.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlInner.java
new file mode 100644
index 0000000000000..6101e318798f3
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlInner.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.app.models.GithubActionConfiguration;
+import com.azure.resourcemanager.app.models.SourceControlOperationState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Container App SourceControl. */
+@Fluent
+public final class SourceControlInner extends ProxyResource {
+ /*
+ * SourceControl resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private SourceControlProperties 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: SourceControl resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SourceControlProperties 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;
+ }
+
+ /**
+ * Get the operationState property: Current provisioning State of the operation.
+ *
+ * @return the operationState value.
+ */
+ public SourceControlOperationState operationState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationState();
+ }
+
+ /**
+ * Get the repoUrl property: The repo url which will be integrated to ContainerApp.
+ *
+ * @return the repoUrl value.
+ */
+ public String repoUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().repoUrl();
+ }
+
+ /**
+ * Set the repoUrl property: The repo url which will be integrated to ContainerApp.
+ *
+ * @param repoUrl the repoUrl value to set.
+ * @return the SourceControlInner object itself.
+ */
+ public SourceControlInner withRepoUrl(String repoUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlProperties();
+ }
+ this.innerProperties().withRepoUrl(repoUrl);
+ return this;
+ }
+
+ /**
+ * Get the branch property: The branch which will trigger the auto deployment.
+ *
+ * @return the branch value.
+ */
+ public String branch() {
+ return this.innerProperties() == null ? null : this.innerProperties().branch();
+ }
+
+ /**
+ * Set the branch property: The branch which will trigger the auto deployment.
+ *
+ * @param branch the branch value to set.
+ * @return the SourceControlInner object itself.
+ */
+ public SourceControlInner withBranch(String branch) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlProperties();
+ }
+ this.innerProperties().withBranch(branch);
+ return this;
+ }
+
+ /**
+ * Get the githubActionConfiguration property: Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @return the githubActionConfiguration value.
+ */
+ public GithubActionConfiguration githubActionConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().githubActionConfiguration();
+ }
+
+ /**
+ * Set the githubActionConfiguration property: Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @param githubActionConfiguration the githubActionConfiguration value to set.
+ * @return the SourceControlInner object itself.
+ */
+ public SourceControlInner withGithubActionConfiguration(GithubActionConfiguration githubActionConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlProperties();
+ }
+ this.innerProperties().withGithubActionConfiguration(githubActionConfiguration);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlProperties.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlProperties.java
new file mode 100644
index 0000000000000..2dd14416ae9e6
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlProperties.java
@@ -0,0 +1,122 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.app.models.GithubActionConfiguration;
+import com.azure.resourcemanager.app.models.SourceControlOperationState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** SourceControl resource specific properties. */
+@Fluent
+public final class SourceControlProperties {
+ /*
+ * Current provisioning State of the operation
+ */
+ @JsonProperty(value = "operationState", access = JsonProperty.Access.WRITE_ONLY)
+ private SourceControlOperationState operationState;
+
+ /*
+ * The repo url which will be integrated to ContainerApp.
+ */
+ @JsonProperty(value = "repoUrl")
+ private String repoUrl;
+
+ /*
+ * The branch which will trigger the auto deployment
+ */
+ @JsonProperty(value = "branch")
+ private String branch;
+
+ /*
+ * Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated
+ * as they were at the creation time
+ */
+ @JsonProperty(value = "githubActionConfiguration")
+ private GithubActionConfiguration githubActionConfiguration;
+
+ /**
+ * Get the operationState property: Current provisioning State of the operation.
+ *
+ * @return the operationState value.
+ */
+ public SourceControlOperationState operationState() {
+ return this.operationState;
+ }
+
+ /**
+ * Get the repoUrl property: The repo url which will be integrated to ContainerApp.
+ *
+ * @return the repoUrl value.
+ */
+ public String repoUrl() {
+ return this.repoUrl;
+ }
+
+ /**
+ * Set the repoUrl property: The repo url which will be integrated to ContainerApp.
+ *
+ * @param repoUrl the repoUrl value to set.
+ * @return the SourceControlProperties object itself.
+ */
+ public SourceControlProperties withRepoUrl(String repoUrl) {
+ this.repoUrl = repoUrl;
+ return this;
+ }
+
+ /**
+ * Get the branch property: The branch which will trigger the auto deployment.
+ *
+ * @return the branch value.
+ */
+ public String branch() {
+ return this.branch;
+ }
+
+ /**
+ * Set the branch property: The branch which will trigger the auto deployment.
+ *
+ * @param branch the branch value to set.
+ * @return the SourceControlProperties object itself.
+ */
+ public SourceControlProperties withBranch(String branch) {
+ this.branch = branch;
+ return this;
+ }
+
+ /**
+ * Get the githubActionConfiguration property: Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @return the githubActionConfiguration value.
+ */
+ public GithubActionConfiguration githubActionConfiguration() {
+ return this.githubActionConfiguration;
+ }
+
+ /**
+ * Set the githubActionConfiguration property: Container App Revision Template with all possible settings and the
+ * defaults if user did not provide them. The defaults are populated as they were at the creation time.
+ *
+ * @param githubActionConfiguration the githubActionConfiguration value to set.
+ * @return the SourceControlProperties object itself.
+ */
+ public SourceControlProperties withGithubActionConfiguration(GithubActionConfiguration githubActionConfiguration) {
+ this.githubActionConfiguration = githubActionConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (githubActionConfiguration() != null) {
+ githubActionConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/package-info.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/package-info.java
new file mode 100644
index 0000000000000..1d8bdaca7da83
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for ContainerAppsApiClient. null. */
+package com.azure.resourcemanager.app.fluent.models;
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/package-info.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/package-info.java
new file mode 100644
index 0000000000000..4cc51edd8bae0
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for ContainerAppsApiClient. null. */
+package com.azure.resourcemanager.app.fluent;
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/AuthConfigImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/AuthConfigImpl.java
new file mode 100644
index 0000000000000..5a6693b5e5b36
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/AuthConfigImpl.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.fluent.models.AuthConfigInner;
+import com.azure.resourcemanager.app.models.AuthConfig;
+import com.azure.resourcemanager.app.models.AuthPlatform;
+import com.azure.resourcemanager.app.models.GlobalValidation;
+import com.azure.resourcemanager.app.models.HttpSettings;
+import com.azure.resourcemanager.app.models.IdentityProviders;
+import com.azure.resourcemanager.app.models.Login;
+
+public final class AuthConfigImpl implements AuthConfig, AuthConfig.Definition, AuthConfig.Update {
+ private AuthConfigInner innerObject;
+
+ private final com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public AuthPlatform platform() {
+ return this.innerModel().platform();
+ }
+
+ public GlobalValidation globalValidation() {
+ return this.innerModel().globalValidation();
+ }
+
+ public IdentityProviders identityProviders() {
+ return this.innerModel().identityProviders();
+ }
+
+ public Login login() {
+ return this.innerModel().login();
+ }
+
+ public HttpSettings httpSettings() {
+ return this.innerModel().httpSettings();
+ }
+
+ public AuthConfigInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.app.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String containerAppName;
+
+ private String name;
+
+ public AuthConfigImpl withExistingContainerApp(String resourceGroupName, String containerAppName) {
+ this.resourceGroupName = resourceGroupName;
+ this.containerAppName = containerAppName;
+ return this;
+ }
+
+ public AuthConfig create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthConfig create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ AuthConfigImpl(String name, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new AuthConfigInner();
+ this.serviceManager = serviceManager;
+ this.name = name;
+ }
+
+ public AuthConfigImpl update() {
+ return this;
+ }
+
+ public AuthConfig apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthConfig apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ AuthConfigImpl(AuthConfigInner innerObject, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.containerAppName = Utils.getValueFromIdByName(innerObject.id(), "containerApps");
+ this.name = Utils.getValueFromIdByName(innerObject.id(), "authConfigs");
+ }
+
+ public AuthConfig refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthConfig refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerAppsAuthConfigs()
+ .getWithResponse(resourceGroupName, containerAppName, name, context)
+ .getValue();
+ return this;
+ }
+
+ public AuthConfigImpl withPlatform(AuthPlatform platform) {
+ this.innerModel().withPlatform(platform);
+ return this;
+ }
+
+ public AuthConfigImpl withGlobalValidation(GlobalValidation globalValidation) {
+ this.innerModel().withGlobalValidation(globalValidation);
+ return this;
+ }
+
+ public AuthConfigImpl withIdentityProviders(IdentityProviders identityProviders) {
+ this.innerModel().withIdentityProviders(identityProviders);
+ return this;
+ }
+
+ public AuthConfigImpl withLogin(Login login) {
+ this.innerModel().withLogin(login);
+ return this;
+ }
+
+ public AuthConfigImpl withHttpSettings(HttpSettings httpSettings) {
+ this.innerModel().withHttpSettings(httpSettings);
+ return this;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificateImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificateImpl.java
new file mode 100644
index 0000000000000..65c7a0f9c3a92
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificateImpl.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.app.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.fluent.models.CertificateInner;
+import com.azure.resourcemanager.app.models.Certificate;
+import com.azure.resourcemanager.app.models.CertificatePatch;
+import com.azure.resourcemanager.app.models.CertificateProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class CertificateImpl implements Certificate, Certificate.Definition, Certificate.Update {
+ private CertificateInner innerObject;
+
+ private final com.azure.resourcemanager.app.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 CertificateProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public CertificateInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.app.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String managedEnvironmentName;
+
+ private String name;
+
+ private CertificatePatch updateCertificateEnvelope;
+
+ public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName) {
+ this.resourceGroupName = resourceGroupName;
+ this.managedEnvironmentName = managedEnvironmentName;
+ return this;
+ }
+
+ public Certificate create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .createOrUpdateWithResponse(
+ resourceGroupName, managedEnvironmentName, name, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Certificate create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .createOrUpdateWithResponse(resourceGroupName, managedEnvironmentName, name, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ CertificateImpl(String name, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new CertificateInner();
+ this.serviceManager = serviceManager;
+ this.name = name;
+ }
+
+ public CertificateImpl update() {
+ this.updateCertificateEnvelope = new CertificatePatch();
+ return this;
+ }
+
+ public Certificate apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .updateWithResponse(
+ resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Certificate apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .updateWithResponse(resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, context)
+ .getValue();
+ return this;
+ }
+
+ CertificateImpl(
+ CertificateInner innerObject, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.managedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.name = Utils.getValueFromIdByName(innerObject.id(), "certificates");
+ }
+
+ public Certificate refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Certificate refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCertificates()
+ .getWithResponse(resourceGroupName, managedEnvironmentName, name, context)
+ .getValue();
+ return this;
+ }
+
+ public CertificateImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public CertificateImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public CertificateImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateCertificateEnvelope.withTags(tags);
+ return this;
+ }
+ }
+
+ public CertificateImpl withProperties(CertificateProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesClientImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesClientImpl.java
new file mode 100644
index 0000000000000..5f87c5214aa6f
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesClientImpl.java
@@ -0,0 +1,1157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.CertificatesClient;
+import com.azure.resourcemanager.app.fluent.models.CertificateInner;
+import com.azure.resourcemanager.app.models.CertificateCollection;
+import com.azure.resourcemanager.app.models.CertificatePatch;
+import com.azure.resourcemanager.app.models.DefaultErrorResponseErrorException;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in CertificatesClient. */
+public final class CertificatesClientImpl implements CertificatesClient {
+ /** The proxy service used to perform REST calls. */
+ private final CertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of CertificatesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CertificatesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy.create(CertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientCertificates to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface CertificatesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{managedEnvironmentName}/certificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @PathParam("name") String name,
+ @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"
+ + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @PathParam("name") String name,
+ @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 managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String managedEnvironmentName) {
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ managedEnvironmentName,
+ 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 managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String managedEnvironmentName, 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName 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,
+ managedEnvironmentName,
+ 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 managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String managedEnvironmentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param 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 managed environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String managedEnvironmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String managedEnvironmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName));
+ }
+
+ /**
+ * Get the Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param 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 managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String managedEnvironmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName, context));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 managedEnvironmentName, String name) {
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ managedEnvironmentName,
+ name,
+ 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 managedEnvironmentName Name of the Managed Environment.
+ * @param name 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 managedEnvironmentName, String name, 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String managedEnvironmentName, String name) {
+ return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name) {
+ return getAsync(resourceGroupName, managedEnvironmentName, name).block();
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, Context context) {
+ return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ 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 managedEnvironmentName Name of the Managed Environment.
+ * @param name 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 managedEnvironmentName,
+ String name,
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ 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 managedEnvironmentName Name of the Managed Environment.
+ * @param name 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 managedEnvironmentName, String name, CertificateInner certificateEnvelope) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 managedEnvironmentName, String name) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName,
+ String name,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 managedEnvironmentName, String name) {
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ managedEnvironmentName,
+ name,
+ 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 managedEnvironmentName Name of the Managed Environment.
+ * @param name 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 managedEnvironmentName, String name, 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String managedEnvironmentName, String name) {
+ return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String managedEnvironmentName, String name) {
+ deleteAsync(resourceGroupName, managedEnvironmentName, name).block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block();
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName,
+ String name,
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ managedEnvironmentName,
+ name,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, CertificatePatch certificateEnvelope) {
+ return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName, String name, CertificatePatch certificateEnvelope) {
+ return updateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block();
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param name Name of the Certificate.
+ * @param 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 managedEnvironmentName,
+ String name,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesImpl.java
new file mode 100644
index 0000000000000..db581f40924d0
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CertificatesImpl.java
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.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.app.fluent.CertificatesClient;
+import com.azure.resourcemanager.app.fluent.models.CertificateInner;
+import com.azure.resourcemanager.app.models.Certificate;
+import com.azure.resourcemanager.app.models.Certificates;
+
+public final class CertificatesImpl implements Certificates {
+ private static final ClientLogger LOGGER = new ClientLogger(CertificatesImpl.class);
+
+ private final CertificatesClient innerClient;
+
+ private final com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager;
+
+ public CertificatesImpl(
+ CertificatesClient innerClient, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String managedEnvironmentName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, managedEnvironmentName);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, managedEnvironmentName, context);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public Certificate get(String resourceGroupName, String managedEnvironmentName, String name) {
+ CertificateInner inner = this.serviceClient().get(resourceGroupName, managedEnvironmentName, name);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String managedEnvironmentName, String name, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, managedEnvironmentName, name, 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 managedEnvironmentName, String name) {
+ this.serviceClient().delete(resourceGroupName, managedEnvironmentName, name);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String managedEnvironmentName, String name, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, managedEnvironmentName, name, context);
+ }
+
+ public Certificate getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (managedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "certificates");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (managedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "certificates");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, managedEnvironmentName, name, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (managedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "certificates");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String managedEnvironmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (managedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "certificates");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, managedEnvironmentName, name, context);
+ }
+
+ private CertificatesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.app.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public CertificateImpl define(String name) {
+ return new CertificateImpl(name, this.manager());
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CheckNameAvailabilityResponseImpl.java
new file mode 100644
index 0000000000000..aa56c5880bd70
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/CheckNameAvailabilityResponseImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.implementation;
+
+import com.azure.resourcemanager.app.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.app.models.CheckNameAvailabilityReason;
+import com.azure.resourcemanager.app.models.CheckNameAvailabilityResponse;
+
+public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailabilityResponse {
+ private CheckNameAvailabilityResponseInner innerObject;
+
+ private final com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager;
+
+ CheckNameAvailabilityResponseImpl(
+ CheckNameAvailabilityResponseInner innerObject,
+ com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public CheckNameAvailabilityReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public CheckNameAvailabilityResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.app.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppImpl.java
new file mode 100644
index 0000000000000..e32161fb569da
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppImpl.java
@@ -0,0 +1,248 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.app.fluent.models.ContainerAppInner;
+import com.azure.resourcemanager.app.models.Configuration;
+import com.azure.resourcemanager.app.models.ContainerApp;
+import com.azure.resourcemanager.app.models.ContainerAppPatch;
+import com.azure.resourcemanager.app.models.ContainerAppProvisioningState;
+import com.azure.resourcemanager.app.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.app.models.SecretsCollection;
+import com.azure.resourcemanager.app.models.Template;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class ContainerAppImpl implements ContainerApp, ContainerApp.Definition, ContainerApp.Update {
+ private ContainerAppInner innerObject;
+
+ private final com.azure.resourcemanager.app.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 ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public ContainerAppProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String managedEnvironmentId() {
+ return this.innerModel().managedEnvironmentId();
+ }
+
+ public String latestRevisionName() {
+ return this.innerModel().latestRevisionName();
+ }
+
+ public String latestRevisionFqdn() {
+ return this.innerModel().latestRevisionFqdn();
+ }
+
+ public String customDomainVerificationId() {
+ return this.innerModel().customDomainVerificationId();
+ }
+
+ public Configuration configuration() {
+ return this.innerModel().configuration();
+ }
+
+ public Template template() {
+ return this.innerModel().template();
+ }
+
+ public List outboundIpAddresses() {
+ List inner = this.innerModel().outboundIpAddresses();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ContainerAppInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.app.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String name;
+
+ private ContainerAppPatch updateContainerAppEnvelope;
+
+ public ContainerAppImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ContainerApp create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ContainerApp create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), context);
+ return this;
+ }
+
+ ContainerAppImpl(String name, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ContainerAppInner();
+ this.serviceManager = serviceManager;
+ this.name = name;
+ }
+
+ public ContainerAppImpl update() {
+ this.updateContainerAppEnvelope = new ContainerAppPatch();
+ return this;
+ }
+
+ public ContainerApp apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .updateWithResponse(resourceGroupName, name, updateContainerAppEnvelope, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ContainerApp apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .updateWithResponse(resourceGroupName, name, updateContainerAppEnvelope, context)
+ .getValue();
+ return this;
+ }
+
+ ContainerAppImpl(
+ ContainerAppInner innerObject, com.azure.resourcemanager.app.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.name = Utils.getValueFromIdByName(innerObject.id(), "containerApps");
+ }
+
+ public ContainerApp refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .getByResourceGroupWithResponse(resourceGroupName, name, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ContainerApp refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getContainerApps()
+ .getByResourceGroupWithResponse(resourceGroupName, name, context)
+ .getValue();
+ return this;
+ }
+
+ public SecretsCollection listSecrets() {
+ return serviceManager.containerApps().listSecrets(resourceGroupName, name);
+ }
+
+ public Response listSecretsWithResponse(Context context) {
+ return serviceManager.containerApps().listSecretsWithResponse(resourceGroupName, name, context);
+ }
+
+ public ContainerAppImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ContainerAppImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ContainerAppImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateContainerAppEnvelope.withTags(tags);
+ return this;
+ }
+ }
+
+ public ContainerAppImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ public ContainerAppImpl withManagedEnvironmentId(String managedEnvironmentId) {
+ this.innerModel().withManagedEnvironmentId(managedEnvironmentId);
+ return this;
+ }
+
+ public ContainerAppImpl withConfiguration(Configuration configuration) {
+ this.innerModel().withConfiguration(configuration);
+ return this;
+ }
+
+ public ContainerAppImpl withTemplate(Template template) {
+ this.innerModel().withTemplate(template);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientBuilder.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientBuilder.java
new file mode 100644
index 0000000000000..a4a09a0a24dc7
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientBuilder.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the ContainerAppsApiClientImpl type. */
+@ServiceClientBuilder(serviceClients = {ContainerAppsApiClientImpl.class})
+public final class ContainerAppsApiClientBuilder {
+ /*
+ * The ID of the target subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the ContainerAppsApiClientBuilder.
+ */
+ public ContainerAppsApiClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ContainerAppsApiClientImpl with the provided parameters.
+ *
+ * @return an instance of ContainerAppsApiClientImpl.
+ */
+ public ContainerAppsApiClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ ContainerAppsApiClientImpl client =
+ new ContainerAppsApiClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientImpl.java
new file mode 100644
index 0000000000000..7d550b326b45d
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientImpl.java
@@ -0,0 +1,433 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.app.fluent.CertificatesClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsApiClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsAuthConfigsClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsRevisionReplicasClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsRevisionsClient;
+import com.azure.resourcemanager.app.fluent.ContainerAppsSourceControlsClient;
+import com.azure.resourcemanager.app.fluent.DaprComponentsClient;
+import com.azure.resourcemanager.app.fluent.ManagedEnvironmentsClient;
+import com.azure.resourcemanager.app.fluent.ManagedEnvironmentsStoragesClient;
+import com.azure.resourcemanager.app.fluent.NamespacesClient;
+import com.azure.resourcemanager.app.fluent.OperationsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the ContainerAppsApiClientImpl type. */
+@ServiceClient(builder = ContainerAppsApiClientBuilder.class)
+public final class ContainerAppsApiClientImpl implements ContainerAppsApiClient {
+ /** The ID of the target subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The ContainerAppsAuthConfigsClient object to access its operations. */
+ private final ContainerAppsAuthConfigsClient containerAppsAuthConfigs;
+
+ /**
+ * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ *
+ * @return the ContainerAppsAuthConfigsClient object.
+ */
+ public ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs() {
+ return this.containerAppsAuthConfigs;
+ }
+
+ /** The ContainerAppsClient object to access its operations. */
+ private final ContainerAppsClient containerApps;
+
+ /**
+ * Gets the ContainerAppsClient object to access its operations.
+ *
+ * @return the ContainerAppsClient object.
+ */
+ public ContainerAppsClient getContainerApps() {
+ return this.containerApps;
+ }
+
+ /** The ContainerAppsRevisionsClient object to access its operations. */
+ private final ContainerAppsRevisionsClient containerAppsRevisions;
+
+ /**
+ * Gets the ContainerAppsRevisionsClient object to access its operations.
+ *
+ * @return the ContainerAppsRevisionsClient object.
+ */
+ public ContainerAppsRevisionsClient getContainerAppsRevisions() {
+ return this.containerAppsRevisions;
+ }
+
+ /** The ContainerAppsRevisionReplicasClient object to access its operations. */
+ private final ContainerAppsRevisionReplicasClient containerAppsRevisionReplicas;
+
+ /**
+ * Gets the ContainerAppsRevisionReplicasClient object to access its operations.
+ *
+ * @return the ContainerAppsRevisionReplicasClient object.
+ */
+ public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() {
+ return this.containerAppsRevisionReplicas;
+ }
+
+ /** The DaprComponentsClient object to access its operations. */
+ private final DaprComponentsClient daprComponents;
+
+ /**
+ * Gets the DaprComponentsClient object to access its operations.
+ *
+ * @return the DaprComponentsClient object.
+ */
+ public DaprComponentsClient getDaprComponents() {
+ return this.daprComponents;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The ManagedEnvironmentsClient object to access its operations. */
+ private final ManagedEnvironmentsClient managedEnvironments;
+
+ /**
+ * Gets the ManagedEnvironmentsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsClient object.
+ */
+ public ManagedEnvironmentsClient getManagedEnvironments() {
+ return this.managedEnvironments;
+ }
+
+ /** The CertificatesClient object to access its operations. */
+ private final CertificatesClient certificates;
+
+ /**
+ * Gets the CertificatesClient object to access its operations.
+ *
+ * @return the CertificatesClient object.
+ */
+ public CertificatesClient getCertificates() {
+ return this.certificates;
+ }
+
+ /** The NamespacesClient object to access its operations. */
+ private final NamespacesClient namespaces;
+
+ /**
+ * Gets the NamespacesClient object to access its operations.
+ *
+ * @return the NamespacesClient object.
+ */
+ public NamespacesClient getNamespaces() {
+ return this.namespaces;
+ }
+
+ /** The ManagedEnvironmentsStoragesClient object to access its operations. */
+ private final ManagedEnvironmentsStoragesClient managedEnvironmentsStorages;
+
+ /**
+ * Gets the ManagedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsStoragesClient object.
+ */
+ public ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages() {
+ return this.managedEnvironmentsStorages;
+ }
+
+ /** The ContainerAppsSourceControlsClient object to access its operations. */
+ private final ContainerAppsSourceControlsClient containerAppsSourceControls;
+
+ /**
+ * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ *
+ * @return the ContainerAppsSourceControlsClient object.
+ */
+ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
+ return this.containerAppsSourceControls;
+ }
+
+ /**
+ * Initializes an instance of ContainerAppsApiClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The ID of the target subscription.
+ * @param endpoint server parameter.
+ */
+ ContainerAppsApiClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2022-03-01";
+ this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
+ this.containerApps = new ContainerAppsClientImpl(this);
+ this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
+ this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
+ this.daprComponents = new DaprComponentsClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
+ this.certificates = new CertificatesClientImpl(this);
+ this.namespaces = new NamespacesClientImpl(this);
+ this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this);
+ this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry