diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 74a1c2e2aef3f..5ca4963c63b1d 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -206,6 +206,7 @@ com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.0.0-beta.1;1.0.0-
com.azure.resourcemanager:azure-resourcemanager-netapp;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storagecache;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-redisenterprise;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index 8069fdfba48a0..59bb0d469af62 100644
--- a/pom.xml
+++ b/pom.xml
@@ -586,6 +586,7 @@
sdk/coresdk/cosmossdk/costmanagement
+ sdk/desktopvirtualizationsdk/digitaltwinssdk/eventgridsdk/eventhubs
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
new file mode 100644
index 0000000000000..d79d6819a99cc
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-02-24)
+
+- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2021-02-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/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
new file mode 100644
index 0000000000000..28fe60a6b71b5
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager DesktopVirtualization client library for Java
+
+Azure Resource Manager DesktopVirtualization client library for Java.
+
+This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2021-02-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-desktopvirtualization;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-desktopvirtualization
+ 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();
+DesktopVirtualizationManager manager = DesktopVirtualizationManager
+ .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
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/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/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
new file mode 100644
index 0000000000000..1ceee35866bfd
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
@@ -0,0 +1,67 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-desktopvirtualization
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for DesktopVirtualization Management
+ This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2021-02-01-preview. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
+ 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
+
+
+
+
+ com.azure
+ azure-core
+ 1.13.0
+
+
+ com.azure
+ azure-core-management
+ 1.1.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java
new file mode 100644
index 0000000000000..28b3893a836a4
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java
@@ -0,0 +1,347 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization;
+
+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.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+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.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.fluent.DesktopVirtualizationApiClient;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationGroupsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopVirtualizationApiClientBuilder;
+import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.HostPoolsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.MsixImagesImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.MsixPackagesImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.OperationsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlansImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.StartMenuItemsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.UserSessionsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.WorkspacesImpl;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroups;
+import com.azure.resourcemanager.desktopvirtualization.models.Applications;
+import com.azure.resourcemanager.desktopvirtualization.models.Desktops;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPools;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixImages;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackages;
+import com.azure.resourcemanager.desktopvirtualization.models.Operations;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlans;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHosts;
+import com.azure.resourcemanager.desktopvirtualization.models.StartMenuItems;
+import com.azure.resourcemanager.desktopvirtualization.models.UserSessions;
+import com.azure.resourcemanager.desktopvirtualization.models.Workspaces;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to DesktopVirtualizationManager. */
+public final class DesktopVirtualizationManager {
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private ScalingPlans scalingPlans;
+
+ private ApplicationGroups applicationGroups;
+
+ private StartMenuItems startMenuItems;
+
+ private Applications applications;
+
+ private Desktops desktops;
+
+ private HostPools hostPools;
+
+ private UserSessions userSessions;
+
+ private SessionHosts sessionHosts;
+
+ private MsixPackages msixPackages;
+
+ private MsixImages msixImages;
+
+ private final DesktopVirtualizationApiClient clientObject;
+
+ private DesktopVirtualizationManager(
+ HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new DesktopVirtualizationApiClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of DesktopVirtualization service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the DesktopVirtualization service API instance.
+ */
+ public static DesktopVirtualizationManager 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 DesktopVirtualizationManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new DesktopVirtualizationManager.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 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;
+ }
+
+ /**
+ * 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 DesktopVirtualization service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the DesktopVirtualization service API instance.
+ */
+ public DesktopVirtualizationManager 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.desktopvirtualization")
+ .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 (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new DesktopVirtualizationManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @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 Workspaces. */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /** @return Resource collection API of ScalingPlans. */
+ public ScalingPlans scalingPlans() {
+ if (this.scalingPlans == null) {
+ this.scalingPlans = new ScalingPlansImpl(clientObject.getScalingPlans(), this);
+ }
+ return scalingPlans;
+ }
+
+ /** @return Resource collection API of ApplicationGroups. */
+ public ApplicationGroups applicationGroups() {
+ if (this.applicationGroups == null) {
+ this.applicationGroups = new ApplicationGroupsImpl(clientObject.getApplicationGroups(), this);
+ }
+ return applicationGroups;
+ }
+
+ /** @return Resource collection API of StartMenuItems. */
+ public StartMenuItems startMenuItems() {
+ if (this.startMenuItems == null) {
+ this.startMenuItems = new StartMenuItemsImpl(clientObject.getStartMenuItems(), this);
+ }
+ return startMenuItems;
+ }
+
+ /** @return Resource collection API of Applications. */
+ public Applications applications() {
+ if (this.applications == null) {
+ this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
+ }
+ return applications;
+ }
+
+ /** @return Resource collection API of Desktops. */
+ public Desktops desktops() {
+ if (this.desktops == null) {
+ this.desktops = new DesktopsImpl(clientObject.getDesktops(), this);
+ }
+ return desktops;
+ }
+
+ /** @return Resource collection API of HostPools. */
+ public HostPools hostPools() {
+ if (this.hostPools == null) {
+ this.hostPools = new HostPoolsImpl(clientObject.getHostPools(), this);
+ }
+ return hostPools;
+ }
+
+ /** @return Resource collection API of UserSessions. */
+ public UserSessions userSessions() {
+ if (this.userSessions == null) {
+ this.userSessions = new UserSessionsImpl(clientObject.getUserSessions(), this);
+ }
+ return userSessions;
+ }
+
+ /** @return Resource collection API of SessionHosts. */
+ public SessionHosts sessionHosts() {
+ if (this.sessionHosts == null) {
+ this.sessionHosts = new SessionHostsImpl(clientObject.getSessionHosts(), this);
+ }
+ return sessionHosts;
+ }
+
+ /** @return Resource collection API of MsixPackages. */
+ public MsixPackages msixPackages() {
+ if (this.msixPackages == null) {
+ this.msixPackages = new MsixPackagesImpl(clientObject.getMsixPackages(), this);
+ }
+ return msixPackages;
+ }
+
+ /** @return Resource collection API of MsixImages. */
+ public MsixImages msixImages() {
+ if (this.msixImages == null) {
+ this.msixImages = new MsixImagesImpl(clientObject.getMsixImages(), this);
+ }
+ return msixImages;
+ }
+
+ /**
+ * @return Wrapped service client DesktopVirtualizationApiClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public DesktopVirtualizationApiClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java
new file mode 100644
index 0000000000000..07e803f7a1624
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatch;
+
+/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
+public interface ApplicationGroupsClient {
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String applicationGroupName, Context context);
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @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 represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup);
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @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 represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup, Context context);
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context);
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner update(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @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 represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup, Context context);
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @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 list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @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 list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @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 list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java
new file mode 100644
index 0000000000000..1c756576321f8
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.ApplicationInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatch;
+
+/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
+public interface ApplicationsClient {
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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 an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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 an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context);
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @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 schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application);
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @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 schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationInner application,
+ Context context);
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String applicationGroupName, String applicationName);
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context);
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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 schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName);
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @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 schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationPatch application,
+ Context context);
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
new file mode 100644
index 0000000000000..994bf7ac1d0fe
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for DesktopVirtualizationApiClient class. */
+public interface DesktopVirtualizationApiClient {
+ /**
+ * 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 OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the ScalingPlansClient object to access its operations.
+ *
+ * @return the ScalingPlansClient object.
+ */
+ ScalingPlansClient getScalingPlans();
+
+ /**
+ * Gets the ApplicationGroupsClient object to access its operations.
+ *
+ * @return the ApplicationGroupsClient object.
+ */
+ ApplicationGroupsClient getApplicationGroups();
+
+ /**
+ * Gets the StartMenuItemsClient object to access its operations.
+ *
+ * @return the StartMenuItemsClient object.
+ */
+ StartMenuItemsClient getStartMenuItems();
+
+ /**
+ * Gets the ApplicationsClient object to access its operations.
+ *
+ * @return the ApplicationsClient object.
+ */
+ ApplicationsClient getApplications();
+
+ /**
+ * Gets the DesktopsClient object to access its operations.
+ *
+ * @return the DesktopsClient object.
+ */
+ DesktopsClient getDesktops();
+
+ /**
+ * Gets the HostPoolsClient object to access its operations.
+ *
+ * @return the HostPoolsClient object.
+ */
+ HostPoolsClient getHostPools();
+
+ /**
+ * Gets the UserSessionsClient object to access its operations.
+ *
+ * @return the UserSessionsClient object.
+ */
+ UserSessionsClient getUserSessions();
+
+ /**
+ * Gets the SessionHostsClient object to access its operations.
+ *
+ * @return the SessionHostsClient object.
+ */
+ SessionHostsClient getSessionHosts();
+
+ /**
+ * Gets the MsixPackagesClient object to access its operations.
+ *
+ * @return the MsixPackagesClient object.
+ */
+ MsixPackagesClient getMsixPackages();
+
+ /**
+ * Gets the MsixImagesClient object to access its operations.
+ *
+ * @return the MsixImagesClient object.
+ */
+ MsixImagesClient getMsixImages();
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java
new file mode 100644
index 0000000000000..7859dc499d8a9
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.DesktopInner;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopListInner;
+import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
+
+/** An instance of this class provides access to all the operations defined in DesktopsClient. */
+public interface DesktopsClient {
+ /**
+ * Get a desktop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param desktopName The name of the desktop within the specified desktop group.
+ * @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 a desktop.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DesktopInner get(String resourceGroupName, String applicationGroupName, String desktopName);
+
+ /**
+ * Get a desktop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param desktopName The name of the desktop within the specified desktop group.
+ * @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 a desktop.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String desktopName, Context context);
+
+ /**
+ * Update a desktop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param desktopName The name of the desktop within the specified desktop group.
+ * @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 schema for Desktop properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DesktopInner update(String resourceGroupName, String applicationGroupName, String desktopName);
+
+ /**
+ * Update a desktop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param desktopName The name of the desktop within the specified desktop group.
+ * @param desktop Object containing Desktop definitions.
+ * @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 schema for Desktop properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String desktopName,
+ DesktopPatch desktop,
+ Context context);
+
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Desktop definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DesktopListInner list(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Desktop definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceGroupName, String applicationGroupName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java
new file mode 100644
index 0000000000000..3930e19fcec27
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java
@@ -0,0 +1,206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.HostPoolInner;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolPatch;
+
+/** An instance of this class provides access to all the operations defined in HostPoolsClient. */
+public interface HostPoolsClient {
+ /**
+ * Get a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 a host pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Get a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 a host pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String hostPoolName, Context context);
+
+ /**
+ * Create or update a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool Object containing HostPool definitions.
+ * @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 represents a HostPool definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
+
+ /**
+ * Create or update a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool Object containing HostPool definitions.
+ * @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 represents a HostPool definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String hostPoolName, HostPoolInner hostPool, Context context);
+
+ /**
+ * Remove a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Remove a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param force Force flag to delete sessionHost.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, Context context);
+
+ /**
+ * Update a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 represents a HostPool definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HostPoolInner update(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Update a host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool Object containing HostPool definitions.
+ * @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 represents a HostPool definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String hostPoolName, HostPoolPatch hostPool, Context context);
+
+ /**
+ * List hostPools.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 list of HostPool definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List hostPools.
+ *
+ * @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.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 list of HostPool definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List hostPools in subscription.
+ *
+ * @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 list of HostPool definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List hostPools in subscription.
+ *
+ * @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 list of HostPool definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Registration token of the host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 represents a RegistrationInfo definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Registration token of the host pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 represents a RegistrationInfo definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response retrieveRegistrationTokenWithResponse(
+ String resourceGroupName, String hostPoolName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
new file mode 100644
index 0000000000000..a95d24fc77295
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.ExpandMsixImageInner;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixImageUri;
+
+/** An instance of this class provides access to all the operations defined in MsixImagesClient. */
+public interface MsixImagesClient {
+ /**
+ * Expands and Lists MSIX packages in an Image, given the Image Path.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixImageUri Object containing URI to MSIX Image.
+ * @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 list of MSIX package properties retrieved from MSIX Image expansion.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable expand(
+ String resourceGroupName, String hostPoolName, MsixImageUri msixImageUri);
+
+ /**
+ * Expands and Lists MSIX packages in an Image, given the Image Path.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixImageUri Object containing URI to MSIX Image.
+ * @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 list of MSIX package properties retrieved from MSIX Image expansion.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable expand(
+ String resourceGroupName, String hostPoolName, MsixImageUri msixImageUri, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java
new file mode 100644
index 0000000000000..a4c0604452d84
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.MsixPackageInner;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackagePatch;
+
+/** An instance of this class provides access to all the operations defined in MsixPackagesClient. */
+public interface MsixPackagesClient {
+ /**
+ * Get a msixpackage.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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 a msixpackage.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+
+ /**
+ * Get a msixpackage.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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 a msixpackage.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
+
+ /**
+ * Create or update a MSIX package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
+ * @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 schema for MSIX Package properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MsixPackageInner createOrUpdate(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackageInner msixPackage);
+
+ /**
+ * Create or update a MSIX package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
+ * @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 schema for MSIX Package properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String msixPackageFullName,
+ MsixPackageInner msixPackage,
+ Context context);
+
+ /**
+ * Remove an MSIX Package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+
+ /**
+ * Remove an MSIX Package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
+
+ /**
+ * Update an MSIX Package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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 schema for MSIX Package properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MsixPackageInner update(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+
+ /**
+ * Update an MSIX Package.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
+ * @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 schema for MSIX Package properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String msixPackageFullName,
+ MsixPackagePatch msixPackage,
+ Context context);
+
+ /**
+ * List MSIX packages in hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of MSIX Package definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName);
+
+ /**
+ * List MSIX packages in hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of MSIX Package definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..41bf5717c4738
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.ResourceProviderOperationListInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * List all of the available operations the Desktop Virtualization resource provider supports.
+ *
+ * @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 result of the request to list operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceProviderOperationListInner list();
+
+ /**
+ * List all of the available operations the Desktop Virtualization resource provider supports.
+ *
+ * @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 result of the request to list operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java
new file mode 100644
index 0000000000000..650211134bb5f
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java
@@ -0,0 +1,203 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.ScalingPlanInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPatch;
+
+/** An instance of this class provides access to all the operations defined in ScalingPlansClient. */
+public interface ScalingPlansClient {
+ /**
+ * Get a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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 a scaling plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName);
+
+ /**
+ * Get a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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 a scaling plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String scalingPlanName, Context context);
+
+ /**
+ * Create or update a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlan Object containing scaling plan definitions.
+ * @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 represents a scaling plan definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
+
+ /**
+ * Create or update a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlan Object containing scaling plan definitions.
+ * @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 represents a scaling plan definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, Context context);
+
+ /**
+ * Remove a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scalingPlanName);
+
+ /**
+ * Remove a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String scalingPlanName, Context context);
+
+ /**
+ * Update a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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 represents a scaling plan definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanInner update(String resourceGroupName, String scalingPlanName);
+
+ /**
+ * Update a scaling plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlan Object containing scaling plan definitions.
+ * @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 represents a scaling plan definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, Context context);
+
+ /**
+ * List scaling plans.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List scaling plans.
+ *
+ * @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.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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List scaling plans in subscription.
+ *
+ * @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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List scaling plans in subscription.
+ *
+ * @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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List scaling plan associated with hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
+
+ /**
+ * List scaling plan associated with hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of scaling plan definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
new file mode 100644
index 0000000000000..28c9320097846
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.SessionHostInner;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch;
+
+/** An instance of this class provides access to all the operations defined in SessionHostsClient. */
+public interface SessionHostsClient {
+ /**
+ * Get a session host.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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 a session host.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionHostInner get(String resourceGroupName, String hostPoolName, String sessionHostname);
+
+ /**
+ * Get a session host.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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 a session host.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String hostPoolName, String sessionHostname, Context context);
+
+ /**
+ * Remove a SessionHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName, String sessionHostname);
+
+ /**
+ * Remove a SessionHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param force Force flag to force sessionHost deletion even when userSession exists.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force, Context context);
+
+ /**
+ * Update a session host.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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 represents a SessionHost definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionHostInner update(String resourceGroupName, String hostPoolName, String sessionHostname);
+
+ /**
+ * Update a session host.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param sessionHost Object containing SessionHost definitions.
+ * @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 represents a SessionHost definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String sessionHostname,
+ SessionHostPatch sessionHost,
+ Context context);
+
+ /**
+ * List sessionHosts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of SessionHost definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName);
+
+ /**
+ * List sessionHosts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of SessionHost definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
new file mode 100644
index 0000000000000..70b0b9128b244
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.StartMenuItemInner;
+
+/** An instance of this class provides access to all the operations defined in StartMenuItemsClient. */
+public interface StartMenuItemsClient {
+ /**
+ * List start menu items in the given application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of StartMenuItem definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * List start menu items in the given application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of StartMenuItem definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
new file mode 100644
index 0000000000000..66c3ce1f0d596
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.UserSessionInner;
+import com.azure.resourcemanager.desktopvirtualization.models.SendMessage;
+
+/** An instance of this class provides access to all the operations defined in UserSessionsClient. */
+public interface UserSessionsClient {
+ /**
+ * List userSessions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of UserSession definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
+
+ /**
+ * List userSessions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param filter OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.
+ * @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 list of UserSession definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(
+ String resourceGroupName, String hostPoolName, String filter, Context context);
+
+ /**
+ * Get a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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 a userSession.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UserSessionInner get(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+
+ /**
+ * Get a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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 a userSession.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId, Context context);
+
+ /**
+ * Remove a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+
+ /**
+ * Remove a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @param force Force flag to login off userSession.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String sessionHostname,
+ String userSessionId,
+ Boolean force,
+ Context context);
+
+ /**
+ * List userSessions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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 list of UserSession definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName, String sessionHostname);
+
+ /**
+ * List userSessions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @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 list of UserSession definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String hostPoolName, String sessionHostname, Context context);
+
+ /**
+ * Disconnect a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void disconnect(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+
+ /**
+ * Disconnect a userSession.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response disconnectWithResponse(
+ String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId, Context context);
+
+ /**
+ * Send a message to a user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void sendMessage(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+
+ /**
+ * Send a message to a user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
+ * @param sendMessage Object containing message includes title and message body.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response sendMessageWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String sessionHostname,
+ String userSessionId,
+ SendMessage sendMessage,
+ Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
new file mode 100644
index 0000000000000..5487ccb22c2b9
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.desktopvirtualization.models.WorkspacePatch;
+
+/** An instance of this class provides access to all the operations defined in WorkspacesClient. */
+public interface WorkspacesClient {
+ /**
+ * Get a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @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 a workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
+
+ /**
+ * Get a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @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 a workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Create or update a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param workspace Object containing Workspace definitions.
+ * @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 represents a Workspace definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner workspace);
+
+ /**
+ * Create or update a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param workspace Object containing Workspace definitions.
+ * @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 represents a Workspace definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, WorkspaceInner workspace, Context context);
+
+ /**
+ * Remove a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName);
+
+ /**
+ * Remove a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Update a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @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 represents a Workspace definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner update(String resourceGroupName, String workspaceName);
+
+ /**
+ * Update a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param workspace Object containing Workspace definitions.
+ * @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 represents a Workspace definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String workspaceName, WorkspacePatch workspace, Context context);
+
+ /**
+ * List workspaces.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 list of Workspace definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List workspaces.
+ *
+ * @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.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 list of Workspace definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List workspaces in subscription.
+ *
+ * @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 list of Workspace definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List workspaces in subscription.
+ *
+ * @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 list of Workspace definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
new file mode 100644
index 0000000000000..2d345592ecaec
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Represents a ApplicationGroup definition. */
+@JsonFlatten
+@Fluent
+public class ApplicationGroupInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupInner.class);
+
+ /*
+ * Description of ApplicationGroup.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * Friendly name of ApplicationGroup.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * HostPool arm path of ApplicationGroup.
+ */
+ @JsonProperty(value = "properties.hostPoolArmPath", required = true)
+ private String hostPoolArmPath;
+
+ /*
+ * Workspace arm path of ApplicationGroup.
+ */
+ @JsonProperty(value = "properties.workspaceArmPath", access = JsonProperty.Access.WRITE_ONLY)
+ private String workspaceArmPath;
+
+ /*
+ * Resource Type of ApplicationGroup.
+ */
+ @JsonProperty(value = "properties.applicationGroupType", required = true)
+ private ApplicationGroupType applicationGroupType;
+
+ /**
+ * Get the description property: Description of ApplicationGroup.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of ApplicationGroup.
+ *
+ * @param description the description value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly name of ApplicationGroup.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of ApplicationGroup.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the hostPoolArmPath property: HostPool arm path of ApplicationGroup.
+ *
+ * @return the hostPoolArmPath value.
+ */
+ public String hostPoolArmPath() {
+ return this.hostPoolArmPath;
+ }
+
+ /**
+ * Set the hostPoolArmPath property: HostPool arm path of ApplicationGroup.
+ *
+ * @param hostPoolArmPath the hostPoolArmPath value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withHostPoolArmPath(String hostPoolArmPath) {
+ this.hostPoolArmPath = hostPoolArmPath;
+ return this;
+ }
+
+ /**
+ * Get the workspaceArmPath property: Workspace arm path of ApplicationGroup.
+ *
+ * @return the workspaceArmPath value.
+ */
+ public String workspaceArmPath() {
+ return this.workspaceArmPath;
+ }
+
+ /**
+ * Get the applicationGroupType property: Resource Type of ApplicationGroup.
+ *
+ * @return the applicationGroupType value.
+ */
+ public ApplicationGroupType applicationGroupType() {
+ return this.applicationGroupType;
+ }
+
+ /**
+ * Set the applicationGroupType property: Resource Type of ApplicationGroup.
+ *
+ * @param applicationGroupType the applicationGroupType value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withApplicationGroupType(ApplicationGroupType applicationGroupType) {
+ this.applicationGroupType = applicationGroupType;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ApplicationGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ApplicationGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (hostPoolArmPath() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property hostPoolArmPath in model ApplicationGroupInner"));
+ }
+ if (applicationGroupType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property applicationGroupType in model ApplicationGroupInner"));
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
new file mode 100644
index 0000000000000..887f8e7cb1c8d
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
@@ -0,0 +1,359 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
+import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Schema for Application properties. */
+@JsonFlatten
+@Fluent
+public class ApplicationInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInner.class);
+
+ /*
+ * Description of Application.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * Friendly name of Application.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Specifies a path for the executable file for the application.
+ */
+ @JsonProperty(value = "properties.filePath")
+ private String filePath;
+
+ /*
+ * Specifies the package family name for MSIX applications
+ */
+ @JsonProperty(value = "properties.msixPackageFamilyName")
+ private String msixPackageFamilyName;
+
+ /*
+ * Specifies the package application Id for MSIX applications
+ */
+ @JsonProperty(value = "properties.msixPackageApplicationId")
+ private String msixPackageApplicationId;
+
+ /*
+ * Resource Type of Application.
+ */
+ @JsonProperty(value = "properties.applicationType")
+ private RemoteApplicationType applicationType;
+
+ /*
+ * Specifies whether this published application can be launched with
+ * command line arguments provided by the client, command line arguments
+ * specified at publish time, or no command line arguments at all.
+ */
+ @JsonProperty(value = "properties.commandLineSetting", required = true)
+ private CommandLineSetting commandLineSetting;
+
+ /*
+ * Command Line Arguments for Application.
+ */
+ @JsonProperty(value = "properties.commandLineArguments")
+ private String commandLineArguments;
+
+ /*
+ * Specifies whether to show the RemoteApp program in the RD Web Access
+ * server.
+ */
+ @JsonProperty(value = "properties.showInPortal")
+ private Boolean showInPortal;
+
+ /*
+ * Path to icon.
+ */
+ @JsonProperty(value = "properties.iconPath")
+ private String iconPath;
+
+ /*
+ * Index of the icon.
+ */
+ @JsonProperty(value = "properties.iconIndex")
+ private Integer iconIndex;
+
+ /*
+ * Hash of the icon.
+ */
+ @JsonProperty(value = "properties.iconHash", access = JsonProperty.Access.WRITE_ONLY)
+ private String iconHash;
+
+ /*
+ * the icon a 64 bit string as a byte array.
+ */
+ @JsonProperty(value = "properties.iconContent", access = JsonProperty.Access.WRITE_ONLY)
+ private byte[] iconContent;
+
+ /**
+ * Get the description property: Description of Application.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of Application.
+ *
+ * @param description the description value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly name of Application.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of Application.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the filePath property: Specifies a path for the executable file for the application.
+ *
+ * @return the filePath value.
+ */
+ public String filePath() {
+ return this.filePath;
+ }
+
+ /**
+ * Set the filePath property: Specifies a path for the executable file for the application.
+ *
+ * @param filePath the filePath value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withFilePath(String filePath) {
+ this.filePath = filePath;
+ return this;
+ }
+
+ /**
+ * Get the msixPackageFamilyName property: Specifies the package family name for MSIX applications.
+ *
+ * @return the msixPackageFamilyName value.
+ */
+ public String msixPackageFamilyName() {
+ return this.msixPackageFamilyName;
+ }
+
+ /**
+ * Set the msixPackageFamilyName property: Specifies the package family name for MSIX applications.
+ *
+ * @param msixPackageFamilyName the msixPackageFamilyName value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withMsixPackageFamilyName(String msixPackageFamilyName) {
+ this.msixPackageFamilyName = msixPackageFamilyName;
+ return this;
+ }
+
+ /**
+ * Get the msixPackageApplicationId property: Specifies the package application Id for MSIX applications.
+ *
+ * @return the msixPackageApplicationId value.
+ */
+ public String msixPackageApplicationId() {
+ return this.msixPackageApplicationId;
+ }
+
+ /**
+ * Set the msixPackageApplicationId property: Specifies the package application Id for MSIX applications.
+ *
+ * @param msixPackageApplicationId the msixPackageApplicationId value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withMsixPackageApplicationId(String msixPackageApplicationId) {
+ this.msixPackageApplicationId = msixPackageApplicationId;
+ return this;
+ }
+
+ /**
+ * Get the applicationType property: Resource Type of Application.
+ *
+ * @return the applicationType value.
+ */
+ public RemoteApplicationType applicationType() {
+ return this.applicationType;
+ }
+
+ /**
+ * Set the applicationType property: Resource Type of Application.
+ *
+ * @param applicationType the applicationType value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withApplicationType(RemoteApplicationType applicationType) {
+ this.applicationType = applicationType;
+ return this;
+ }
+
+ /**
+ * Get the commandLineSetting property: Specifies whether this published application can be launched with command
+ * line arguments provided by the client, command line arguments specified at publish time, or no command line
+ * arguments at all.
+ *
+ * @return the commandLineSetting value.
+ */
+ public CommandLineSetting commandLineSetting() {
+ return this.commandLineSetting;
+ }
+
+ /**
+ * Set the commandLineSetting property: Specifies whether this published application can be launched with command
+ * line arguments provided by the client, command line arguments specified at publish time, or no command line
+ * arguments at all.
+ *
+ * @param commandLineSetting the commandLineSetting value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withCommandLineSetting(CommandLineSetting commandLineSetting) {
+ this.commandLineSetting = commandLineSetting;
+ return this;
+ }
+
+ /**
+ * Get the commandLineArguments property: Command Line Arguments for Application.
+ *
+ * @return the commandLineArguments value.
+ */
+ public String commandLineArguments() {
+ return this.commandLineArguments;
+ }
+
+ /**
+ * Set the commandLineArguments property: Command Line Arguments for Application.
+ *
+ * @param commandLineArguments the commandLineArguments value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withCommandLineArguments(String commandLineArguments) {
+ this.commandLineArguments = commandLineArguments;
+ return this;
+ }
+
+ /**
+ * Get the showInPortal property: Specifies whether to show the RemoteApp program in the RD Web Access server.
+ *
+ * @return the showInPortal value.
+ */
+ public Boolean showInPortal() {
+ return this.showInPortal;
+ }
+
+ /**
+ * Set the showInPortal property: Specifies whether to show the RemoteApp program in the RD Web Access server.
+ *
+ * @param showInPortal the showInPortal value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withShowInPortal(Boolean showInPortal) {
+ this.showInPortal = showInPortal;
+ return this;
+ }
+
+ /**
+ * Get the iconPath property: Path to icon.
+ *
+ * @return the iconPath value.
+ */
+ public String iconPath() {
+ return this.iconPath;
+ }
+
+ /**
+ * Set the iconPath property: Path to icon.
+ *
+ * @param iconPath the iconPath value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withIconPath(String iconPath) {
+ this.iconPath = iconPath;
+ return this;
+ }
+
+ /**
+ * Get the iconIndex property: Index of the icon.
+ *
+ * @return the iconIndex value.
+ */
+ public Integer iconIndex() {
+ return this.iconIndex;
+ }
+
+ /**
+ * Set the iconIndex property: Index of the icon.
+ *
+ * @param iconIndex the iconIndex value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withIconIndex(Integer iconIndex) {
+ this.iconIndex = iconIndex;
+ return this;
+ }
+
+ /**
+ * Get the iconHash property: Hash of the icon.
+ *
+ * @return the iconHash value.
+ */
+ public String iconHash() {
+ return this.iconHash;
+ }
+
+ /**
+ * Get the iconContent property: the icon a 64 bit string as a byte array.
+ *
+ * @return the iconContent value.
+ */
+ public byte[] iconContent() {
+ return CoreUtils.clone(this.iconContent);
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (commandLineSetting() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property commandLineSetting in model ApplicationInner"));
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
new file mode 100644
index 0000000000000..35295d5c620bd
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Schema for Desktop properties. */
+@JsonFlatten
+@Fluent
+public class DesktopInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DesktopInner.class);
+
+ /*
+ * Description of Desktop.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * Friendly name of Desktop.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Hash of the icon.
+ */
+ @JsonProperty(value = "properties.iconHash", access = JsonProperty.Access.WRITE_ONLY)
+ private String iconHash;
+
+ /*
+ * The icon a 64 bit string as a byte array.
+ */
+ @JsonProperty(value = "properties.iconContent", access = JsonProperty.Access.WRITE_ONLY)
+ private byte[] iconContent;
+
+ /**
+ * Get the description property: Description of Desktop.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of Desktop.
+ *
+ * @param description the description value to set.
+ * @return the DesktopInner object itself.
+ */
+ public DesktopInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly name of Desktop.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of Desktop.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the DesktopInner object itself.
+ */
+ public DesktopInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the iconHash property: Hash of the icon.
+ *
+ * @return the iconHash value.
+ */
+ public String iconHash() {
+ return this.iconHash;
+ }
+
+ /**
+ * Get the iconContent property: The icon a 64 bit string as a byte array.
+ *
+ * @return the iconContent value.
+ */
+ public byte[] iconContent() {
+ return CoreUtils.clone(this.iconContent);
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopListInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopListInner.java
new file mode 100644
index 0000000000000..901d9f1f36566
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopListInner.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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;
+
+/** List of Desktop definitions. */
+@Fluent
+public final class DesktopListInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DesktopListInner.class);
+
+ /*
+ * List of Desktop definitions.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * Link to the next page of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: List of Desktop definitions.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of Desktop definitions.
+ *
+ * @param value the value value to set.
+ * @return the DesktopListInner object itself.
+ */
+ public DesktopListInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: Link to the next page of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
new file mode 100644
index 0000000000000..cb2de2bfd5995
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
@@ -0,0 +1,378 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Represents the definition of contents retrieved after expanding the MSIX Image. */
+@JsonFlatten
+@Fluent
+public class ExpandMsixImageInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ExpandMsixImageInner.class);
+
+ /*
+ * Alias of MSIX Package.
+ */
+ @JsonProperty(value = "properties.packageAlias")
+ private String packageAlias;
+
+ /*
+ * VHD/CIM image path on Network Share.
+ */
+ @JsonProperty(value = "properties.imagePath")
+ private String imagePath;
+
+ /*
+ * Package Name from appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.packageName")
+ private String packageName;
+
+ /*
+ * Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ */
+ @JsonProperty(value = "properties.packageFamilyName")
+ private String packageFamilyName;
+
+ /*
+ * Package Full Name from appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.packageFullName")
+ private String packageFullName;
+
+ /*
+ * User friendly Name to be displayed in the portal.
+ */
+ @JsonProperty(value = "properties.displayName")
+ private String displayName;
+
+ /*
+ * Relative Path to the package inside the image.
+ */
+ @JsonProperty(value = "properties.packageRelativePath")
+ private String packageRelativePath;
+
+ /*
+ * Specifies how to register Package in feed.
+ */
+ @JsonProperty(value = "properties.isRegularRegistration")
+ private Boolean isRegularRegistration;
+
+ /*
+ * Make this version of the package the active one across the hostpool.
+ */
+ @JsonProperty(value = "properties.isActive")
+ private Boolean isActive;
+
+ /*
+ * List of package dependencies.
+ */
+ @JsonProperty(value = "properties.packageDependencies")
+ private List packageDependencies;
+
+ /*
+ * Package Version found in the appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.version")
+ private String version;
+
+ /*
+ * Date Package was last updated, found in the appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.lastUpdated")
+ private OffsetDateTime lastUpdated;
+
+ /*
+ * List of package applications.
+ */
+ @JsonProperty(value = "properties.packageApplications")
+ private List packageApplications;
+
+ /**
+ * Get the packageAlias property: Alias of MSIX Package.
+ *
+ * @return the packageAlias value.
+ */
+ public String packageAlias() {
+ return this.packageAlias;
+ }
+
+ /**
+ * Set the packageAlias property: Alias of MSIX Package.
+ *
+ * @param packageAlias the packageAlias value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageAlias(String packageAlias) {
+ this.packageAlias = packageAlias;
+ return this;
+ }
+
+ /**
+ * Get the imagePath property: VHD/CIM image path on Network Share.
+ *
+ * @return the imagePath value.
+ */
+ public String imagePath() {
+ return this.imagePath;
+ }
+
+ /**
+ * Set the imagePath property: VHD/CIM image path on Network Share.
+ *
+ * @param imagePath the imagePath value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withImagePath(String imagePath) {
+ this.imagePath = imagePath;
+ return this;
+ }
+
+ /**
+ * Get the packageName property: Package Name from appxmanifest.xml.
+ *
+ * @return the packageName value.
+ */
+ public String packageName() {
+ return this.packageName;
+ }
+
+ /**
+ * Set the packageName property: Package Name from appxmanifest.xml.
+ *
+ * @param packageName the packageName value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageName(String packageName) {
+ this.packageName = packageName;
+ return this;
+ }
+
+ /**
+ * Get the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ *
+ * @return the packageFamilyName value.
+ */
+ public String packageFamilyName() {
+ return this.packageFamilyName;
+ }
+
+ /**
+ * Set the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ *
+ * @param packageFamilyName the packageFamilyName value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageFamilyName(String packageFamilyName) {
+ this.packageFamilyName = packageFamilyName;
+ return this;
+ }
+
+ /**
+ * Get the packageFullName property: Package Full Name from appxmanifest.xml.
+ *
+ * @return the packageFullName value.
+ */
+ public String packageFullName() {
+ return this.packageFullName;
+ }
+
+ /**
+ * Set the packageFullName property: Package Full Name from appxmanifest.xml.
+ *
+ * @param packageFullName the packageFullName value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageFullName(String packageFullName) {
+ this.packageFullName = packageFullName;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: User friendly Name to be displayed in the portal.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: User friendly Name to be displayed in the portal.
+ *
+ * @param displayName the displayName value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the packageRelativePath property: Relative Path to the package inside the image.
+ *
+ * @return the packageRelativePath value.
+ */
+ public String packageRelativePath() {
+ return this.packageRelativePath;
+ }
+
+ /**
+ * Set the packageRelativePath property: Relative Path to the package inside the image.
+ *
+ * @param packageRelativePath the packageRelativePath value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageRelativePath(String packageRelativePath) {
+ this.packageRelativePath = packageRelativePath;
+ return this;
+ }
+
+ /**
+ * Get the isRegularRegistration property: Specifies how to register Package in feed.
+ *
+ * @return the isRegularRegistration value.
+ */
+ public Boolean isRegularRegistration() {
+ return this.isRegularRegistration;
+ }
+
+ /**
+ * Set the isRegularRegistration property: Specifies how to register Package in feed.
+ *
+ * @param isRegularRegistration the isRegularRegistration value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withIsRegularRegistration(Boolean isRegularRegistration) {
+ this.isRegularRegistration = isRegularRegistration;
+ return this;
+ }
+
+ /**
+ * Get the isActive property: Make this version of the package the active one across the hostpool.
+ *
+ * @return the isActive value.
+ */
+ public Boolean isActive() {
+ return this.isActive;
+ }
+
+ /**
+ * Set the isActive property: Make this version of the package the active one across the hostpool.
+ *
+ * @param isActive the isActive value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withIsActive(Boolean isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ /**
+ * Get the packageDependencies property: List of package dependencies.
+ *
+ * @return the packageDependencies value.
+ */
+ public List packageDependencies() {
+ return this.packageDependencies;
+ }
+
+ /**
+ * Set the packageDependencies property: List of package dependencies.
+ *
+ * @param packageDependencies the packageDependencies value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageDependencies(List packageDependencies) {
+ this.packageDependencies = packageDependencies;
+ return this;
+ }
+
+ /**
+ * Get the version property: Package Version found in the appxmanifest.xml.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Package Version found in the appxmanifest.xml.
+ *
+ * @param version the version value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
+ *
+ * @return the lastUpdated value.
+ */
+ public OffsetDateTime lastUpdated() {
+ return this.lastUpdated;
+ }
+
+ /**
+ * Set the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
+ *
+ * @param lastUpdated the lastUpdated value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withLastUpdated(OffsetDateTime lastUpdated) {
+ this.lastUpdated = lastUpdated;
+ return this;
+ }
+
+ /**
+ * Get the packageApplications property: List of package applications.
+ *
+ * @return the packageApplications value.
+ */
+ public List packageApplications() {
+ return this.packageApplications;
+ }
+
+ /**
+ * Set the packageApplications property: List of package applications.
+ *
+ * @param packageApplications the packageApplications value to set.
+ * @return the ExpandMsixImageInner object itself.
+ */
+ public ExpandMsixImageInner withPackageApplications(List packageApplications) {
+ this.packageApplications = packageApplications;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (packageDependencies() != null) {
+ packageDependencies().forEach(e -> e.validate());
+ }
+ if (packageApplications() != null) {
+ packageApplications().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
new file mode 100644
index 0000000000000..d32f51dbe4719
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
@@ -0,0 +1,532 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
+import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
+import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
+import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Represents a HostPool definition. */
+@JsonFlatten
+@Fluent
+public class HostPoolInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(HostPoolInner.class);
+
+ /*
+ * Friendly name of HostPool.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Description of HostPool.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * HostPool type for desktop.
+ */
+ @JsonProperty(value = "properties.hostPoolType", required = true)
+ private HostPoolType hostPoolType;
+
+ /*
+ * PersonalDesktopAssignment type for HostPool.
+ */
+ @JsonProperty(value = "properties.personalDesktopAssignmentType")
+ private PersonalDesktopAssignmentType personalDesktopAssignmentType;
+
+ /*
+ * Custom rdp property of HostPool.
+ */
+ @JsonProperty(value = "properties.customRdpProperty")
+ private String customRdpProperty;
+
+ /*
+ * The max session limit of HostPool.
+ */
+ @JsonProperty(value = "properties.maxSessionLimit")
+ private Integer maxSessionLimit;
+
+ /*
+ * The type of the load balancer.
+ */
+ @JsonProperty(value = "properties.loadBalancerType", required = true)
+ private LoadBalancerType loadBalancerType;
+
+ /*
+ * The ring number of HostPool.
+ */
+ @JsonProperty(value = "properties.ring")
+ private Integer ring;
+
+ /*
+ * Is validation environment.
+ */
+ @JsonProperty(value = "properties.validationEnvironment")
+ private Boolean validationEnvironment;
+
+ /*
+ * The registration info of HostPool.
+ */
+ @JsonProperty(value = "properties.registrationInfo")
+ private RegistrationInfoInner registrationInfo;
+
+ /*
+ * VM template for sessionhosts configuration within hostpool.
+ */
+ @JsonProperty(value = "properties.vmTemplate")
+ private String vmTemplate;
+
+ /*
+ * List of applicationGroup links.
+ */
+ @JsonProperty(value = "properties.applicationGroupReferences", access = JsonProperty.Access.WRITE_ONLY)
+ private List applicationGroupReferences;
+
+ /*
+ * URL to customer ADFS server for signing WVD SSO certificates.
+ */
+ @JsonProperty(value = "properties.ssoadfsAuthority")
+ private String ssoadfsAuthority;
+
+ /*
+ * ClientId for the registered Relying Party used to issue WVD SSO
+ * certificates.
+ */
+ @JsonProperty(value = "properties.ssoClientId")
+ private String ssoClientId;
+
+ /*
+ * Path to Azure KeyVault storing the secret used for communication to
+ * ADFS.
+ */
+ @JsonProperty(value = "properties.ssoClientSecretKeyVaultPath")
+ private String ssoClientSecretKeyVaultPath;
+
+ /*
+ * The type of single sign on Secret Type.
+ */
+ @JsonProperty(value = "properties.ssoSecretType")
+ private SsoSecretType ssoSecretType;
+
+ /*
+ * The type of preferred application group type, default to Desktop
+ * Application Group
+ */
+ @JsonProperty(value = "properties.preferredAppGroupType", required = true)
+ private PreferredAppGroupType preferredAppGroupType;
+
+ /*
+ * The flag to turn on/off StartVMOnConnect feature.
+ */
+ @JsonProperty(value = "properties.startVMOnConnect")
+ private Boolean startVMOnConnect;
+
+ /**
+ * Get the friendlyName property: Friendly name of HostPool.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of HostPool.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the description property: Description of HostPool.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of HostPool.
+ *
+ * @param description the description value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the hostPoolType property: HostPool type for desktop.
+ *
+ * @return the hostPoolType value.
+ */
+ public HostPoolType hostPoolType() {
+ return this.hostPoolType;
+ }
+
+ /**
+ * Set the hostPoolType property: HostPool type for desktop.
+ *
+ * @param hostPoolType the hostPoolType value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withHostPoolType(HostPoolType hostPoolType) {
+ this.hostPoolType = hostPoolType;
+ return this;
+ }
+
+ /**
+ * Get the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.
+ *
+ * @return the personalDesktopAssignmentType value.
+ */
+ public PersonalDesktopAssignmentType personalDesktopAssignmentType() {
+ return this.personalDesktopAssignmentType;
+ }
+
+ /**
+ * Set the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.
+ *
+ * @param personalDesktopAssignmentType the personalDesktopAssignmentType value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withPersonalDesktopAssignmentType(
+ PersonalDesktopAssignmentType personalDesktopAssignmentType) {
+ this.personalDesktopAssignmentType = personalDesktopAssignmentType;
+ return this;
+ }
+
+ /**
+ * Get the customRdpProperty property: Custom rdp property of HostPool.
+ *
+ * @return the customRdpProperty value.
+ */
+ public String customRdpProperty() {
+ return this.customRdpProperty;
+ }
+
+ /**
+ * Set the customRdpProperty property: Custom rdp property of HostPool.
+ *
+ * @param customRdpProperty the customRdpProperty value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withCustomRdpProperty(String customRdpProperty) {
+ this.customRdpProperty = customRdpProperty;
+ return this;
+ }
+
+ /**
+ * Get the maxSessionLimit property: The max session limit of HostPool.
+ *
+ * @return the maxSessionLimit value.
+ */
+ public Integer maxSessionLimit() {
+ return this.maxSessionLimit;
+ }
+
+ /**
+ * Set the maxSessionLimit property: The max session limit of HostPool.
+ *
+ * @param maxSessionLimit the maxSessionLimit value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withMaxSessionLimit(Integer maxSessionLimit) {
+ this.maxSessionLimit = maxSessionLimit;
+ return this;
+ }
+
+ /**
+ * Get the loadBalancerType property: The type of the load balancer.
+ *
+ * @return the loadBalancerType value.
+ */
+ public LoadBalancerType loadBalancerType() {
+ return this.loadBalancerType;
+ }
+
+ /**
+ * Set the loadBalancerType property: The type of the load balancer.
+ *
+ * @param loadBalancerType the loadBalancerType value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withLoadBalancerType(LoadBalancerType loadBalancerType) {
+ this.loadBalancerType = loadBalancerType;
+ return this;
+ }
+
+ /**
+ * Get the ring property: The ring number of HostPool.
+ *
+ * @return the ring value.
+ */
+ public Integer ring() {
+ return this.ring;
+ }
+
+ /**
+ * Set the ring property: The ring number of HostPool.
+ *
+ * @param ring the ring value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withRing(Integer ring) {
+ this.ring = ring;
+ return this;
+ }
+
+ /**
+ * Get the validationEnvironment property: Is validation environment.
+ *
+ * @return the validationEnvironment value.
+ */
+ public Boolean validationEnvironment() {
+ return this.validationEnvironment;
+ }
+
+ /**
+ * Set the validationEnvironment property: Is validation environment.
+ *
+ * @param validationEnvironment the validationEnvironment value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withValidationEnvironment(Boolean validationEnvironment) {
+ this.validationEnvironment = validationEnvironment;
+ return this;
+ }
+
+ /**
+ * Get the registrationInfo property: The registration info of HostPool.
+ *
+ * @return the registrationInfo value.
+ */
+ public RegistrationInfoInner registrationInfo() {
+ return this.registrationInfo;
+ }
+
+ /**
+ * Set the registrationInfo property: The registration info of HostPool.
+ *
+ * @param registrationInfo the registrationInfo value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withRegistrationInfo(RegistrationInfoInner registrationInfo) {
+ this.registrationInfo = registrationInfo;
+ return this;
+ }
+
+ /**
+ * Get the vmTemplate property: VM template for sessionhosts configuration within hostpool.
+ *
+ * @return the vmTemplate value.
+ */
+ public String vmTemplate() {
+ return this.vmTemplate;
+ }
+
+ /**
+ * Set the vmTemplate property: VM template for sessionhosts configuration within hostpool.
+ *
+ * @param vmTemplate the vmTemplate value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withVmTemplate(String vmTemplate) {
+ this.vmTemplate = vmTemplate;
+ return this;
+ }
+
+ /**
+ * Get the applicationGroupReferences property: List of applicationGroup links.
+ *
+ * @return the applicationGroupReferences value.
+ */
+ public List applicationGroupReferences() {
+ return this.applicationGroupReferences;
+ }
+
+ /**
+ * Get the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.
+ *
+ * @return the ssoadfsAuthority value.
+ */
+ public String ssoadfsAuthority() {
+ return this.ssoadfsAuthority;
+ }
+
+ /**
+ * Set the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.
+ *
+ * @param ssoadfsAuthority the ssoadfsAuthority value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withSsoadfsAuthority(String ssoadfsAuthority) {
+ this.ssoadfsAuthority = ssoadfsAuthority;
+ return this;
+ }
+
+ /**
+ * Get the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.
+ *
+ * @return the ssoClientId value.
+ */
+ public String ssoClientId() {
+ return this.ssoClientId;
+ }
+
+ /**
+ * Set the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.
+ *
+ * @param ssoClientId the ssoClientId value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withSsoClientId(String ssoClientId) {
+ this.ssoClientId = ssoClientId;
+ return this;
+ }
+
+ /**
+ * Get the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to
+ * ADFS.
+ *
+ * @return the ssoClientSecretKeyVaultPath value.
+ */
+ public String ssoClientSecretKeyVaultPath() {
+ return this.ssoClientSecretKeyVaultPath;
+ }
+
+ /**
+ * Set the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to
+ * ADFS.
+ *
+ * @param ssoClientSecretKeyVaultPath the ssoClientSecretKeyVaultPath value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withSsoClientSecretKeyVaultPath(String ssoClientSecretKeyVaultPath) {
+ this.ssoClientSecretKeyVaultPath = ssoClientSecretKeyVaultPath;
+ return this;
+ }
+
+ /**
+ * Get the ssoSecretType property: The type of single sign on Secret Type.
+ *
+ * @return the ssoSecretType value.
+ */
+ public SsoSecretType ssoSecretType() {
+ return this.ssoSecretType;
+ }
+
+ /**
+ * Set the ssoSecretType property: The type of single sign on Secret Type.
+ *
+ * @param ssoSecretType the ssoSecretType value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withSsoSecretType(SsoSecretType ssoSecretType) {
+ this.ssoSecretType = ssoSecretType;
+ return this;
+ }
+
+ /**
+ * Get the preferredAppGroupType property: The type of preferred application group type, default to Desktop
+ * Application Group.
+ *
+ * @return the preferredAppGroupType value.
+ */
+ public PreferredAppGroupType preferredAppGroupType() {
+ return this.preferredAppGroupType;
+ }
+
+ /**
+ * Set the preferredAppGroupType property: The type of preferred application group type, default to Desktop
+ * Application Group.
+ *
+ * @param preferredAppGroupType the preferredAppGroupType value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withPreferredAppGroupType(PreferredAppGroupType preferredAppGroupType) {
+ this.preferredAppGroupType = preferredAppGroupType;
+ return this;
+ }
+
+ /**
+ * Get the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.
+ *
+ * @return the startVMOnConnect value.
+ */
+ public Boolean startVMOnConnect() {
+ return this.startVMOnConnect;
+ }
+
+ /**
+ * Set the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.
+ *
+ * @param startVMOnConnect the startVMOnConnect value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withStartVMOnConnect(Boolean startVMOnConnect) {
+ this.startVMOnConnect = startVMOnConnect;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public HostPoolInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public HostPoolInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (hostPoolType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property hostPoolType in model HostPoolInner"));
+ }
+ if (loadBalancerType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property loadBalancerType in model HostPoolInner"));
+ }
+ if (registrationInfo() != null) {
+ registrationInfo().validate();
+ }
+ if (preferredAppGroupType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property preferredAppGroupType in model HostPoolInner"));
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
new file mode 100644
index 0000000000000..348db6abdd410
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
@@ -0,0 +1,326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Schema for MSIX Package properties. */
+@JsonFlatten
+@Fluent
+public class MsixPackageInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MsixPackageInner.class);
+
+ /*
+ * VHD/CIM image path on Network Share.
+ */
+ @JsonProperty(value = "properties.imagePath")
+ private String imagePath;
+
+ /*
+ * Package Name from appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.packageName")
+ private String packageName;
+
+ /*
+ * Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ */
+ @JsonProperty(value = "properties.packageFamilyName")
+ private String packageFamilyName;
+
+ /*
+ * User friendly Name to be displayed in the portal.
+ */
+ @JsonProperty(value = "properties.displayName")
+ private String displayName;
+
+ /*
+ * Relative Path to the package inside the image.
+ */
+ @JsonProperty(value = "properties.packageRelativePath")
+ private String packageRelativePath;
+
+ /*
+ * Specifies how to register Package in feed.
+ */
+ @JsonProperty(value = "properties.isRegularRegistration")
+ private Boolean isRegularRegistration;
+
+ /*
+ * Make this version of the package the active one across the hostpool.
+ */
+ @JsonProperty(value = "properties.isActive")
+ private Boolean isActive;
+
+ /*
+ * List of package dependencies.
+ */
+ @JsonProperty(value = "properties.packageDependencies")
+ private List packageDependencies;
+
+ /*
+ * Package Version found in the appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.version")
+ private String version;
+
+ /*
+ * Date Package was last updated, found in the appxmanifest.xml.
+ */
+ @JsonProperty(value = "properties.lastUpdated")
+ private OffsetDateTime lastUpdated;
+
+ /*
+ * List of package applications.
+ */
+ @JsonProperty(value = "properties.packageApplications")
+ private List packageApplications;
+
+ /**
+ * Get the imagePath property: VHD/CIM image path on Network Share.
+ *
+ * @return the imagePath value.
+ */
+ public String imagePath() {
+ return this.imagePath;
+ }
+
+ /**
+ * Set the imagePath property: VHD/CIM image path on Network Share.
+ *
+ * @param imagePath the imagePath value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withImagePath(String imagePath) {
+ this.imagePath = imagePath;
+ return this;
+ }
+
+ /**
+ * Get the packageName property: Package Name from appxmanifest.xml.
+ *
+ * @return the packageName value.
+ */
+ public String packageName() {
+ return this.packageName;
+ }
+
+ /**
+ * Set the packageName property: Package Name from appxmanifest.xml.
+ *
+ * @param packageName the packageName value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withPackageName(String packageName) {
+ this.packageName = packageName;
+ return this;
+ }
+
+ /**
+ * Get the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ *
+ * @return the packageFamilyName value.
+ */
+ public String packageFamilyName() {
+ return this.packageFamilyName;
+ }
+
+ /**
+ * Set the packageFamilyName property: Package Family Name from appxmanifest.xml. Contains Package Name and
+ * Publisher name.
+ *
+ * @param packageFamilyName the packageFamilyName value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withPackageFamilyName(String packageFamilyName) {
+ this.packageFamilyName = packageFamilyName;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: User friendly Name to be displayed in the portal.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: User friendly Name to be displayed in the portal.
+ *
+ * @param displayName the displayName value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the packageRelativePath property: Relative Path to the package inside the image.
+ *
+ * @return the packageRelativePath value.
+ */
+ public String packageRelativePath() {
+ return this.packageRelativePath;
+ }
+
+ /**
+ * Set the packageRelativePath property: Relative Path to the package inside the image.
+ *
+ * @param packageRelativePath the packageRelativePath value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withPackageRelativePath(String packageRelativePath) {
+ this.packageRelativePath = packageRelativePath;
+ return this;
+ }
+
+ /**
+ * Get the isRegularRegistration property: Specifies how to register Package in feed.
+ *
+ * @return the isRegularRegistration value.
+ */
+ public Boolean isRegularRegistration() {
+ return this.isRegularRegistration;
+ }
+
+ /**
+ * Set the isRegularRegistration property: Specifies how to register Package in feed.
+ *
+ * @param isRegularRegistration the isRegularRegistration value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withIsRegularRegistration(Boolean isRegularRegistration) {
+ this.isRegularRegistration = isRegularRegistration;
+ return this;
+ }
+
+ /**
+ * Get the isActive property: Make this version of the package the active one across the hostpool.
+ *
+ * @return the isActive value.
+ */
+ public Boolean isActive() {
+ return this.isActive;
+ }
+
+ /**
+ * Set the isActive property: Make this version of the package the active one across the hostpool.
+ *
+ * @param isActive the isActive value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withIsActive(Boolean isActive) {
+ this.isActive = isActive;
+ return this;
+ }
+
+ /**
+ * Get the packageDependencies property: List of package dependencies.
+ *
+ * @return the packageDependencies value.
+ */
+ public List packageDependencies() {
+ return this.packageDependencies;
+ }
+
+ /**
+ * Set the packageDependencies property: List of package dependencies.
+ *
+ * @param packageDependencies the packageDependencies value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withPackageDependencies(List packageDependencies) {
+ this.packageDependencies = packageDependencies;
+ return this;
+ }
+
+ /**
+ * Get the version property: Package Version found in the appxmanifest.xml.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Package Version found in the appxmanifest.xml.
+ *
+ * @param version the version value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
+ *
+ * @return the lastUpdated value.
+ */
+ public OffsetDateTime lastUpdated() {
+ return this.lastUpdated;
+ }
+
+ /**
+ * Set the lastUpdated property: Date Package was last updated, found in the appxmanifest.xml.
+ *
+ * @param lastUpdated the lastUpdated value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withLastUpdated(OffsetDateTime lastUpdated) {
+ this.lastUpdated = lastUpdated;
+ return this;
+ }
+
+ /**
+ * Get the packageApplications property: List of package applications.
+ *
+ * @return the packageApplications value.
+ */
+ public List packageApplications() {
+ return this.packageApplications;
+ }
+
+ /**
+ * Set the packageApplications property: List of package applications.
+ *
+ * @param packageApplications the packageApplications value to set.
+ * @return the MsixPackageInner object itself.
+ */
+ public MsixPackageInner withPackageApplications(List packageApplications) {
+ this.packageApplications = packageApplications;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (packageDependencies() != null) {
+ packageDependencies().forEach(e -> e.validate());
+ }
+ if (packageApplications() != null) {
+ packageApplications().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java
new file mode 100644
index 0000000000000..bfbe442a3627c
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Represents a RegistrationInfo definition. */
+@Fluent
+public final class RegistrationInfoInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistrationInfoInner.class);
+
+ /*
+ * Expiration time of registration token.
+ */
+ @JsonProperty(value = "expirationTime")
+ private OffsetDateTime expirationTime;
+
+ /*
+ * The registration token base64 encoded string.
+ */
+ @JsonProperty(value = "token")
+ private String token;
+
+ /*
+ * The type of resetting the token.
+ */
+ @JsonProperty(value = "registrationTokenOperation")
+ private RegistrationTokenOperation registrationTokenOperation;
+
+ /**
+ * Get the expirationTime property: Expiration time of registration token.
+ *
+ * @return the expirationTime value.
+ */
+ public OffsetDateTime expirationTime() {
+ return this.expirationTime;
+ }
+
+ /**
+ * Set the expirationTime property: Expiration time of registration token.
+ *
+ * @param expirationTime the expirationTime value to set.
+ * @return the RegistrationInfoInner object itself.
+ */
+ public RegistrationInfoInner withExpirationTime(OffsetDateTime expirationTime) {
+ this.expirationTime = expirationTime;
+ return this;
+ }
+
+ /**
+ * Get the token property: The registration token base64 encoded string.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Set the token property: The registration token base64 encoded string.
+ *
+ * @param token the token value to set.
+ * @return the RegistrationInfoInner object itself.
+ */
+ public RegistrationInfoInner withToken(String token) {
+ this.token = token;
+ return this;
+ }
+
+ /**
+ * Get the registrationTokenOperation property: The type of resetting the token.
+ *
+ * @return the registrationTokenOperation value.
+ */
+ public RegistrationTokenOperation registrationTokenOperation() {
+ return this.registrationTokenOperation;
+ }
+
+ /**
+ * Set the registrationTokenOperation property: The type of resetting the token.
+ *
+ * @param registrationTokenOperation the registrationTokenOperation value to set.
+ * @return the RegistrationInfoInner object itself.
+ */
+ public RegistrationInfoInner withRegistrationTokenOperation(RegistrationTokenOperation registrationTokenOperation) {
+ this.registrationTokenOperation = registrationTokenOperation;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationListInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationListInner.java
new file mode 100644
index 0000000000000..67dfa56230593
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationListInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.ResourceProviderOperation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Result of the request to list operations. */
+@Fluent
+public final class ResourceProviderOperationListInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceProviderOperationListInner.class);
+
+ /*
+ * List of operations supported by this resource provider.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: List of operations supported by this resource provider.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of operations supported by this resource provider.
+ *
+ * @param value the value value to set.
+ * @return the ResourceProviderOperationListInner object itself.
+ */
+ public ResourceProviderOperationListInner 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) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java
new file mode 100644
index 0000000000000..6ba8c9397574f
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java
@@ -0,0 +1,234 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Represents a scaling plan definition. */
+@JsonFlatten
+@Fluent
+public class ScalingPlanInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ScalingPlanInner.class);
+
+ /*
+ * Description of scaling plan.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * User friendly name of scaling plan.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Timezone of the scaling plan.
+ */
+ @JsonProperty(value = "properties.timeZone")
+ private String timeZone;
+
+ /*
+ * HostPool type for desktop.
+ */
+ @JsonProperty(value = "properties.hostPoolType")
+ private HostPoolType hostPoolType;
+
+ /*
+ * Exclusion tag for scaling plan.
+ */
+ @JsonProperty(value = "properties.exclusionTag")
+ private String exclusionTag;
+
+ /*
+ * List of ScalingSchedule definitions.
+ */
+ @JsonProperty(value = "properties.schedules")
+ private List schedules;
+
+ /*
+ * List of ScalingHostPoolReference definitions.
+ */
+ @JsonProperty(value = "properties.hostPoolReferences")
+ private List hostPoolReferences;
+
+ /**
+ * Get the description property: Description of scaling plan.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of scaling plan.
+ *
+ * @param description the description value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: User friendly name of scaling plan.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: User friendly name of scaling plan.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the timeZone property: Timezone of the scaling plan.
+ *
+ * @return the timeZone value.
+ */
+ public String timeZone() {
+ return this.timeZone;
+ }
+
+ /**
+ * Set the timeZone property: Timezone of the scaling plan.
+ *
+ * @param timeZone the timeZone value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withTimeZone(String timeZone) {
+ this.timeZone = timeZone;
+ return this;
+ }
+
+ /**
+ * Get the hostPoolType property: HostPool type for desktop.
+ *
+ * @return the hostPoolType value.
+ */
+ public HostPoolType hostPoolType() {
+ return this.hostPoolType;
+ }
+
+ /**
+ * Set the hostPoolType property: HostPool type for desktop.
+ *
+ * @param hostPoolType the hostPoolType value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withHostPoolType(HostPoolType hostPoolType) {
+ this.hostPoolType = hostPoolType;
+ return this;
+ }
+
+ /**
+ * Get the exclusionTag property: Exclusion tag for scaling plan.
+ *
+ * @return the exclusionTag value.
+ */
+ public String exclusionTag() {
+ return this.exclusionTag;
+ }
+
+ /**
+ * Set the exclusionTag property: Exclusion tag for scaling plan.
+ *
+ * @param exclusionTag the exclusionTag value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withExclusionTag(String exclusionTag) {
+ this.exclusionTag = exclusionTag;
+ return this;
+ }
+
+ /**
+ * Get the schedules property: List of ScalingSchedule definitions.
+ *
+ * @return the schedules value.
+ */
+ public List schedules() {
+ return this.schedules;
+ }
+
+ /**
+ * Set the schedules property: List of ScalingSchedule definitions.
+ *
+ * @param schedules the schedules value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withSchedules(List schedules) {
+ this.schedules = schedules;
+ return this;
+ }
+
+ /**
+ * Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.
+ *
+ * @return the hostPoolReferences value.
+ */
+ public List hostPoolReferences() {
+ return this.hostPoolReferences;
+ }
+
+ /**
+ * Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.
+ *
+ * @param hostPoolReferences the hostPoolReferences value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withHostPoolReferences(List hostPoolReferences) {
+ this.hostPoolReferences = hostPoolReferences;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ScalingPlanInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ScalingPlanInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (schedules() != null) {
+ schedules().forEach(e -> e.validate());
+ }
+ if (hostPoolReferences() != null) {
+ hostPoolReferences().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java
new file mode 100644
index 0000000000000..fa887b3f47301
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java
@@ -0,0 +1,370 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostHealthCheckReport;
+import com.azure.resourcemanager.desktopvirtualization.models.Status;
+import com.azure.resourcemanager.desktopvirtualization.models.UpdateState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Represents a SessionHost definition. */
+@JsonFlatten
+@Fluent
+public class SessionHostInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SessionHostInner.class);
+
+ /*
+ * Last heart beat from SessionHost.
+ */
+ @JsonProperty(value = "properties.lastHeartBeat")
+ private OffsetDateTime lastHeartBeat;
+
+ /*
+ * Number of sessions on SessionHost.
+ */
+ @JsonProperty(value = "properties.sessions")
+ private Integer sessions;
+
+ /*
+ * Version of agent on SessionHost.
+ */
+ @JsonProperty(value = "properties.agentVersion")
+ private String agentVersion;
+
+ /*
+ * Allow a new session.
+ */
+ @JsonProperty(value = "properties.allowNewSession")
+ private Boolean allowNewSession;
+
+ /*
+ * Virtual Machine Id of SessionHost's underlying virtual machine.
+ */
+ @JsonProperty(value = "properties.virtualMachineId", access = JsonProperty.Access.WRITE_ONLY)
+ private String virtualMachineId;
+
+ /*
+ * Resource Id of SessionHost's underlying virtual machine.
+ */
+ @JsonProperty(value = "properties.resourceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String resourceId;
+
+ /*
+ * User assigned to SessionHost.
+ */
+ @JsonProperty(value = "properties.assignedUser")
+ private String assignedUser;
+
+ /*
+ * Status for a SessionHost.
+ */
+ @JsonProperty(value = "properties.status")
+ private Status status;
+
+ /*
+ * The timestamp of the status.
+ */
+ @JsonProperty(value = "properties.statusTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime statusTimestamp;
+
+ /*
+ * The version of the OS on the session host.
+ */
+ @JsonProperty(value = "properties.osVersion")
+ private String osVersion;
+
+ /*
+ * The version of the side by side stack on the session host.
+ */
+ @JsonProperty(value = "properties.sxSStackVersion")
+ private String sxSStackVersion;
+
+ /*
+ * Update state of a SessionHost.
+ */
+ @JsonProperty(value = "properties.updateState")
+ private UpdateState updateState;
+
+ /*
+ * The timestamp of the last update.
+ */
+ @JsonProperty(value = "properties.lastUpdateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastUpdateTime;
+
+ /*
+ * The error message.
+ */
+ @JsonProperty(value = "properties.updateErrorMessage")
+ private String updateErrorMessage;
+
+ /*
+ * List of SessionHostHealthCheckReports
+ */
+ @JsonProperty(value = "properties.sessionHostHealthCheckResults", access = JsonProperty.Access.WRITE_ONLY)
+ private List sessionHostHealthCheckResults;
+
+ /**
+ * Get the lastHeartBeat property: Last heart beat from SessionHost.
+ *
+ * @return the lastHeartBeat value.
+ */
+ public OffsetDateTime lastHeartBeat() {
+ return this.lastHeartBeat;
+ }
+
+ /**
+ * Set the lastHeartBeat property: Last heart beat from SessionHost.
+ *
+ * @param lastHeartBeat the lastHeartBeat value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withLastHeartBeat(OffsetDateTime lastHeartBeat) {
+ this.lastHeartBeat = lastHeartBeat;
+ return this;
+ }
+
+ /**
+ * Get the sessions property: Number of sessions on SessionHost.
+ *
+ * @return the sessions value.
+ */
+ public Integer sessions() {
+ return this.sessions;
+ }
+
+ /**
+ * Set the sessions property: Number of sessions on SessionHost.
+ *
+ * @param sessions the sessions value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withSessions(Integer sessions) {
+ this.sessions = sessions;
+ return this;
+ }
+
+ /**
+ * Get the agentVersion property: Version of agent on SessionHost.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.agentVersion;
+ }
+
+ /**
+ * Set the agentVersion property: Version of agent on SessionHost.
+ *
+ * @param agentVersion the agentVersion value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withAgentVersion(String agentVersion) {
+ this.agentVersion = agentVersion;
+ return this;
+ }
+
+ /**
+ * Get the allowNewSession property: Allow a new session.
+ *
+ * @return the allowNewSession value.
+ */
+ public Boolean allowNewSession() {
+ return this.allowNewSession;
+ }
+
+ /**
+ * Set the allowNewSession property: Allow a new session.
+ *
+ * @param allowNewSession the allowNewSession value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withAllowNewSession(Boolean allowNewSession) {
+ this.allowNewSession = allowNewSession;
+ return this;
+ }
+
+ /**
+ * Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.
+ *
+ * @return the virtualMachineId value.
+ */
+ public String virtualMachineId() {
+ return this.virtualMachineId;
+ }
+
+ /**
+ * Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the assignedUser property: User assigned to SessionHost.
+ *
+ * @return the assignedUser value.
+ */
+ public String assignedUser() {
+ return this.assignedUser;
+ }
+
+ /**
+ * Set the assignedUser property: User assigned to SessionHost.
+ *
+ * @param assignedUser the assignedUser value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withAssignedUser(String assignedUser) {
+ this.assignedUser = assignedUser;
+ return this;
+ }
+
+ /**
+ * Get the status property: Status for a SessionHost.
+ *
+ * @return the status value.
+ */
+ public Status status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Status for a SessionHost.
+ *
+ * @param status the status value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withStatus(Status status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the statusTimestamp property: The timestamp of the status.
+ *
+ * @return the statusTimestamp value.
+ */
+ public OffsetDateTime statusTimestamp() {
+ return this.statusTimestamp;
+ }
+
+ /**
+ * Get the osVersion property: The version of the OS on the session host.
+ *
+ * @return the osVersion value.
+ */
+ public String osVersion() {
+ return this.osVersion;
+ }
+
+ /**
+ * Set the osVersion property: The version of the OS on the session host.
+ *
+ * @param osVersion the osVersion value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withOsVersion(String osVersion) {
+ this.osVersion = osVersion;
+ return this;
+ }
+
+ /**
+ * Get the sxSStackVersion property: The version of the side by side stack on the session host.
+ *
+ * @return the sxSStackVersion value.
+ */
+ public String sxSStackVersion() {
+ return this.sxSStackVersion;
+ }
+
+ /**
+ * Set the sxSStackVersion property: The version of the side by side stack on the session host.
+ *
+ * @param sxSStackVersion the sxSStackVersion value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withSxSStackVersion(String sxSStackVersion) {
+ this.sxSStackVersion = sxSStackVersion;
+ return this;
+ }
+
+ /**
+ * Get the updateState property: Update state of a SessionHost.
+ *
+ * @return the updateState value.
+ */
+ public UpdateState updateState() {
+ return this.updateState;
+ }
+
+ /**
+ * Set the updateState property: Update state of a SessionHost.
+ *
+ * @param updateState the updateState value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withUpdateState(UpdateState updateState) {
+ this.updateState = updateState;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdateTime property: The timestamp of the last update.
+ *
+ * @return the lastUpdateTime value.
+ */
+ public OffsetDateTime lastUpdateTime() {
+ return this.lastUpdateTime;
+ }
+
+ /**
+ * Get the updateErrorMessage property: The error message.
+ *
+ * @return the updateErrorMessage value.
+ */
+ public String updateErrorMessage() {
+ return this.updateErrorMessage;
+ }
+
+ /**
+ * Set the updateErrorMessage property: The error message.
+ *
+ * @param updateErrorMessage the updateErrorMessage value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withUpdateErrorMessage(String updateErrorMessage) {
+ this.updateErrorMessage = updateErrorMessage;
+ return this;
+ }
+
+ /**
+ * Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.
+ *
+ * @return the sessionHostHealthCheckResults value.
+ */
+ public List sessionHostHealthCheckResults() {
+ return this.sessionHostHealthCheckResults;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sessionHostHealthCheckResults() != null) {
+ sessionHostHealthCheckResults().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java
new file mode 100644
index 0000000000000..7256c307fa427
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.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.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Represents a StartMenuItem definition. */
+@JsonFlatten
+@Fluent
+public class StartMenuItemInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StartMenuItemInner.class);
+
+ /*
+ * Alias of StartMenuItem.
+ */
+ @JsonProperty(value = "properties.appAlias")
+ private String appAlias;
+
+ /*
+ * Path to the file of StartMenuItem.
+ */
+ @JsonProperty(value = "properties.filePath")
+ private String filePath;
+
+ /*
+ * Command line arguments for StartMenuItem.
+ */
+ @JsonProperty(value = "properties.commandLineArguments")
+ private String commandLineArguments;
+
+ /*
+ * Path to the icon.
+ */
+ @JsonProperty(value = "properties.iconPath")
+ private String iconPath;
+
+ /*
+ * Index of the icon.
+ */
+ @JsonProperty(value = "properties.iconIndex")
+ private Integer iconIndex;
+
+ /**
+ * Get the appAlias property: Alias of StartMenuItem.
+ *
+ * @return the appAlias value.
+ */
+ public String appAlias() {
+ return this.appAlias;
+ }
+
+ /**
+ * Set the appAlias property: Alias of StartMenuItem.
+ *
+ * @param appAlias the appAlias value to set.
+ * @return the StartMenuItemInner object itself.
+ */
+ public StartMenuItemInner withAppAlias(String appAlias) {
+ this.appAlias = appAlias;
+ return this;
+ }
+
+ /**
+ * Get the filePath property: Path to the file of StartMenuItem.
+ *
+ * @return the filePath value.
+ */
+ public String filePath() {
+ return this.filePath;
+ }
+
+ /**
+ * Set the filePath property: Path to the file of StartMenuItem.
+ *
+ * @param filePath the filePath value to set.
+ * @return the StartMenuItemInner object itself.
+ */
+ public StartMenuItemInner withFilePath(String filePath) {
+ this.filePath = filePath;
+ return this;
+ }
+
+ /**
+ * Get the commandLineArguments property: Command line arguments for StartMenuItem.
+ *
+ * @return the commandLineArguments value.
+ */
+ public String commandLineArguments() {
+ return this.commandLineArguments;
+ }
+
+ /**
+ * Set the commandLineArguments property: Command line arguments for StartMenuItem.
+ *
+ * @param commandLineArguments the commandLineArguments value to set.
+ * @return the StartMenuItemInner object itself.
+ */
+ public StartMenuItemInner withCommandLineArguments(String commandLineArguments) {
+ this.commandLineArguments = commandLineArguments;
+ return this;
+ }
+
+ /**
+ * Get the iconPath property: Path to the icon.
+ *
+ * @return the iconPath value.
+ */
+ public String iconPath() {
+ return this.iconPath;
+ }
+
+ /**
+ * Set the iconPath property: Path to the icon.
+ *
+ * @param iconPath the iconPath value to set.
+ * @return the StartMenuItemInner object itself.
+ */
+ public StartMenuItemInner withIconPath(String iconPath) {
+ this.iconPath = iconPath;
+ return this;
+ }
+
+ /**
+ * Get the iconIndex property: Index of the icon.
+ *
+ * @return the iconIndex value.
+ */
+ public Integer iconIndex() {
+ return this.iconIndex;
+ }
+
+ /**
+ * Set the iconIndex property: Index of the icon.
+ *
+ * @param iconIndex the iconIndex value to set.
+ * @return the StartMenuItemInner object itself.
+ */
+ public StartMenuItemInner withIconIndex(Integer iconIndex) {
+ this.iconIndex = iconIndex;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java
new file mode 100644
index 0000000000000..ef9ae6570ae97
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationType;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Represents a UserSession definition. */
+@JsonFlatten
+@Fluent
+public class UserSessionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSessionInner.class);
+
+ /*
+ * The user principal name.
+ */
+ @JsonProperty(value = "properties.userPrincipalName")
+ private String userPrincipalName;
+
+ /*
+ * Application type of application.
+ */
+ @JsonProperty(value = "properties.applicationType")
+ private ApplicationType applicationType;
+
+ /*
+ * State of user session.
+ */
+ @JsonProperty(value = "properties.sessionState")
+ private SessionState sessionState;
+
+ /*
+ * The active directory user name.
+ */
+ @JsonProperty(value = "properties.activeDirectoryUserName")
+ private String activeDirectoryUsername;
+
+ /*
+ * The timestamp of the user session create.
+ */
+ @JsonProperty(value = "properties.createTime")
+ private OffsetDateTime createTime;
+
+ /**
+ * Get the userPrincipalName property: The user principal name.
+ *
+ * @return the userPrincipalName value.
+ */
+ public String userPrincipalName() {
+ return this.userPrincipalName;
+ }
+
+ /**
+ * Set the userPrincipalName property: The user principal name.
+ *
+ * @param userPrincipalName the userPrincipalName value to set.
+ * @return the UserSessionInner object itself.
+ */
+ public UserSessionInner withUserPrincipalName(String userPrincipalName) {
+ this.userPrincipalName = userPrincipalName;
+ return this;
+ }
+
+ /**
+ * Get the applicationType property: Application type of application.
+ *
+ * @return the applicationType value.
+ */
+ public ApplicationType applicationType() {
+ return this.applicationType;
+ }
+
+ /**
+ * Set the applicationType property: Application type of application.
+ *
+ * @param applicationType the applicationType value to set.
+ * @return the UserSessionInner object itself.
+ */
+ public UserSessionInner withApplicationType(ApplicationType applicationType) {
+ this.applicationType = applicationType;
+ return this;
+ }
+
+ /**
+ * Get the sessionState property: State of user session.
+ *
+ * @return the sessionState value.
+ */
+ public SessionState sessionState() {
+ return this.sessionState;
+ }
+
+ /**
+ * Set the sessionState property: State of user session.
+ *
+ * @param sessionState the sessionState value to set.
+ * @return the UserSessionInner object itself.
+ */
+ public UserSessionInner withSessionState(SessionState sessionState) {
+ this.sessionState = sessionState;
+ return this;
+ }
+
+ /**
+ * Get the activeDirectoryUsername property: The active directory user name.
+ *
+ * @return the activeDirectoryUsername value.
+ */
+ public String activeDirectoryUsername() {
+ return this.activeDirectoryUsername;
+ }
+
+ /**
+ * Set the activeDirectoryUsername property: The active directory user name.
+ *
+ * @param activeDirectoryUsername the activeDirectoryUsername value to set.
+ * @return the UserSessionInner object itself.
+ */
+ public UserSessionInner withActiveDirectoryUsername(String activeDirectoryUsername) {
+ this.activeDirectoryUsername = activeDirectoryUsername;
+ return this;
+ }
+
+ /**
+ * Get the createTime property: The timestamp of the user session create.
+ *
+ * @return the createTime value.
+ */
+ public OffsetDateTime createTime() {
+ return this.createTime;
+ }
+
+ /**
+ * Set the createTime property: The timestamp of the user session create.
+ *
+ * @param createTime the createTime value to set.
+ * @return the UserSessionInner object itself.
+ */
+ public UserSessionInner withCreateTime(OffsetDateTime createTime) {
+ this.createTime = createTime;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java
new file mode 100644
index 0000000000000..1aa1ba46b22ad
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Represents a Workspace definition. */
+@JsonFlatten
+@Fluent
+public class WorkspaceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class);
+
+ /*
+ * Description of Workspace.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * Friendly name of Workspace.
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * List of applicationGroup resource Ids.
+ */
+ @JsonProperty(value = "properties.applicationGroupReferences")
+ private List applicationGroupReferences;
+
+ /**
+ * Get the description property: Description of Workspace.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of Workspace.
+ *
+ * @param description the description value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly name of Workspace.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of Workspace.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the applicationGroupReferences property: List of applicationGroup resource Ids.
+ *
+ * @return the applicationGroupReferences value.
+ */
+ public List applicationGroupReferences() {
+ return this.applicationGroupReferences;
+ }
+
+ /**
+ * Set the applicationGroupReferences property: List of applicationGroup resource Ids.
+ *
+ * @param applicationGroupReferences the applicationGroupReferences value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withApplicationGroupReferences(List applicationGroupReferences) {
+ this.applicationGroupReferences = applicationGroupReferences;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WorkspaceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WorkspaceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/package-info.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/package-info.java
new file mode 100644
index 0000000000000..54e0b1a1a6567
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/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 DesktopVirtualizationApiClient. null. */
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/package-info.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/package-info.java
new file mode 100644
index 0000000000000..fd55e7d101254
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/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 DesktopVirtualizationApiClient. null. */
+package com.azure.resourcemanager.desktopvirtualization.fluent;
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupImpl.java
new file mode 100644
index 0000000000000..3b3a87db95373
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupImpl.java
@@ -0,0 +1,226 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroup;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ApplicationGroupImpl
+ implements ApplicationGroup, ApplicationGroup.Definition, ApplicationGroup.Update {
+ private ApplicationGroupInner innerObject;
+
+ private final DesktopVirtualizationManager 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 String description() {
+ return this.innerModel().description();
+ }
+
+ public String friendlyName() {
+ return this.innerModel().friendlyName();
+ }
+
+ public String hostPoolArmPath() {
+ return this.innerModel().hostPoolArmPath();
+ }
+
+ public String workspaceArmPath() {
+ return this.innerModel().workspaceArmPath();
+ }
+
+ public ApplicationGroupType applicationGroupType() {
+ return this.innerModel().applicationGroupType();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ApplicationGroupInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String applicationGroupName;
+
+ private ApplicationGroupPatch updateApplicationGroup;
+
+ public ApplicationGroupImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ApplicationGroup create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateWithResponse(resourceGroupName, applicationGroupName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateWithResponse(resourceGroupName, applicationGroupName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationGroupImpl(String name, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = new ApplicationGroupInner();
+ this.serviceManager = serviceManager;
+ this.applicationGroupName = name;
+ }
+
+ public ApplicationGroupImpl update() {
+ this.updateApplicationGroup = new ApplicationGroupPatch();
+ return this;
+ }
+
+ public ApplicationGroup apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .updateWithResponse(resourceGroupName, applicationGroupName, updateApplicationGroup, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .updateWithResponse(resourceGroupName, applicationGroupName, updateApplicationGroup, context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationGroupImpl(ApplicationGroupInner innerObject, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.applicationGroupName = Utils.getValueFromIdByName(innerObject.id(), "applicationGroups");
+ }
+
+ public ApplicationGroup refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .getByResourceGroupWithResponse(resourceGroupName, applicationGroupName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .getByResourceGroupWithResponse(resourceGroupName, applicationGroupName, context)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroupImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ApplicationGroupImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ApplicationGroupImpl withHostPoolArmPath(String hostPoolArmPath) {
+ this.innerModel().withHostPoolArmPath(hostPoolArmPath);
+ return this;
+ }
+
+ public ApplicationGroupImpl withApplicationGroupType(ApplicationGroupType applicationGroupType) {
+ this.innerModel().withApplicationGroupType(applicationGroupType);
+ return this;
+ }
+
+ public ApplicationGroupImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateApplicationGroup.withTags(tags);
+ return this;
+ }
+ }
+
+ public ApplicationGroupImpl withDescription(String description) {
+ if (isInCreateMode()) {
+ this.innerModel().withDescription(description);
+ return this;
+ } else {
+ this.updateApplicationGroup.withDescription(description);
+ return this;
+ }
+ }
+
+ public ApplicationGroupImpl withFriendlyName(String friendlyName) {
+ if (isInCreateMode()) {
+ this.innerModel().withFriendlyName(friendlyName);
+ return this;
+ } else {
+ this.updateApplicationGroup.withFriendlyName(friendlyName);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java
new file mode 100644
index 0000000000000..4346aaaab9e3a
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java
@@ -0,0 +1,1345 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationGroupsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupList;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatch;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
+public final class ApplicationGroupsClientImpl implements ApplicationGroupsClient {
+ private final ClientLogger logger = new ClientLogger(ApplicationGroupsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final ApplicationGroupsService service;
+
+ /** The service client containing this operation class. */
+ private final DesktopVirtualizationApiClientImpl client;
+
+ /**
+ * Initializes an instance of ApplicationGroupsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApplicationGroupsClientImpl(DesktopVirtualizationApiClientImpl client) {
+ this.service =
+ RestProxy.create(ApplicationGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DesktopVirtualizationApiClientApplicationGroups to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DesktopVirtualizatio")
+ private interface ApplicationGroupsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @BodyParam("application/json") ApplicationGroupInner applicationGroup,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @BodyParam("application/json") ApplicationGroupPatch applicationGroup,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String applicationGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String applicationGroupName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, applicationGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName) {
+ return getByResourceGroupAsync(resourceGroupName, applicationGroupName).block();
+ }
+
+ /**
+ * Get an application group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, applicationGroupName, context).block();
+ }
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationGroup == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroup is required and cannot be null."));
+ } else {
+ applicationGroup.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationGroup,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String applicationGroupName,
+ ApplicationGroupInner applicationGroup,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationGroup == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroup is required and cannot be null."));
+ } else {
+ applicationGroup.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationGroup,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, applicationGroupName, applicationGroup)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationGroupInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup) {
+ return createOrUpdateAsync(resourceGroupName, applicationGroupName, applicationGroup).block();
+ }
+
+ /**
+ * Create or update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ ApplicationGroupInner applicationGroup,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, applicationGroupName, applicationGroup, context)
+ .block();
+ }
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context);
+ }
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String applicationGroupName) {
+ return deleteWithResponseAsync(resourceGroupName, applicationGroupName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String applicationGroupName) {
+ deleteAsync(resourceGroupName, applicationGroupName).block();
+ }
+
+ /**
+ * Remove an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, applicationGroupName, context).block();
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationGroup != null) {
+ applicationGroup.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationGroup,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String applicationGroupName,
+ ApplicationGroupPatch applicationGroup,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationGroup != null) {
+ applicationGroup.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationGroup,
+ accept,
+ context);
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup) {
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationGroup)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String applicationGroupName) {
+ final ApplicationGroupPatch applicationGroup = null;
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationGroup)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationGroupInner update(String resourceGroupName, String applicationGroupName) {
+ final ApplicationGroupPatch applicationGroup = null;
+ return updateAsync(resourceGroupName, applicationGroupName, applicationGroup).block();
+ }
+
+ /**
+ * Update an applicationGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a ApplicationGroup definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ ApplicationGroupPatch applicationGroup,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationGroup, context).block();
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, String filter) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ filter,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, String filter, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ filter,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, filter),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ final String filter = null;
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, filter),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, String filter, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ final String filter = null;
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter));
+ }
+
+ /**
+ * List applicationGroups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter, context));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ filter,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ filter,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final String filter = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final String filter = null;
+ return new PagedIterable<>(listAsync(filter));
+ }
+
+ /**
+ * List applicationGroups in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String filter, Context context) {
+ return new PagedIterable<>(listAsync(filter, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of ApplicationGroup definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java
new file mode 100644
index 0000000000000..cbea46ca89850
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationGroupsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroup;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroups;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class ApplicationGroupsImpl implements ApplicationGroups {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupsImpl.class);
+
+ private final ApplicationGroupsClient innerClient;
+
+ private final DesktopVirtualizationManager serviceManager;
+
+ public ApplicationGroupsImpl(ApplicationGroupsClient innerClient, DesktopVirtualizationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public ApplicationGroup getByResourceGroup(String resourceGroupName, String applicationGroupName) {
+ ApplicationGroupInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, applicationGroupName);
+ if (inner != null) {
+ return new ApplicationGroupImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, applicationGroupName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ApplicationGroupImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String applicationGroupName) {
+ this.serviceClient().delete(resourceGroupName, applicationGroupName);
+ }
+
+ public Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, applicationGroupName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName, filter, context);
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String filter, Context context) {
+ PagedIterable inner = this.serviceClient().list(filter, context);
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public ApplicationGroup getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, applicationGroupName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, applicationGroupName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, applicationGroupName, Context.NONE).getValue();
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, applicationGroupName, context);
+ }
+
+ private ApplicationGroupsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+
+ public ApplicationGroupImpl define(String name) {
+ return new ApplicationGroupImpl(name, this.manager());
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java
new file mode 100644
index 0000000000000..25e8415ee92d0
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java
@@ -0,0 +1,308 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
+import com.azure.resourcemanager.desktopvirtualization.models.Application;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
+import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
+import java.util.Map;
+
+public final class ApplicationImpl implements Application, Application.Definition, Application.Update {
+ private ApplicationInner innerObject;
+
+ private final DesktopVirtualizationManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String friendlyName() {
+ return this.innerModel().friendlyName();
+ }
+
+ public String filePath() {
+ return this.innerModel().filePath();
+ }
+
+ public String msixPackageFamilyName() {
+ return this.innerModel().msixPackageFamilyName();
+ }
+
+ public String msixPackageApplicationId() {
+ return this.innerModel().msixPackageApplicationId();
+ }
+
+ public RemoteApplicationType applicationType() {
+ return this.innerModel().applicationType();
+ }
+
+ public CommandLineSetting commandLineSetting() {
+ return this.innerModel().commandLineSetting();
+ }
+
+ public String commandLineArguments() {
+ return this.innerModel().commandLineArguments();
+ }
+
+ public Boolean showInPortal() {
+ return this.innerModel().showInPortal();
+ }
+
+ public String iconPath() {
+ return this.innerModel().iconPath();
+ }
+
+ public Integer iconIndex() {
+ return this.innerModel().iconIndex();
+ }
+
+ public String iconHash() {
+ return this.innerModel().iconHash();
+ }
+
+ public byte[] iconContent() {
+ return this.innerModel().iconContent();
+ }
+
+ public ApplicationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String applicationGroupName;
+
+ private String applicationName;
+
+ private ApplicationPatch updateApplication;
+
+ public ApplicationImpl withExistingApplicationGroup(String resourceGroupName, String applicationGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ this.applicationGroupName = applicationGroupName;
+ return this;
+ }
+
+ public Application create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .createOrUpdateWithResponse(
+ resourceGroupName, applicationGroupName, applicationName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Application create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .createOrUpdateWithResponse(
+ resourceGroupName, applicationGroupName, applicationName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationImpl(String name, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = new ApplicationInner();
+ this.serviceManager = serviceManager;
+ this.applicationName = name;
+ }
+
+ public ApplicationImpl update() {
+ this.updateApplication = new ApplicationPatch();
+ return this;
+ }
+
+ public Application apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .updateWithResponse(
+ resourceGroupName, applicationGroupName, applicationName, updateApplication, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Application apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .updateWithResponse(
+ resourceGroupName, applicationGroupName, applicationName, updateApplication, context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationImpl(ApplicationInner innerObject, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.applicationGroupName = Utils.getValueFromIdByName(innerObject.id(), "applicationGroups");
+ this.applicationName = Utils.getValueFromIdByName(innerObject.id(), "applications");
+ }
+
+ public Application refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .getWithResponse(resourceGroupName, applicationGroupName, applicationName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Application refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplications()
+ .getWithResponse(resourceGroupName, applicationGroupName, applicationName, context)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationImpl withCommandLineSetting(CommandLineSetting commandLineSetting) {
+ if (isInCreateMode()) {
+ this.innerModel().withCommandLineSetting(commandLineSetting);
+ return this;
+ } else {
+ this.updateApplication.withCommandLineSetting(commandLineSetting);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withDescription(String description) {
+ if (isInCreateMode()) {
+ this.innerModel().withDescription(description);
+ return this;
+ } else {
+ this.updateApplication.withDescription(description);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withFriendlyName(String friendlyName) {
+ if (isInCreateMode()) {
+ this.innerModel().withFriendlyName(friendlyName);
+ return this;
+ } else {
+ this.updateApplication.withFriendlyName(friendlyName);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withFilePath(String filePath) {
+ if (isInCreateMode()) {
+ this.innerModel().withFilePath(filePath);
+ return this;
+ } else {
+ this.updateApplication.withFilePath(filePath);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withMsixPackageFamilyName(String msixPackageFamilyName) {
+ if (isInCreateMode()) {
+ this.innerModel().withMsixPackageFamilyName(msixPackageFamilyName);
+ return this;
+ } else {
+ this.updateApplication.withMsixPackageFamilyName(msixPackageFamilyName);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withMsixPackageApplicationId(String msixPackageApplicationId) {
+ if (isInCreateMode()) {
+ this.innerModel().withMsixPackageApplicationId(msixPackageApplicationId);
+ return this;
+ } else {
+ this.updateApplication.withMsixPackageApplicationId(msixPackageApplicationId);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withApplicationType(RemoteApplicationType applicationType) {
+ if (isInCreateMode()) {
+ this.innerModel().withApplicationType(applicationType);
+ return this;
+ } else {
+ this.updateApplication.withApplicationType(applicationType);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withCommandLineArguments(String commandLineArguments) {
+ if (isInCreateMode()) {
+ this.innerModel().withCommandLineArguments(commandLineArguments);
+ return this;
+ } else {
+ this.updateApplication.withCommandLineArguments(commandLineArguments);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withShowInPortal(Boolean showInPortal) {
+ if (isInCreateMode()) {
+ this.innerModel().withShowInPortal(showInPortal);
+ return this;
+ } else {
+ this.updateApplication.withShowInPortal(showInPortal);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withIconPath(String iconPath) {
+ if (isInCreateMode()) {
+ this.innerModel().withIconPath(iconPath);
+ return this;
+ } else {
+ this.updateApplication.withIconPath(iconPath);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withIconIndex(Integer iconIndex) {
+ if (isInCreateMode()) {
+ this.innerModel().withIconIndex(iconIndex);
+ return this;
+ } else {
+ this.updateApplication.withIconIndex(iconIndex);
+ return this;
+ }
+ }
+
+ public ApplicationImpl withTags(Map tags) {
+ this.updateApplication.withTags(tags);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java
new file mode 100644
index 0000000000000..a665b699fe8ac
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java
@@ -0,0 +1,1150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationList;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatch;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
+public final class ApplicationsClientImpl implements ApplicationsClient {
+ private final ClientLogger logger = new ClientLogger(ApplicationsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final ApplicationsService service;
+
+ /** The service client containing this operation class. */
+ private final DesktopVirtualizationApiClientImpl client;
+
+ /**
+ * Initializes an instance of ApplicationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApplicationsClientImpl(DesktopVirtualizationApiClientImpl client) {
+ this.service =
+ RestProxy.create(ApplicationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DesktopVirtualizationApiClientApplications to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DesktopVirtualizatio")
+ private interface ApplicationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications"
+ + "/{applicationName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @PathParam("applicationName") String applicationName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications"
+ + "/{applicationName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @PathParam("applicationName") String applicationName,
+ @BodyParam("application/json") ApplicationInner application,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications"
+ + "/{applicationName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @PathParam("applicationName") String applicationName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications"
+ + "/{applicationName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @PathParam("applicationName") String applicationName,
+ @BodyParam("application/json") ApplicationPatch application,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ + "/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName) {
+ return getWithResponseAsync(resourceGroupName, applicationGroupName, applicationName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName) {
+ return getAsync(resourceGroupName, applicationGroupName, applicationName).block();
+ }
+
+ /**
+ * Get an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ return getWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, context).block();
+ }
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (application == null) {
+ return Mono.error(new IllegalArgumentException("Parameter application is required and cannot be null."));
+ } else {
+ application.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ application,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationInner application,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (application == null) {
+ return Mono.error(new IllegalArgumentException("Parameter application is required and cannot be null."));
+ } else {
+ application.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ application,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, application)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application) {
+ return createOrUpdateAsync(resourceGroupName, applicationGroupName, applicationName, application).block();
+ }
+
+ /**
+ * Create or update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationInner application,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, applicationGroupName, applicationName, application, context)
+ .block();
+ }
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ accept,
+ context);
+ }
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String applicationGroupName, String applicationName) {
+ return deleteWithResponseAsync(resourceGroupName, applicationGroupName, applicationName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String applicationGroupName, String applicationName) {
+ deleteAsync(resourceGroupName, applicationGroupName, applicationName).block();
+ }
+
+ /**
+ * Remove an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, context).block();
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationPatch application) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (application != null) {
+ application.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ application,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationPatch application,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (application != null) {
+ application.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ applicationName,
+ application,
+ accept,
+ context);
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationPatch application) {
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, application)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String applicationGroupName, String applicationName) {
+ final ApplicationPatch application = null;
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, application)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName) {
+ final ApplicationPatch application = null;
+ return updateAsync(resourceGroupName, applicationGroupName, applicationName, application).block();
+ }
+
+ /**
+ * Update an application.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema for Application properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationPatch application,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, applicationGroupName, applicationName, application, context)
+ .block();
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String applicationGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ applicationGroupName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String applicationGroupName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, applicationGroupName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, applicationGroupName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String applicationGroupName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, applicationGroupName));
+ }
+
+ /**
+ * List applications.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String applicationGroupName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, applicationGroupName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Application definitions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsImpl.java
new file mode 100644
index 0000000000000..bfac058c181fa
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsImpl.java
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
+import com.azure.resourcemanager.desktopvirtualization.models.Application;
+import com.azure.resourcemanager.desktopvirtualization.models.Applications;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class ApplicationsImpl implements Applications {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationsImpl.class);
+
+ private final ApplicationsClient innerClient;
+
+ private final DesktopVirtualizationManager serviceManager;
+
+ public ApplicationsImpl(ApplicationsClient innerClient, DesktopVirtualizationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Application get(String resourceGroupName, String applicationGroupName, String applicationName) {
+ ApplicationInner inner = this.serviceClient().get(resourceGroupName, applicationGroupName, applicationName);
+ if (inner != null) {
+ return new ApplicationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, applicationGroupName, applicationName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ApplicationImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String applicationGroupName, String applicationName) {
+ this.serviceClient().delete(resourceGroupName, applicationGroupName, applicationName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context) {
+ return this
+ .serviceClient()
+ .deleteWithResponse(resourceGroupName, applicationGroupName, applicationName, context);
+ }
+
+ public PagedIterable list(String resourceGroupName, String applicationGroupName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, applicationGroupName);
+ return Utils.mapPage(inner, inner1 -> new ApplicationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String applicationGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, applicationGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new ApplicationImpl(inner1, this.manager()));
+ }
+
+ public Application getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ String applicationName = Utils.getValueFromIdByName(id, "applications");
+ if (applicationName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'applications'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, applicationGroupName, applicationName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ String applicationName = Utils.getValueFromIdByName(id, "applications");
+ if (applicationName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'applications'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, applicationGroupName, applicationName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ String applicationName = Utils.getValueFromIdByName(id, "applications");
+ if (applicationName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'applications'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, applicationGroupName, applicationName, Context.NONE).getValue();
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ String applicationName = Utils.getValueFromIdByName(id, "applications");
+ if (applicationName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'applications'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, applicationGroupName, applicationName, context);
+ }
+
+ private ApplicationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+
+ public ApplicationImpl define(String name) {
+ return new ApplicationImpl(name, this.manager());
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopImpl.java
new file mode 100644
index 0000000000000..9d926877600a8
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopImpl.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopInner;
+import com.azure.resourcemanager.desktopvirtualization.models.Desktop;
+
+public final class DesktopImpl implements Desktop {
+ private DesktopInner innerObject;
+
+ private final DesktopVirtualizationManager serviceManager;
+
+ DesktopImpl(DesktopInner innerObject, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String friendlyName() {
+ return this.innerModel().friendlyName();
+ }
+
+ public String iconHash() {
+ return this.innerModel().iconHash();
+ }
+
+ public byte[] iconContent() {
+ return this.innerModel().iconContent();
+ }
+
+ public DesktopInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopListImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopListImpl.java
new file mode 100644
index 0000000000000..f6563aa400bfe
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopListImpl.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.implementation;
+
+import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopInner;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopListInner;
+import com.azure.resourcemanager.desktopvirtualization.models.Desktop;
+import com.azure.resourcemanager.desktopvirtualization.models.DesktopList;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class DesktopListImpl implements DesktopList {
+ private DesktopListInner innerObject;
+
+ private final DesktopVirtualizationManager serviceManager;
+
+ DesktopListImpl(DesktopListInner innerObject, DesktopVirtualizationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner.stream().map(inner1 -> new DesktopImpl(inner1, this.manager())).collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String nextLink() {
+ return this.innerModel().nextLink();
+ }
+
+ public DesktopListInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientBuilder.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientBuilder.java
new file mode 100644
index 0000000000000..5c4a630c575d0
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientBuilder.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.desktopvirtualization.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 DesktopVirtualizationApiClientImpl type. */
+@ServiceClientBuilder(serviceClients = {DesktopVirtualizationApiClientImpl.class})
+public final class DesktopVirtualizationApiClientBuilder {
+ /*
+ * The ID of the target subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder 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 DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder 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 DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder 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 DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder 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 DesktopVirtualizationApiClientBuilder.
+ */
+ public DesktopVirtualizationApiClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DesktopVirtualizationApiClientImpl with the provided parameters.
+ *
+ * @return an instance of DesktopVirtualizationApiClientImpl.
+ */
+ public DesktopVirtualizationApiClientImpl 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();
+ }
+ DesktopVirtualizationApiClientImpl client =
+ new DesktopVirtualizationApiClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientImpl.java
new file mode 100644
index 0000000000000..583e89047c7f1
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/DesktopVirtualizationApiClientImpl.java
@@ -0,0 +1,447 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.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.desktopvirtualization.fluent.ApplicationGroupsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.DesktopVirtualizationApiClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.DesktopsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.HostPoolsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.MsixImagesClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.MsixPackagesClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.OperationsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.ScalingPlansClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.SessionHostsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.StartMenuItemsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.UserSessionsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.WorkspacesClient;
+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 DesktopVirtualizationApiClientImpl type. */
+@ServiceClient(builder = DesktopVirtualizationApiClientBuilder.class)
+public final class DesktopVirtualizationApiClientImpl implements DesktopVirtualizationApiClient {
+ private final ClientLogger logger = new ClientLogger(DesktopVirtualizationApiClientImpl.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 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 WorkspacesClient object to access its operations. */
+ private final WorkspacesClient workspaces;
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ public WorkspacesClient getWorkspaces() {
+ return this.workspaces;
+ }
+
+ /** The ScalingPlansClient object to access its operations. */
+ private final ScalingPlansClient scalingPlans;
+
+ /**
+ * Gets the ScalingPlansClient object to access its operations.
+ *
+ * @return the ScalingPlansClient object.
+ */
+ public ScalingPlansClient getScalingPlans() {
+ return this.scalingPlans;
+ }
+
+ /** The ApplicationGroupsClient object to access its operations. */
+ private final ApplicationGroupsClient applicationGroups;
+
+ /**
+ * Gets the ApplicationGroupsClient object to access its operations.
+ *
+ * @return the ApplicationGroupsClient object.
+ */
+ public ApplicationGroupsClient getApplicationGroups() {
+ return this.applicationGroups;
+ }
+
+ /** The StartMenuItemsClient object to access its operations. */
+ private final StartMenuItemsClient startMenuItems;
+
+ /**
+ * Gets the StartMenuItemsClient object to access its operations.
+ *
+ * @return the StartMenuItemsClient object.
+ */
+ public StartMenuItemsClient getStartMenuItems() {
+ return this.startMenuItems;
+ }
+
+ /** The ApplicationsClient object to access its operations. */
+ private final ApplicationsClient applications;
+
+ /**
+ * Gets the ApplicationsClient object to access its operations.
+ *
+ * @return the ApplicationsClient object.
+ */
+ public ApplicationsClient getApplications() {
+ return this.applications;
+ }
+
+ /** The DesktopsClient object to access its operations. */
+ private final DesktopsClient desktops;
+
+ /**
+ * Gets the DesktopsClient object to access its operations.
+ *
+ * @return the DesktopsClient object.
+ */
+ public DesktopsClient getDesktops() {
+ return this.desktops;
+ }
+
+ /** The HostPoolsClient object to access its operations. */
+ private final HostPoolsClient hostPools;
+
+ /**
+ * Gets the HostPoolsClient object to access its operations.
+ *
+ * @return the HostPoolsClient object.
+ */
+ public HostPoolsClient getHostPools() {
+ return this.hostPools;
+ }
+
+ /** The UserSessionsClient object to access its operations. */
+ private final UserSessionsClient userSessions;
+
+ /**
+ * Gets the UserSessionsClient object to access its operations.
+ *
+ * @return the UserSessionsClient object.
+ */
+ public UserSessionsClient getUserSessions() {
+ return this.userSessions;
+ }
+
+ /** The SessionHostsClient object to access its operations. */
+ private final SessionHostsClient sessionHosts;
+
+ /**
+ * Gets the SessionHostsClient object to access its operations.
+ *
+ * @return the SessionHostsClient object.
+ */
+ public SessionHostsClient getSessionHosts() {
+ return this.sessionHosts;
+ }
+
+ /** The MsixPackagesClient object to access its operations. */
+ private final MsixPackagesClient msixPackages;
+
+ /**
+ * Gets the MsixPackagesClient object to access its operations.
+ *
+ * @return the MsixPackagesClient object.
+ */
+ public MsixPackagesClient getMsixPackages() {
+ return this.msixPackages;
+ }
+
+ /** The MsixImagesClient object to access its operations. */
+ private final MsixImagesClient msixImages;
+
+ /**
+ * Gets the MsixImagesClient object to access its operations.
+ *
+ * @return the MsixImagesClient object.
+ */
+ public MsixImagesClient getMsixImages() {
+ return this.msixImages;
+ }
+
+ /**
+ * Initializes an instance of DesktopVirtualizationApiClient 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.
+ */
+ DesktopVirtualizationApiClientImpl(
+ 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 = "2021-02-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.workspaces = new WorkspacesClientImpl(this);
+ this.scalingPlans = new ScalingPlansClientImpl(this);
+ this.applicationGroups = new ApplicationGroupsClientImpl(this);
+ this.startMenuItems = new StartMenuItemsClientImpl(this);
+ this.applications = new ApplicationsClientImpl(this);
+ this.desktops = new DesktopsClientImpl(this);
+ this.hostPools = new HostPoolsClientImpl(this);
+ this.userSessions = new UserSessionsClientImpl(this);
+ this.sessionHosts = new SessionHostsClientImpl(this);
+ this.msixPackages = new MsixPackagesClientImpl(this);
+ this.msixImages = new MsixImagesClientImpl(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