diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index f538f02c3c47c..9a92ef9ddb36f 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -335,6 +335,7 @@ com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-be
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-oep;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
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index efafdfe5c9411..3c2cdb5210796 100644
--- a/pom.xml
+++ b/pom.xml
@@ -718,6 +718,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..f38dd253e8c55
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-01-26)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-01-01-preview. 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..336967abd6f57
--- /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-01-01-preview. 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..5611a6baf48a3
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/SAMPLE.md
@@ -0,0 +1,678 @@
+# Code snippets and samples
+
+
+## ContainerApps
+
+- [CreateOrUpdate](#containerapps_createorupdate)
+- [Delete](#containerapps_delete)
+- [GetByResourceGroup](#containerapps_getbyresourcegroup)
+- [List](#containerapps_list)
+- [ListByResourceGroup](#containerapps_listbyresourcegroup)
+- [Update](#containerapps_update)
+
+## 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)
+
+## ManagedEnvironments
+
+- [CreateOrUpdate](#managedenvironments_createorupdate)
+- [Delete](#managedenvironments_delete)
+- [GetByResourceGroup](#managedenvironments_getbyresourcegroup)
+- [List](#managedenvironments_list)
+- [ListByResourceGroup](#managedenvironments_listbyresourcegroup)
+- [Update](#managedenvironments_update)
+
+## Operations
+
+- [List](#operations_list)
+### ContainerApps_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.app.models.Configuration;
+import com.azure.resourcemanager.app.models.Container;
+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 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/preview/2022-01-01-preview/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)))
+ .withTemplate(
+ new Template()
+ .withContainers(
+ Arrays
+ .asList(
+ new Container().withImage("repo/testcontainerApp0:v1").withName("testcontainerApp0")))
+ .withScale(
+ new Scale()
+ .withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule()
+ .withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withDapr(new Dapr().withEnabled(true).withAppPort(3000)))
+ .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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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_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/preview/2022-01-01-preview/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;
+ }
+}
+```
+
+### 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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/examples/SourceControls_ListByContainer.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.containerAppsSourceControls().listByContainerApp("workerapps-rg-xj", "testcanadacentral", 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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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/preview/2022-01-01-preview/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;
+ }
+}
+```
+
+### 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/preview/2022-01-01-preview/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..1c97418db5372
--- /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-01-01-preview.
+ 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.24.1
+
+
+ com.azure
+ azure-core-management
+ 1.5.1
+
+
+
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..d7b4cb0e68446
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/ContainerAppsApiManager.java
@@ -0,0 +1,305 @@
+// 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.ContainerAppsApiClientBuilder;
+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.ManagedEnvironmentsImpl;
+import com.azure.resourcemanager.app.implementation.OperationsImpl;
+import com.azure.resourcemanager.app.models.ContainerApps;
+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.ManagedEnvironments;
+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 ContainerApps containerApps;
+
+ private ContainerAppsRevisions containerAppsRevisions;
+
+ private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
+
+ private ManagedEnvironments managedEnvironments;
+
+ private Operations operations;
+
+ 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 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, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' 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 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 ManagedEnvironments. */
+ public ManagedEnvironments managedEnvironments() {
+ if (this.managedEnvironments == null) {
+ this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
+ }
+ return managedEnvironments;
+ }
+
+ /** @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 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/ContainerAppsApiClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsApiClient.java
new file mode 100644
index 0000000000000..7e550e9b26347
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsApiClient.java
@@ -0,0 +1,88 @@
+// 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 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 ManagedEnvironmentsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsClient object.
+ */
+ ManagedEnvironmentsClient getManagedEnvironments();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * 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/ContainerAppsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsClient.java
new file mode 100644
index 0000000000000..1ac4f437f649f
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsClient.java
@@ -0,0 +1,250 @@
+// 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.models.ContainerAppPatch;
+import reactor.core.publisher.Mono;
+
+/** 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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 container App along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 container App along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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);
+}
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..509a8f3721750
--- /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.
+ */
+ @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.
+ */
+ @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..bab38a50db8dc
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ContainerAppsSourceControlsClient.java
@@ -0,0 +1,219 @@
+// 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;
+import reactor.core.publisher.Mono;
+
+/** 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.
+ */
+ @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.
+ */
+ @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 container App SourceControl along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 container App SourceControl along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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/ManagedEnvironmentsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsClient.java
new file mode 100644
index 0000000000000..cbfa642ea8216
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/ManagedEnvironmentsClient.java
@@ -0,0 +1,256 @@
+// 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;
+import reactor.core.publisher.Mono;
+
+/** 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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 an environment for hosting container apps along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @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 an environment for hosting container apps along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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/OperationsClient.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..334fd3a9a7bb8
--- /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.
+ */
+ @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.
+ */
+ @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/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..cee0dd23bbea1
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppInner.java
@@ -0,0 +1,157 @@
+// 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.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Container App. */
+@Fluent
+public final class ContainerAppInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerAppInner.class);
+
+ /*
+ * ContainerApp resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ContainerAppProperties innerProperties;
+
+ /**
+ * 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 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;
+ }
+
+ /**
+ * 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/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..ff063a68344b6
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ContainerAppProperties.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ContainerApp resource specific properties. */
+@Fluent
+public final class ContainerAppProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerAppProperties.class);
+
+ /*
+ * 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;
+
+ /*
+ * Non versioned Container App configuration properties.
+ */
+ @JsonProperty(value = "configuration")
+ private Configuration configuration;
+
+ /*
+ * Container App versioned application definition.
+ */
+ @JsonProperty(value = "template")
+ private Template template;
+
+ /**
+ * 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 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;
+ }
+
+ /**
+ * 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/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..8d779cf649b03
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentInner.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.app.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An environment for hosting container apps. */
+@Fluent
+public final class ManagedEnvironmentInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedEnvironmentInner.class);
+
+ /*
+ * 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: 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 internalLoadBalancerEnabled property: Only visible within Vnet/Subnet.
+ *
+ * @return the internalLoadBalancerEnabled value.
+ */
+ public Boolean internalLoadBalancerEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().internalLoadBalancerEnabled();
+ }
+
+ /**
+ * Set the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet.
+ *
+ * @param internalLoadBalancerEnabled the internalLoadBalancerEnabled value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withInternalLoadBalancerEnabled(Boolean internalLoadBalancerEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withInternalLoadBalancerEnabled(internalLoadBalancerEnabled);
+ return this;
+ }
+
+ /**
+ * 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..f6f6cefaf2dbf
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ManagedEnvironmentProperties.java
@@ -0,0 +1,204 @@
+// 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.AppLogsConfiguration;
+import com.azure.resourcemanager.app.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.app.models.VnetConfiguration;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Environment resource specific properties. */
+@Fluent
+public final class ManagedEnvironmentProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedEnvironmentProperties.class);
+
+ /*
+ * 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;
+
+ /*
+ * Only visible within Vnet/Subnet
+ */
+ @JsonProperty(value = "internalLoadBalancerEnabled")
+ private Boolean internalLoadBalancerEnabled;
+
+ /*
+ * 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 internalLoadBalancerEnabled property: Only visible within Vnet/Subnet.
+ *
+ * @return the internalLoadBalancerEnabled value.
+ */
+ public Boolean internalLoadBalancerEnabled() {
+ return this.internalLoadBalancerEnabled;
+ }
+
+ /**
+ * Set the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet.
+ *
+ * @param internalLoadBalancerEnabled the internalLoadBalancerEnabled value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withInternalLoadBalancerEnabled(Boolean internalLoadBalancerEnabled) {
+ this.internalLoadBalancerEnabled = internalLoadBalancerEnabled;
+ return this;
+ }
+
+ /**
+ * 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/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..528834c8d3f28
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/OperationDetailInner.java
@@ -0,0 +1,132 @@
+// 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.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Operation detail payload. */
+@Fluent
+public final class OperationDetailInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDetailInner.class);
+
+ /*
+ * 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..d4efb016525e7
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaCollectionInner.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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Container App Revision Replicas collection ARM resource. */
+@Fluent
+public final class ReplicaCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicaCollectionInner.class);
+
+ /*
+ * 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());
+ }
+ }
+}
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..4c00b134ad355
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaInner.java
@@ -0,0 +1,95 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.app.models.ReplicaContainer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+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 {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicaInner.class);
+
+ /*
+ * 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..f7476a9d559c3
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/ReplicaProperties.java
@@ -0,0 +1,71 @@
+// 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.ReplicaContainer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Replica resource specific properties. */
+@Fluent
+public final class ReplicaProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicaProperties.class);
+
+ /*
+ * 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..1f7e0496c048a
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionInner.java
@@ -0,0 +1,129 @@
+// 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.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Container App Revision. */
+@Fluent
+public final class RevisionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RevisionInner.class);
+
+ /*
+ * Revision resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private RevisionProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Revision resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RevisionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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..4104d599a8135
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/RevisionProperties.java
@@ -0,0 +1,170 @@
+// 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.core.util.logging.ClientLogger;
+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.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Revision resource specific properties. */
+@Immutable
+public final class RevisionProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RevisionProperties.class);
+
+ /*
+ * 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/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..ad260d3b45003
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlInner.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.app.models.GithubActionConfiguration;
+import com.azure.resourcemanager.app.models.SourceControlOperationState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Container App SourceControl. */
+@Fluent
+public final class SourceControlInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SourceControlInner.class);
+
+ /*
+ * 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..1a31ce880c1b4
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/fluent/models/SourceControlProperties.java
@@ -0,0 +1,126 @@
+// 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.GithubActionConfiguration;
+import com.azure.resourcemanager.app.models.SourceControlOperationState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** SourceControl resource specific properties. */
+@Fluent
+public final class SourceControlProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SourceControlProperties.class);
+
+ /*
+ * 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/ContainerAppImpl.java b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppImpl.java
new file mode 100644
index 0000000000000..a04cd1af3ff55
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppImpl.java
@@ -0,0 +1,214 @@
+// 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.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.Template;
+import java.util.Collections;
+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 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 Configuration configuration() {
+ return this.innerModel().configuration();
+ }
+
+ public Template template() {
+ return this.innerModel().template();
+ }
+
+ 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 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 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..8735768850ca4
--- /dev/null
+++ b/sdk/app/azure-resourcemanager-app/src/main/java/com/azure/resourcemanager/app/implementation/ContainerAppsApiClientImpl.java
@@ -0,0 +1,363 @@
+// 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.ContainerAppsApiClient;
+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.ManagedEnvironmentsClient;
+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 {
+ private final ClientLogger logger = new ClientLogger(ContainerAppsApiClientImpl.class);
+
+ /** 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 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 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 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 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-01-01-preview";
+ this.containerApps = new ContainerAppsClientImpl(this);
+ this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
+ this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
+ this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
+ this.operations = new OperationsClientImpl(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