updateByHostPoolWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection,
+ Context context) {
+ return updateByHostPoolWithResponseAsync(
+ resourceGroupName, hostPoolName, privateEndpointConnectionName, connection, context)
+ .block();
+ }
+
+ /**
+ * Approve or reject a private endpoint connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param connection Object containing the updated connection.
+ * @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 Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection) {
+ return updateByHostPoolWithResponse(
+ resourceGroupName, hostPoolName, privateEndpointConnectionName, connection, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 private endpoint connection associated with the specified storage account along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceNextSinglePageAsync(
+ 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.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 private endpoint connection associated with the specified storage account along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceNextSinglePageAsync(
+ 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
+ .listByWorkspaceNext(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 URL to get the next list of items
+ * 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 private endpoint connection associated with the specified storage account along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolNextSinglePageAsync(
+ 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.listByHostPoolNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 private endpoint connection associated with the specified storage account along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolNextSinglePageAsync(
+ 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
+ .listByHostPoolNext(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/PrivateEndpointConnectionsImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateEndpointConnectionsImpl.java
new file mode 100644
index 000000000000..9c1e1c9a0ca7
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateEndpointConnectionsImpl.java
@@ -0,0 +1,229 @@
+// 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.fluent.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionWithSystemData;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnections;
+
+public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class);
+
+ private final PrivateEndpointConnectionsClient innerClient;
+
+ private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;
+
+ public PrivateEndpointConnectionsImpl(
+ PrivateEndpointConnectionsClient innerClient,
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByWorkspace(
+ String resourceGroupName, String workspaceName) {
+ PagedIterable inner =
+ this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
+ return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByWorkspace(
+ String resourceGroupName, String workspaceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
+ return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
+ }
+
+ public Response getByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getByWorkspaceWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public PrivateEndpointConnectionWithSystemData getByWorkspace(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionWithSystemDataInner inner =
+ this.serviceClient().getByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName);
+ if (inner != null) {
+ return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) {
+ return this
+ .serviceClient()
+ .deleteByWorkspaceWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context);
+ }
+
+ public void deleteByWorkspace(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName) {
+ this.serviceClient().deleteByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName);
+ }
+
+ public Response updateByWorkspaceWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateByWorkspaceWithResponse(
+ resourceGroupName, workspaceName, privateEndpointConnectionName, connection, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public PrivateEndpointConnectionWithSystemData updateByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection) {
+ PrivateEndpointConnectionWithSystemDataInner inner =
+ this
+ .serviceClient()
+ .updateByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName, connection);
+ if (inner != null) {
+ return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByHostPool(
+ String resourceGroupName, String hostPoolName) {
+ PagedIterable inner =
+ this.serviceClient().listByHostPool(resourceGroupName, hostPoolName);
+ return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ PagedIterable inner =
+ this
+ .serviceClient()
+ .listByHostPool(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip, context);
+ return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
+ }
+
+ public Response getByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getByHostPoolWithResponse(resourceGroupName, hostPoolName, privateEndpointConnectionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public PrivateEndpointConnectionWithSystemData getByHostPool(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionWithSystemDataInner inner =
+ this.serviceClient().getByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName);
+ if (inner != null) {
+ return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context) {
+ return this
+ .serviceClient()
+ .deleteByHostPoolWithResponse(resourceGroupName, hostPoolName, privateEndpointConnectionName, context);
+ }
+
+ public void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName) {
+ this.serviceClient().deleteByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName);
+ }
+
+ public Response updateByHostPoolWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateByHostPoolWithResponse(
+ resourceGroupName, hostPoolName, privateEndpointConnectionName, connection, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public PrivateEndpointConnectionWithSystemData updateByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection) {
+ PrivateEndpointConnectionWithSystemDataInner inner =
+ this
+ .serviceClient()
+ .updateByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName, connection);
+ if (inner != null) {
+ return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private PrivateEndpointConnectionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourceImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourceImpl.java
new file mode 100644
index 000000000000..5719a5128e9e
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourceImpl.java
@@ -0,0 +1,65 @@
+// 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.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResource;
+import java.util.Collections;
+import java.util.List;
+
+public final class PrivateLinkResourceImpl implements PrivateLinkResource {
+ private PrivateLinkResourceInner innerObject;
+
+ private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;
+
+ PrivateLinkResourceImpl(
+ PrivateLinkResourceInner innerObject,
+ com.azure.resourcemanager.desktopvirtualization.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 groupId() {
+ return this.innerModel().groupId();
+ }
+
+ public List requiredMembers() {
+ List inner = this.innerModel().requiredMembers();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List requiredZoneNames() {
+ List inner = this.innerModel().requiredZoneNames();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public PrivateLinkResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourcesClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourcesClientImpl.java
new file mode 100644
index 000000000000..7900ce2c695b
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourcesClientImpl.java
@@ -0,0 +1,758 @@
+// 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.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.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.resourcemanager.desktopvirtualization.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResourceListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient {
+ /** The proxy service used to perform REST calls. */
+ private final PrivateLinkResourcesService service;
+
+ /** The service client containing this operation class. */
+ private final DesktopVirtualizationApiClientImpl client;
+
+ /**
+ * Initializes an instance of PrivateLinkResourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PrivateLinkResourcesClientImpl(DesktopVirtualizationApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DesktopVirtualizationApiClientPrivateLinkResources to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DesktopVirtualizatio")
+ public interface PrivateLinkResourcesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByWorkspace(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @QueryParam("pageSize") Integer pageSize,
+ @QueryParam("isDescending") Boolean isDescending,
+ @QueryParam("initialSkip") Integer initialSkip,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByHostPool(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("hostPoolName") String hostPoolName,
+ @QueryParam("pageSize") Integer pageSize,
+ @QueryParam("isDescending") Boolean isDescending,
+ @QueryParam("initialSkip") Integer initialSkip,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByWorkspaceNext(
+ @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> listByHostPoolNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceSinglePageAsync(
+ String resourceGroupName, String workspaceName, Integer pageSize, Boolean isDescending, Integer initialSkip) {
+ 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 (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByWorkspace(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ pageSize,
+ isDescending,
+ initialSkip,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceSinglePageAsync(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ 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 (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByWorkspace(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ pageSize,
+ isDescending,
+ initialSkip,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByWorkspaceAsync(
+ String resourceGroupName, String workspaceName, Integer pageSize, Boolean isDescending, Integer initialSkip) {
+ return new PagedFlux<>(
+ () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip),
+ nextLink -> listByWorkspaceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the private link resources available for this 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 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 list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) {
+ final Integer pageSize = null;
+ final Boolean isDescending = null;
+ final Integer initialSkip = null;
+ return new PagedFlux<>(
+ () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip),
+ nextLink -> listByWorkspaceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByWorkspaceAsync(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ return new PagedFlux<>(
+ () ->
+ listByWorkspaceSinglePageAsync(
+ resourceGroupName, workspaceName, pageSize, isDescending, initialSkip, context),
+ nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the private link resources available for this 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 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 list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
+ final Integer pageSize = null;
+ final Boolean isDescending = null;
+ final Integer initialSkip = null;
+ return new PagedIterable<>(
+ listByWorkspaceAsync(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip));
+ }
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ return new PagedIterable<>(
+ listByWorkspaceAsync(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip, context));
+ }
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolSinglePageAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip) {
+ 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 (hostPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter hostPoolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByHostPool(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ hostPoolName,
+ pageSize,
+ isDescending,
+ initialSkip,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolSinglePageAsync(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ 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 (hostPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter hostPoolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByHostPool(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ hostPoolName,
+ pageSize,
+ isDescending,
+ initialSkip,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByHostPoolAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip) {
+ return new PagedFlux<>(
+ () -> listByHostPoolSinglePageAsync(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip),
+ nextLink -> listByHostPoolNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the private link resources available for this 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 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 list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName) {
+ final Integer pageSize = null;
+ final Boolean isDescending = null;
+ final Integer initialSkip = null;
+ return new PagedFlux<>(
+ () -> listByHostPoolSinglePageAsync(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip),
+ nextLink -> listByHostPoolNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByHostPoolAsync(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ return new PagedFlux<>(
+ () ->
+ listByHostPoolSinglePageAsync(
+ resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip, context),
+ nextLink -> listByHostPoolNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the private link resources available for this 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 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 list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByHostPool(String resourceGroupName, String hostPoolName) {
+ final Integer pageSize = null;
+ final Boolean isDescending = null;
+ final Integer initialSkip = null;
+ return new PagedIterable<>(
+ listByHostPoolAsync(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip));
+ }
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 a list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ return new PagedIterable<>(
+ listByHostPoolAsync(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceNextSinglePageAsync(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.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByWorkspaceNextSinglePageAsync(
+ 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
+ .listByWorkspaceNext(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 URL to get the next list of items
+ * 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 a list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolNextSinglePageAsync(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.listByHostPoolNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 list of private link resources along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByHostPoolNextSinglePageAsync(
+ 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
+ .listByHostPoolNext(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/PrivateLinkResourcesImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourcesImpl.java
new file mode 100644
index 000000000000..bf1f3ace3c3a
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/PrivateLinkResourcesImpl.java
@@ -0,0 +1,76 @@
+// 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.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResource;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResources;
+
+public final class PrivateLinkResourcesImpl implements PrivateLinkResources {
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class);
+
+ private final PrivateLinkResourcesClient innerClient;
+
+ private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;
+
+ public PrivateLinkResourcesImpl(
+ PrivateLinkResourcesClient innerClient,
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
+ PagedIterable inner =
+ this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
+ return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ PagedIterable inner =
+ this
+ .serviceClient()
+ .listByWorkspace(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip, context);
+ return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByHostPool(String resourceGroupName, String hostPoolName) {
+ PagedIterable inner =
+ this.serviceClient().listByHostPool(resourceGroupName, hostPoolName);
+ return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context) {
+ PagedIterable inner =
+ this
+ .serviceClient()
+ .listByHostPool(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip, context);
+ return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
+ }
+
+ private PrivateLinkResourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/WorkspaceImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/WorkspaceImpl.java
index 40c3c915ac96..a8176e9298ae 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/WorkspaceImpl.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/WorkspaceImpl.java
@@ -8,6 +8,8 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku;
@@ -100,6 +102,19 @@ public Boolean cloudPcResource() {
return this.innerModel().cloudPcResource();
}
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerModel().publicNetworkAccess();
+ }
+
+ public List privateEndpointConnections() {
+ List inner = this.innerModel().privateEndpointConnections();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -287,6 +302,16 @@ public WorkspaceImpl withApplicationGroupReferences(List applicationGrou
}
}
+ public WorkspaceImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (isInCreateMode()) {
+ this.innerModel().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ } else {
+ this.updateWorkspace.withPublicNetworkAccess(publicNetworkAccess);
+ 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/models/Application.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Application.java
index c4065a3b7c51..56d9578bed4f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Application.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Application.java
@@ -160,11 +160,13 @@ interface Definition
DefinitionStages.WithCommandLineSetting,
DefinitionStages.WithCreate {
}
+
/** The Application definition stages. */
interface DefinitionStages {
/** The first stage of the Application definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the Application definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -176,6 +178,7 @@ interface WithParentResource {
*/
WithCommandLineSetting withExistingApplicationGroup(String resourceGroupName, String applicationGroupName);
}
+
/** The stage of the Application definition allowing to specify commandLineSetting. */
interface WithCommandLineSetting {
/**
@@ -190,6 +193,7 @@ interface WithCommandLineSetting {
*/
WithCreate withCommandLineSetting(CommandLineSetting commandLineSetting);
}
+
/**
* The stage of the Application definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
@@ -220,6 +224,7 @@ interface WithCreate
*/
Application create(Context context);
}
+
/** The stage of the Application definition allowing to specify description. */
interface WithDescription {
/**
@@ -230,6 +235,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the Application definition allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -240,6 +246,7 @@ interface WithFriendlyName {
*/
WithCreate withFriendlyName(String friendlyName);
}
+
/** The stage of the Application definition allowing to specify filePath. */
interface WithFilePath {
/**
@@ -250,6 +257,7 @@ interface WithFilePath {
*/
WithCreate withFilePath(String filePath);
}
+
/** The stage of the Application definition allowing to specify msixPackageFamilyName. */
interface WithMsixPackageFamilyName {
/**
@@ -260,6 +268,7 @@ interface WithMsixPackageFamilyName {
*/
WithCreate withMsixPackageFamilyName(String msixPackageFamilyName);
}
+
/** The stage of the Application definition allowing to specify msixPackageApplicationId. */
interface WithMsixPackageApplicationId {
/**
@@ -271,6 +280,7 @@ interface WithMsixPackageApplicationId {
*/
WithCreate withMsixPackageApplicationId(String msixPackageApplicationId);
}
+
/** The stage of the Application definition allowing to specify applicationType. */
interface WithApplicationType {
/**
@@ -281,6 +291,7 @@ interface WithApplicationType {
*/
WithCreate withApplicationType(RemoteApplicationType applicationType);
}
+
/** The stage of the Application definition allowing to specify commandLineArguments. */
interface WithCommandLineArguments {
/**
@@ -291,6 +302,7 @@ interface WithCommandLineArguments {
*/
WithCreate withCommandLineArguments(String commandLineArguments);
}
+
/** The stage of the Application definition allowing to specify showInPortal. */
interface WithShowInPortal {
/**
@@ -302,6 +314,7 @@ interface WithShowInPortal {
*/
WithCreate withShowInPortal(Boolean showInPortal);
}
+
/** The stage of the Application definition allowing to specify iconPath. */
interface WithIconPath {
/**
@@ -312,6 +325,7 @@ interface WithIconPath {
*/
WithCreate withIconPath(String iconPath);
}
+
/** The stage of the Application definition allowing to specify iconIndex. */
interface WithIconIndex {
/**
@@ -323,6 +337,7 @@ interface WithIconIndex {
WithCreate withIconIndex(Integer iconIndex);
}
}
+
/**
* Begins update for the Application resource.
*
@@ -359,6 +374,7 @@ interface Update
*/
Application apply(Context context);
}
+
/** The Application update stages. */
interface UpdateStages {
/** The stage of the Application update allowing to specify tags. */
@@ -371,6 +387,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Application update allowing to specify description. */
interface WithDescription {
/**
@@ -381,6 +398,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the Application update allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -391,6 +409,7 @@ interface WithFriendlyName {
*/
Update withFriendlyName(String friendlyName);
}
+
/** The stage of the Application update allowing to specify filePath. */
interface WithFilePath {
/**
@@ -401,6 +420,7 @@ interface WithFilePath {
*/
Update withFilePath(String filePath);
}
+
/** The stage of the Application update allowing to specify commandLineSetting. */
interface WithCommandLineSetting {
/**
@@ -415,6 +435,7 @@ interface WithCommandLineSetting {
*/
Update withCommandLineSetting(CommandLineSetting commandLineSetting);
}
+
/** The stage of the Application update allowing to specify commandLineArguments. */
interface WithCommandLineArguments {
/**
@@ -425,6 +446,7 @@ interface WithCommandLineArguments {
*/
Update withCommandLineArguments(String commandLineArguments);
}
+
/** The stage of the Application update allowing to specify showInPortal. */
interface WithShowInPortal {
/**
@@ -436,6 +458,7 @@ interface WithShowInPortal {
*/
Update withShowInPortal(Boolean showInPortal);
}
+
/** The stage of the Application update allowing to specify iconPath. */
interface WithIconPath {
/**
@@ -446,6 +469,7 @@ interface WithIconPath {
*/
Update withIconPath(String iconPath);
}
+
/** The stage of the Application update allowing to specify iconIndex. */
interface WithIconIndex {
/**
@@ -456,6 +480,7 @@ interface WithIconIndex {
*/
Update withIconIndex(Integer iconIndex);
}
+
/** The stage of the Application update allowing to specify msixPackageFamilyName. */
interface WithMsixPackageFamilyName {
/**
@@ -466,6 +491,7 @@ interface WithMsixPackageFamilyName {
*/
Update withMsixPackageFamilyName(String msixPackageFamilyName);
}
+
/** The stage of the Application update allowing to specify msixPackageApplicationId. */
interface WithMsixPackageApplicationId {
/**
@@ -477,6 +503,7 @@ interface WithMsixPackageApplicationId {
*/
Update withMsixPackageApplicationId(String msixPackageApplicationId);
}
+
/** The stage of the Application update allowing to specify applicationType. */
interface WithApplicationType {
/**
@@ -488,6 +515,7 @@ interface WithApplicationType {
Update withApplicationType(RemoteApplicationType applicationType);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ApplicationGroup.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ApplicationGroup.java
index a82821fda101..8cbb37cef85e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ApplicationGroup.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ApplicationGroup.java
@@ -189,11 +189,13 @@ interface Definition
DefinitionStages.WithApplicationGroupType,
DefinitionStages.WithCreate {
}
+
/** The ApplicationGroup definition stages. */
interface DefinitionStages {
/** The first stage of the ApplicationGroup definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the ApplicationGroup definition allowing to specify location. */
interface WithLocation {
/**
@@ -212,6 +214,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the ApplicationGroup definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -222,6 +225,7 @@ interface WithResourceGroup {
*/
WithHostPoolArmPath withExistingResourceGroup(String resourceGroupName);
}
+
/** The stage of the ApplicationGroup definition allowing to specify hostPoolArmPath. */
interface WithHostPoolArmPath {
/**
@@ -232,6 +236,7 @@ interface WithHostPoolArmPath {
*/
WithApplicationGroupType withHostPoolArmPath(String hostPoolArmPath);
}
+
/** The stage of the ApplicationGroup definition allowing to specify applicationGroupType. */
interface WithApplicationGroupType {
/**
@@ -242,6 +247,7 @@ interface WithApplicationGroupType {
*/
WithCreate withApplicationGroupType(ApplicationGroupType applicationGroupType);
}
+
/**
* The stage of the ApplicationGroup definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
@@ -270,6 +276,7 @@ interface WithCreate
*/
ApplicationGroup create(Context context);
}
+
/** The stage of the ApplicationGroup definition allowing to specify tags. */
interface WithTags {
/**
@@ -280,6 +287,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the ApplicationGroup definition allowing to specify managedBy. */
interface WithManagedBy {
/**
@@ -295,6 +303,7 @@ interface WithManagedBy {
*/
WithCreate withManagedBy(String managedBy);
}
+
/** The stage of the ApplicationGroup definition allowing to specify kind. */
interface WithKind {
/**
@@ -309,6 +318,7 @@ interface WithKind {
*/
WithCreate withKind(String kind);
}
+
/** The stage of the ApplicationGroup definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -319,6 +329,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ResourceModelWithAllowedPropertySetIdentity identity);
}
+
/** The stage of the ApplicationGroup definition allowing to specify sku. */
interface WithSku {
/**
@@ -329,6 +340,7 @@ interface WithSku {
*/
WithCreate withSku(ResourceModelWithAllowedPropertySetSku sku);
}
+
/** The stage of the ApplicationGroup definition allowing to specify plan. */
interface WithPlan {
/**
@@ -339,6 +351,7 @@ interface WithPlan {
*/
WithCreate withPlan(ResourceModelWithAllowedPropertySetPlan plan);
}
+
/** The stage of the ApplicationGroup definition allowing to specify description. */
interface WithDescription {
/**
@@ -349,6 +362,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the ApplicationGroup definition allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -360,6 +374,7 @@ interface WithFriendlyName {
WithCreate withFriendlyName(String friendlyName);
}
}
+
/**
* Begins update for the ApplicationGroup resource.
*
@@ -384,6 +399,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithDescription, Up
*/
ApplicationGroup apply(Context context);
}
+
/** The ApplicationGroup update stages. */
interface UpdateStages {
/** The stage of the ApplicationGroup update allowing to specify tags. */
@@ -396,6 +412,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the ApplicationGroup update allowing to specify description. */
interface WithDescription {
/**
@@ -406,6 +423,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the ApplicationGroup update allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -417,6 +435,7 @@ interface WithFriendlyName {
Update withFriendlyName(String friendlyName);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPool.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPool.java
index 01c3b5324d2d..2e2df0ffcb0b 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPool.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPool.java
@@ -248,6 +248,14 @@ public interface HostPool {
*/
Boolean cloudPcResource();
+ /**
+ * Gets the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
+ * networks, Disabled allows this resource to only be accessed via private endpoints.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ HostpoolPublicNetworkAccess publicNetworkAccess();
+
/**
* Gets the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
* component.
@@ -256,6 +264,14 @@ public interface HostPool {
*/
AgentUpdateProperties agentUpdate();
+ /**
+ * Gets the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
/**
* Gets the region of the resource.
*
@@ -294,11 +310,13 @@ interface Definition
DefinitionStages.WithPreferredAppGroupType,
DefinitionStages.WithCreate {
}
+
/** The HostPool definition stages. */
interface DefinitionStages {
/** The first stage of the HostPool definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the HostPool definition allowing to specify location. */
interface WithLocation {
/**
@@ -317,6 +335,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the HostPool definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -327,6 +346,7 @@ interface WithResourceGroup {
*/
WithHostPoolType withExistingResourceGroup(String resourceGroupName);
}
+
/** The stage of the HostPool definition allowing to specify hostPoolType. */
interface WithHostPoolType {
/**
@@ -337,6 +357,7 @@ interface WithHostPoolType {
*/
WithLoadBalancerType withHostPoolType(HostPoolType hostPoolType);
}
+
/** The stage of the HostPool definition allowing to specify loadBalancerType. */
interface WithLoadBalancerType {
/**
@@ -347,6 +368,7 @@ interface WithLoadBalancerType {
*/
WithPreferredAppGroupType withLoadBalancerType(LoadBalancerType loadBalancerType);
}
+
/** The stage of the HostPool definition allowing to specify preferredAppGroupType. */
interface WithPreferredAppGroupType {
/**
@@ -359,6 +381,7 @@ interface WithPreferredAppGroupType {
*/
WithCreate withPreferredAppGroupType(PreferredAppGroupType preferredAppGroupType);
}
+
/**
* The stage of the HostPool definition which contains all the minimum required properties for the resource to
* be created, but also allows for any other optional properties to be specified.
@@ -384,6 +407,7 @@ interface WithCreate
DefinitionStages.WithSsoClientSecretKeyVaultPath,
DefinitionStages.WithSsoSecretType,
DefinitionStages.WithStartVMOnConnect,
+ DefinitionStages.WithPublicNetworkAccess,
DefinitionStages.WithAgentUpdate {
/**
* Executes the create request.
@@ -400,6 +424,7 @@ interface WithCreate
*/
HostPool create(Context context);
}
+
/** The stage of the HostPool definition allowing to specify tags. */
interface WithTags {
/**
@@ -410,6 +435,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the HostPool definition allowing to specify managedBy. */
interface WithManagedBy {
/**
@@ -425,6 +451,7 @@ interface WithManagedBy {
*/
WithCreate withManagedBy(String managedBy);
}
+
/** The stage of the HostPool definition allowing to specify kind. */
interface WithKind {
/**
@@ -439,6 +466,7 @@ interface WithKind {
*/
WithCreate withKind(String kind);
}
+
/** The stage of the HostPool definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -449,6 +477,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ResourceModelWithAllowedPropertySetIdentity identity);
}
+
/** The stage of the HostPool definition allowing to specify sku. */
interface WithSku {
/**
@@ -459,6 +488,7 @@ interface WithSku {
*/
WithCreate withSku(ResourceModelWithAllowedPropertySetSku sku);
}
+
/** The stage of the HostPool definition allowing to specify plan. */
interface WithPlan {
/**
@@ -469,6 +499,7 @@ interface WithPlan {
*/
WithCreate withPlan(ResourceModelWithAllowedPropertySetPlan plan);
}
+
/** The stage of the HostPool definition allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -479,6 +510,7 @@ interface WithFriendlyName {
*/
WithCreate withFriendlyName(String friendlyName);
}
+
/** The stage of the HostPool definition allowing to specify description. */
interface WithDescription {
/**
@@ -489,6 +521,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the HostPool definition allowing to specify personalDesktopAssignmentType. */
interface WithPersonalDesktopAssignmentType {
/**
@@ -499,6 +532,7 @@ interface WithPersonalDesktopAssignmentType {
*/
WithCreate withPersonalDesktopAssignmentType(PersonalDesktopAssignmentType personalDesktopAssignmentType);
}
+
/** The stage of the HostPool definition allowing to specify customRdpProperty. */
interface WithCustomRdpProperty {
/**
@@ -509,6 +543,7 @@ interface WithCustomRdpProperty {
*/
WithCreate withCustomRdpProperty(String customRdpProperty);
}
+
/** The stage of the HostPool definition allowing to specify maxSessionLimit. */
interface WithMaxSessionLimit {
/**
@@ -519,6 +554,7 @@ interface WithMaxSessionLimit {
*/
WithCreate withMaxSessionLimit(Integer maxSessionLimit);
}
+
/** The stage of the HostPool definition allowing to specify ring. */
interface WithRing {
/**
@@ -529,6 +565,7 @@ interface WithRing {
*/
WithCreate withRing(Integer ring);
}
+
/** The stage of the HostPool definition allowing to specify validationEnvironment. */
interface WithValidationEnvironment {
/**
@@ -539,6 +576,7 @@ interface WithValidationEnvironment {
*/
WithCreate withValidationEnvironment(Boolean validationEnvironment);
}
+
/** The stage of the HostPool definition allowing to specify registrationInfo. */
interface WithRegistrationInfo {
/**
@@ -549,6 +587,7 @@ interface WithRegistrationInfo {
*/
WithCreate withRegistrationInfo(RegistrationInfoInner registrationInfo);
}
+
/** The stage of the HostPool definition allowing to specify vmTemplate. */
interface WithVmTemplate {
/**
@@ -559,6 +598,7 @@ interface WithVmTemplate {
*/
WithCreate withVmTemplate(String vmTemplate);
}
+
/** The stage of the HostPool definition allowing to specify ssoadfsAuthority. */
interface WithSsoadfsAuthority {
/**
@@ -569,6 +609,7 @@ interface WithSsoadfsAuthority {
*/
WithCreate withSsoadfsAuthority(String ssoadfsAuthority);
}
+
/** The stage of the HostPool definition allowing to specify ssoClientId. */
interface WithSsoClientId {
/**
@@ -580,6 +621,7 @@ interface WithSsoClientId {
*/
WithCreate withSsoClientId(String ssoClientId);
}
+
/** The stage of the HostPool definition allowing to specify ssoClientSecretKeyVaultPath. */
interface WithSsoClientSecretKeyVaultPath {
/**
@@ -592,6 +634,7 @@ interface WithSsoClientSecretKeyVaultPath {
*/
WithCreate withSsoClientSecretKeyVaultPath(String ssoClientSecretKeyVaultPath);
}
+
/** The stage of the HostPool definition allowing to specify ssoSecretType. */
interface WithSsoSecretType {
/**
@@ -602,6 +645,7 @@ interface WithSsoSecretType {
*/
WithCreate withSsoSecretType(SsoSecretType ssoSecretType);
}
+
/** The stage of the HostPool definition allowing to specify startVMOnConnect. */
interface WithStartVMOnConnect {
/**
@@ -612,6 +656,20 @@ interface WithStartVMOnConnect {
*/
WithCreate withStartVMOnConnect(Boolean startVMOnConnect);
}
+
+ /** The stage of the HostPool definition allowing to specify publicNetworkAccess. */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies the publicNetworkAccess property: Enabled allows this resource to be accessed from both public
+ * and private networks, Disabled allows this resource to only be accessed via private endpoints.
+ *
+ * @param publicNetworkAccess Enabled allows this resource to be accessed from both public and private
+ * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * @return the next definition stage.
+ */
+ WithCreate withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess);
+ }
+
/** The stage of the HostPool definition allowing to specify agentUpdate. */
interface WithAgentUpdate {
/**
@@ -625,6 +683,7 @@ interface WithAgentUpdate {
WithCreate withAgentUpdate(AgentUpdateProperties agentUpdate);
}
}
+
/**
* Begins update for the HostPool resource.
*
@@ -651,6 +710,7 @@ interface Update
UpdateStages.WithSsoSecretType,
UpdateStages.WithPreferredAppGroupType,
UpdateStages.WithStartVMOnConnect,
+ UpdateStages.WithPublicNetworkAccess,
UpdateStages.WithAgentUpdate {
/**
* Executes the update request.
@@ -667,6 +727,7 @@ interface Update
*/
HostPool apply(Context context);
}
+
/** The HostPool update stages. */
interface UpdateStages {
/** The stage of the HostPool update allowing to specify tags. */
@@ -679,6 +740,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the HostPool update allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -689,6 +751,7 @@ interface WithFriendlyName {
*/
Update withFriendlyName(String friendlyName);
}
+
/** The stage of the HostPool update allowing to specify description. */
interface WithDescription {
/**
@@ -699,6 +762,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the HostPool update allowing to specify customRdpProperty. */
interface WithCustomRdpProperty {
/**
@@ -709,6 +773,7 @@ interface WithCustomRdpProperty {
*/
Update withCustomRdpProperty(String customRdpProperty);
}
+
/** The stage of the HostPool update allowing to specify maxSessionLimit. */
interface WithMaxSessionLimit {
/**
@@ -719,6 +784,7 @@ interface WithMaxSessionLimit {
*/
Update withMaxSessionLimit(Integer maxSessionLimit);
}
+
/** The stage of the HostPool update allowing to specify personalDesktopAssignmentType. */
interface WithPersonalDesktopAssignmentType {
/**
@@ -729,6 +795,7 @@ interface WithPersonalDesktopAssignmentType {
*/
Update withPersonalDesktopAssignmentType(PersonalDesktopAssignmentType personalDesktopAssignmentType);
}
+
/** The stage of the HostPool update allowing to specify loadBalancerType. */
interface WithLoadBalancerType {
/**
@@ -739,6 +806,7 @@ interface WithLoadBalancerType {
*/
Update withLoadBalancerType(LoadBalancerType loadBalancerType);
}
+
/** The stage of the HostPool update allowing to specify ring. */
interface WithRing {
/**
@@ -749,6 +817,7 @@ interface WithRing {
*/
Update withRing(Integer ring);
}
+
/** The stage of the HostPool update allowing to specify validationEnvironment. */
interface WithValidationEnvironment {
/**
@@ -759,6 +828,7 @@ interface WithValidationEnvironment {
*/
Update withValidationEnvironment(Boolean validationEnvironment);
}
+
/** The stage of the HostPool update allowing to specify registrationInfo. */
interface WithRegistrationInfo {
/**
@@ -769,6 +839,7 @@ interface WithRegistrationInfo {
*/
Update withRegistrationInfo(RegistrationInfoPatch registrationInfo);
}
+
/** The stage of the HostPool update allowing to specify vmTemplate. */
interface WithVmTemplate {
/**
@@ -779,6 +850,7 @@ interface WithVmTemplate {
*/
Update withVmTemplate(String vmTemplate);
}
+
/** The stage of the HostPool update allowing to specify ssoadfsAuthority. */
interface WithSsoadfsAuthority {
/**
@@ -789,6 +861,7 @@ interface WithSsoadfsAuthority {
*/
Update withSsoadfsAuthority(String ssoadfsAuthority);
}
+
/** The stage of the HostPool update allowing to specify ssoClientId. */
interface WithSsoClientId {
/**
@@ -800,6 +873,7 @@ interface WithSsoClientId {
*/
Update withSsoClientId(String ssoClientId);
}
+
/** The stage of the HostPool update allowing to specify ssoClientSecretKeyVaultPath. */
interface WithSsoClientSecretKeyVaultPath {
/**
@@ -812,6 +886,7 @@ interface WithSsoClientSecretKeyVaultPath {
*/
Update withSsoClientSecretKeyVaultPath(String ssoClientSecretKeyVaultPath);
}
+
/** The stage of the HostPool update allowing to specify ssoSecretType. */
interface WithSsoSecretType {
/**
@@ -822,6 +897,7 @@ interface WithSsoSecretType {
*/
Update withSsoSecretType(SsoSecretType ssoSecretType);
}
+
/** The stage of the HostPool update allowing to specify preferredAppGroupType. */
interface WithPreferredAppGroupType {
/**
@@ -834,6 +910,7 @@ interface WithPreferredAppGroupType {
*/
Update withPreferredAppGroupType(PreferredAppGroupType preferredAppGroupType);
}
+
/** The stage of the HostPool update allowing to specify startVMOnConnect. */
interface WithStartVMOnConnect {
/**
@@ -844,6 +921,19 @@ interface WithStartVMOnConnect {
*/
Update withStartVMOnConnect(Boolean startVMOnConnect);
}
+
+ /** The stage of the HostPool update allowing to specify publicNetworkAccess. */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies the publicNetworkAccess property: Enabled to allow this resource to be access from the public
+ * network.
+ *
+ * @param publicNetworkAccess Enabled to allow this resource to be access from the public network.
+ * @return the next definition stage.
+ */
+ Update withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess);
+ }
+
/** The stage of the HostPool update allowing to specify agentUpdate. */
interface WithAgentUpdate {
/**
@@ -857,6 +947,7 @@ interface WithAgentUpdate {
Update withAgentUpdate(AgentUpdatePatchProperties agentUpdate);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolPatch.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolPatch.java
index 275d159a9302..3732c02ff16f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolPatch.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolPatch.java
@@ -433,6 +433,29 @@ public HostPoolPatch withStartVMOnConnect(Boolean startVMOnConnect) {
return this;
}
+ /**
+ * Get the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public HostpoolPublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the HostPoolPatch object itself.
+ */
+ public HostPoolPatch withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HostPoolPatchProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
/**
* Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
* component.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolProperties.java
index 64e474a78172..e93b31ff7770 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostPoolProperties.java
@@ -151,6 +151,14 @@ public interface HostPoolProperties {
*/
Boolean cloudPcResource();
+ /**
+ * Gets the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
+ * networks, Disabled allows this resource to only be accessed via private endpoints.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ HostpoolPublicNetworkAccess publicNetworkAccess();
+
/**
* Gets the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
* component.
@@ -159,6 +167,14 @@ public interface HostPoolProperties {
*/
AgentUpdateProperties agentUpdate();
+ /**
+ * Gets the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
/**
* Gets the inner com.azure.resourcemanager.desktopvirtualization.fluent.models.HostPoolPropertiesInner object.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostpoolPublicNetworkAccess.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostpoolPublicNetworkAccess.java
new file mode 100644
index 000000000000..57801eb24489
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/HostpoolPublicNetworkAccess.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to
+ * only be accessed via private endpoints.
+ */
+public final class HostpoolPublicNetworkAccess extends ExpandableStringEnum {
+ /** Static value Enabled for HostpoolPublicNetworkAccess. */
+ public static final HostpoolPublicNetworkAccess ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for HostpoolPublicNetworkAccess. */
+ public static final HostpoolPublicNetworkAccess DISABLED = fromString("Disabled");
+
+ /** Static value EnabledForSessionHostsOnly for HostpoolPublicNetworkAccess. */
+ public static final HostpoolPublicNetworkAccess ENABLED_FOR_SESSION_HOSTS_ONLY =
+ fromString("EnabledForSessionHostsOnly");
+
+ /** Static value EnabledForClientsOnly for HostpoolPublicNetworkAccess. */
+ public static final HostpoolPublicNetworkAccess ENABLED_FOR_CLIENTS_ONLY = fromString("EnabledForClientsOnly");
+
+ /**
+ * Creates a new instance of HostpoolPublicNetworkAccess value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public HostpoolPublicNetworkAccess() {
+ }
+
+ /**
+ * Creates or finds a HostpoolPublicNetworkAccess from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding HostpoolPublicNetworkAccess.
+ */
+ @JsonCreator
+ public static HostpoolPublicNetworkAccess fromString(String name) {
+ return fromString(name, HostpoolPublicNetworkAccess.class);
+ }
+
+ /**
+ * Gets known HostpoolPublicNetworkAccess values.
+ *
+ * @return known HostpoolPublicNetworkAccess values.
+ */
+ public static Collection values() {
+ return values(HostpoolPublicNetworkAccess.class);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/MsixPackage.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/MsixPackage.java
index b156407a4abc..e86c10a6d0e5 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/MsixPackage.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/MsixPackage.java
@@ -136,11 +136,13 @@ public interface MsixPackage {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The MsixPackage definition stages. */
interface DefinitionStages {
/** The first stage of the MsixPackage definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the MsixPackage definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -152,6 +154,7 @@ interface WithParentResource {
*/
WithCreate withExistingHostPool(String resourceGroupName, String hostPoolName);
}
+
/**
* The stage of the MsixPackage definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
@@ -183,6 +186,7 @@ interface WithCreate
*/
MsixPackage create(Context context);
}
+
/** The stage of the MsixPackage definition allowing to specify imagePath. */
interface WithImagePath {
/**
@@ -193,6 +197,7 @@ interface WithImagePath {
*/
WithCreate withImagePath(String imagePath);
}
+
/** The stage of the MsixPackage definition allowing to specify packageName. */
interface WithPackageName {
/**
@@ -203,6 +208,7 @@ interface WithPackageName {
*/
WithCreate withPackageName(String packageName);
}
+
/** The stage of the MsixPackage definition allowing to specify packageFamilyName. */
interface WithPackageFamilyName {
/**
@@ -215,6 +221,7 @@ interface WithPackageFamilyName {
*/
WithCreate withPackageFamilyName(String packageFamilyName);
}
+
/** The stage of the MsixPackage definition allowing to specify displayName. */
interface WithDisplayName {
/**
@@ -225,6 +232,7 @@ interface WithDisplayName {
*/
WithCreate withDisplayName(String displayName);
}
+
/** The stage of the MsixPackage definition allowing to specify packageRelativePath. */
interface WithPackageRelativePath {
/**
@@ -235,6 +243,7 @@ interface WithPackageRelativePath {
*/
WithCreate withPackageRelativePath(String packageRelativePath);
}
+
/** The stage of the MsixPackage definition allowing to specify isRegularRegistration. */
interface WithIsRegularRegistration {
/**
@@ -245,6 +254,7 @@ interface WithIsRegularRegistration {
*/
WithCreate withIsRegularRegistration(Boolean isRegularRegistration);
}
+
/** The stage of the MsixPackage definition allowing to specify isActive. */
interface WithIsActive {
/**
@@ -255,6 +265,7 @@ interface WithIsActive {
*/
WithCreate withIsActive(Boolean isActive);
}
+
/** The stage of the MsixPackage definition allowing to specify packageDependencies. */
interface WithPackageDependencies {
/**
@@ -265,6 +276,7 @@ interface WithPackageDependencies {
*/
WithCreate withPackageDependencies(List packageDependencies);
}
+
/** The stage of the MsixPackage definition allowing to specify version. */
interface WithVersion {
/**
@@ -275,6 +287,7 @@ interface WithVersion {
*/
WithCreate withVersion(String version);
}
+
/** The stage of the MsixPackage definition allowing to specify lastUpdated. */
interface WithLastUpdated {
/**
@@ -285,6 +298,7 @@ interface WithLastUpdated {
*/
WithCreate withLastUpdated(OffsetDateTime lastUpdated);
}
+
/** The stage of the MsixPackage definition allowing to specify packageApplications. */
interface WithPackageApplications {
/**
@@ -296,6 +310,7 @@ interface WithPackageApplications {
WithCreate withPackageApplications(List packageApplications);
}
}
+
/**
* Begins update for the MsixPackage resource.
*
@@ -321,6 +336,7 @@ interface Update
*/
MsixPackage apply(Context context);
}
+
/** The MsixPackage update stages. */
interface UpdateStages {
/** The stage of the MsixPackage update allowing to specify isActive. */
@@ -333,6 +349,7 @@ interface WithIsActive {
*/
Update withIsActive(Boolean isActive);
}
+
/** The stage of the MsixPackage update allowing to specify isRegularRegistration. */
interface WithIsRegularRegistration {
/**
@@ -343,6 +360,7 @@ interface WithIsRegularRegistration {
*/
Update withIsRegularRegistration(Boolean isRegularRegistration);
}
+
/** The stage of the MsixPackage update allowing to specify displayName. */
interface WithDisplayName {
/**
@@ -354,6 +372,7 @@ interface WithDisplayName {
Update withDisplayName(String displayName);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpoint.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpoint.java
new file mode 100644
index 000000000000..f05bf19fa1b7
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpoint.java
@@ -0,0 +1,39 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Private Endpoint resource. */
+@Immutable
+public final class PrivateEndpoint {
+ /*
+ * The ARM identifier for Private Endpoint
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /** Creates an instance of PrivateEndpoint class. */
+ public PrivateEndpoint() {
+ }
+
+ /**
+ * Get the id property: The ARM identifier for Private Endpoint.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * 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/models/PrivateEndpointConnection.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnection.java
new file mode 100644
index 000000000000..40f1ca1cd7b7
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnection.java
@@ -0,0 +1,102 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Private Endpoint Connection resource. */
+@Fluent
+public class PrivateEndpointConnection extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /** Creates an instance of PrivateEndpointConnection class. */
+ public PrivateEndpointConnection() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnection object itself.
+ */
+ public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnection object itself.
+ */
+ public PrivateEndpointConnection withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionListResultWithSystemData.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionListResultWithSystemData.java
new file mode 100644
index 000000000000..482663f331fb
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionListResultWithSystemData.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of private endpoint connection associated with the specified storage account. */
+@Fluent
+public final class PrivateEndpointConnectionListResultWithSystemData {
+ /*
+ * Array of private endpoint connections
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * Link to the next page of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of PrivateEndpointConnectionListResultWithSystemData class. */
+ public PrivateEndpointConnectionListResultWithSystemData() {
+ }
+
+ /**
+ * Get the value property: Array of private endpoint connections.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private endpoint connections.
+ *
+ * @param value the value value to set.
+ * @return the PrivateEndpointConnectionListResultWithSystemData object itself.
+ */
+ public PrivateEndpointConnectionListResultWithSystemData 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/models/PrivateEndpointConnectionProvisioningState.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionProvisioningState.java
new file mode 100644
index 000000000000..5df9c31ab572
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionProvisioningState.java
@@ -0,0 +1,54 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** The current provisioning state. */
+public final class PrivateEndpointConnectionProvisioningState
+ extends ExpandableStringEnum {
+ /** Static value Succeeded for PrivateEndpointConnectionProvisioningState. */
+ public static final PrivateEndpointConnectionProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Creating for PrivateEndpointConnectionProvisioningState. */
+ public static final PrivateEndpointConnectionProvisioningState CREATING = fromString("Creating");
+
+ /** Static value Deleting for PrivateEndpointConnectionProvisioningState. */
+ public static final PrivateEndpointConnectionProvisioningState DELETING = fromString("Deleting");
+
+ /** Static value Failed for PrivateEndpointConnectionProvisioningState. */
+ public static final PrivateEndpointConnectionProvisioningState FAILED = fromString("Failed");
+
+ /**
+ * Creates a new instance of PrivateEndpointConnectionProvisioningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PrivateEndpointConnectionProvisioningState() {
+ }
+
+ /**
+ * Creates or finds a PrivateEndpointConnectionProvisioningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PrivateEndpointConnectionProvisioningState.
+ */
+ @JsonCreator
+ public static PrivateEndpointConnectionProvisioningState fromString(String name) {
+ return fromString(name, PrivateEndpointConnectionProvisioningState.class);
+ }
+
+ /**
+ * Gets known PrivateEndpointConnectionProvisioningState values.
+ *
+ * @return known PrivateEndpointConnectionProvisioningState values.
+ */
+ public static Collection values() {
+ return values(PrivateEndpointConnectionProvisioningState.class);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionWithSystemData.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionWithSystemData.java
new file mode 100644
index 000000000000..0ae6d5ef7e2e
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnectionWithSystemData.java
@@ -0,0 +1,70 @@
+// 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.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
+
+/** An immutable client-side representation of PrivateEndpointConnectionWithSystemData. */
+public interface PrivateEndpointConnectionWithSystemData {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ PrivateEndpoint privateEndpoint();
+
+ /**
+ * Gets the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState();
+
+ /**
+ * Gets the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ PrivateEndpointConnectionProvisioningState provisioningState();
+
+ /**
+ * Gets the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the inner
+ * com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ PrivateEndpointConnectionWithSystemDataInner innerModel();
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnections.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnections.java
new file mode 100644
index 000000000000..e2fad3ebdb73
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointConnections.java
@@ -0,0 +1,278 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of PrivateEndpointConnections. */
+public interface PrivateEndpointConnections {
+ /**
+ * List private endpoint connections.
+ *
+ * @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 list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ PagedIterable listByWorkspace(
+ String resourceGroupName, String workspaceName);
+
+ /**
+ * List private endpoint connections.
+ *
+ * @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 list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ PagedIterable listByWorkspace(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Get a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 private endpoint connection along with {@link Response}.
+ */
+ Response getByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Get a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 private endpoint connection.
+ */
+ PrivateEndpointConnectionWithSystemData getByWorkspace(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+
+ /**
+ * Remove a connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 {@link Response}.
+ */
+ Response deleteByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Remove a connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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.
+ */
+ void deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+
+ /**
+ * Approve or reject a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param connection Object containing the updated connection.
+ * @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 Private Endpoint Connection resource along with {@link Response}.
+ */
+ Response updateByWorkspaceWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection,
+ Context context);
+
+ /**
+ * Approve or reject a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param connection Object containing the updated connection.
+ * @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 Private Endpoint Connection resource.
+ */
+ PrivateEndpointConnectionWithSystemData updateByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection);
+
+ /**
+ * List private endpoint connections 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 private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ PagedIterable listByHostPool(
+ String resourceGroupName, String hostPoolName);
+
+ /**
+ * List private endpoint connections 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
+
+ /**
+ * Get a private endpoint connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 private endpoint connection along with {@link Response}.
+ */
+ Response getByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Get a private endpoint connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 private endpoint connection.
+ */
+ PrivateEndpointConnectionWithSystemData getByHostPool(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+
+ /**
+ * Remove a connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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 {@link Response}.
+ */
+ Response deleteByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Remove a connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @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.
+ */
+ void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+
+ /**
+ * Approve or reject a private endpoint connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param connection Object containing the updated connection.
+ * @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 Private Endpoint Connection resource along with {@link Response}.
+ */
+ Response updateByHostPoolWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection,
+ Context context);
+
+ /**
+ * Approve or reject a private endpoint connection.
+ *
+ * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param connection Object containing the updated connection.
+ * @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 Private Endpoint Connection resource.
+ */
+ PrivateEndpointConnectionWithSystemData updateByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnection connection);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointServiceConnectionStatus.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointServiceConnectionStatus.java
new file mode 100644
index 000000000000..0dc90042b176
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateEndpointServiceConnectionStatus.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** The private endpoint connection status. */
+public final class PrivateEndpointServiceConnectionStatus
+ extends ExpandableStringEnum {
+ /** Static value Pending for PrivateEndpointServiceConnectionStatus. */
+ public static final PrivateEndpointServiceConnectionStatus PENDING = fromString("Pending");
+
+ /** Static value Approved for PrivateEndpointServiceConnectionStatus. */
+ public static final PrivateEndpointServiceConnectionStatus APPROVED = fromString("Approved");
+
+ /** Static value Rejected for PrivateEndpointServiceConnectionStatus. */
+ public static final PrivateEndpointServiceConnectionStatus REJECTED = fromString("Rejected");
+
+ /**
+ * Creates a new instance of PrivateEndpointServiceConnectionStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PrivateEndpointServiceConnectionStatus() {
+ }
+
+ /**
+ * Creates or finds a PrivateEndpointServiceConnectionStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PrivateEndpointServiceConnectionStatus.
+ */
+ @JsonCreator
+ public static PrivateEndpointServiceConnectionStatus fromString(String name) {
+ return fromString(name, PrivateEndpointServiceConnectionStatus.class);
+ }
+
+ /**
+ * Gets known PrivateEndpointServiceConnectionStatus values.
+ *
+ * @return known PrivateEndpointServiceConnectionStatus values.
+ */
+ public static Collection values() {
+ return values(PrivateEndpointServiceConnectionStatus.class);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResource.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResource.java
new file mode 100644
index 000000000000..33100e2656b9
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResource.java
@@ -0,0 +1,60 @@
+// 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.models;
+
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
+import java.util.List;
+
+/** An immutable client-side representation of PrivateLinkResource. */
+public interface PrivateLinkResource {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ String groupId();
+
+ /**
+ * Gets the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ List requiredMembers();
+
+ /**
+ * Gets the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ List requiredZoneNames();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner object.
+ *
+ * @return the inner object.
+ */
+ PrivateLinkResourceInner innerModel();
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResourceListResult.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResourceListResult.java
new file mode 100644
index 000000000000..24165f968933
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResourceListResult.java
@@ -0,0 +1,70 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class PrivateLinkResourceListResult {
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * Link to the next page of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of PrivateLinkResourceListResult class. */
+ public PrivateLinkResourceListResult() {
+ }
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResult object itself.
+ */
+ public PrivateLinkResourceListResult 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/models/PrivateLinkResources.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResources.java
new file mode 100644
index 000000000000..c80034b42a09
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkResources.java
@@ -0,0 +1,79 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+
+/** Resource collection API of PrivateLinkResources. */
+public interface PrivateLinkResources {
+ /**
+ * List the private link resources available for this 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 list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+
+ /**
+ * List the private link resources available for this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
+
+ /**
+ * List the private link resources available for this 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 a list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
+
+ /**
+ * List the private link resources available for this 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkServiceConnectionState.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkServiceConnectionState.java
new file mode 100644
index 000000000000..8c448bf0dcdd
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PrivateLinkServiceConnectionState.java
@@ -0,0 +1,106 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A collection of information about the state of the connection between service consumer and provider. */
+@Fluent
+public final class PrivateLinkServiceConnectionState {
+ /*
+ * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
+ */
+ @JsonProperty(value = "status")
+ private PrivateEndpointServiceConnectionStatus status;
+
+ /*
+ * The reason for approval/rejection of the connection.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * A message indicating if changes on the service provider require any updates on the consumer.
+ */
+ @JsonProperty(value = "actionsRequired")
+ private String actionsRequired;
+
+ /** Creates an instance of PrivateLinkServiceConnectionState class. */
+ public PrivateLinkServiceConnectionState() {
+ }
+
+ /**
+ * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
+ * service.
+ *
+ * @return the status value.
+ */
+ public PrivateEndpointServiceConnectionStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
+ * service.
+ *
+ * @param status the status value to set.
+ * @return the PrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateLinkServiceConnectionState withStatus(PrivateEndpointServiceConnectionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the description property: The reason for approval/rejection of the connection.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The reason for approval/rejection of the connection.
+ *
+ * @param description the description value to set.
+ * @return the PrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateLinkServiceConnectionState withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the actionsRequired property: A message indicating if changes on the service provider require any updates on
+ * the consumer.
+ *
+ * @return the actionsRequired value.
+ */
+ public String actionsRequired() {
+ return this.actionsRequired;
+ }
+
+ /**
+ * Set the actionsRequired property: A message indicating if changes on the service provider require any updates on
+ * the consumer.
+ *
+ * @param actionsRequired the actionsRequired value to set.
+ * @return the PrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
+ this.actionsRequired = actionsRequired;
+ 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/models/PublicNetworkAccess.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PublicNetworkAccess.java
new file mode 100644
index 000000000000..40edec9b3e16
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/PublicNetworkAccess.java
@@ -0,0 +1,50 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to
+ * only be accessed via private endpoints.
+ */
+public final class PublicNetworkAccess extends ExpandableStringEnum {
+ /** Static value Enabled for PublicNetworkAccess. */
+ public static final PublicNetworkAccess ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for PublicNetworkAccess. */
+ public static final PublicNetworkAccess DISABLED = fromString("Disabled");
+
+ /**
+ * Creates a new instance of PublicNetworkAccess value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PublicNetworkAccess() {
+ }
+
+ /**
+ * Creates or finds a PublicNetworkAccess from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PublicNetworkAccess.
+ */
+ @JsonCreator
+ public static PublicNetworkAccess fromString(String name) {
+ return fromString(name, PublicNetworkAccess.class);
+ }
+
+ /**
+ * Gets known PublicNetworkAccess values.
+ *
+ * @return known PublicNetworkAccess values.
+ */
+ public static Collection values() {
+ return values(PublicNetworkAccess.class);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlan.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlan.java
index f20d464d6df4..8077031ca64a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlan.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlan.java
@@ -196,11 +196,13 @@ interface Definition
DefinitionStages.WithTimeZone,
DefinitionStages.WithCreate {
}
+
/** The ScalingPlan definition stages. */
interface DefinitionStages {
/** The first stage of the ScalingPlan definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the ScalingPlan definition allowing to specify location. */
interface WithLocation {
/**
@@ -219,6 +221,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the ScalingPlan definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -229,6 +232,7 @@ interface WithResourceGroup {
*/
WithTimeZone withExistingResourceGroup(String resourceGroupName);
}
+
/** The stage of the ScalingPlan definition allowing to specify timeZone. */
interface WithTimeZone {
/**
@@ -239,6 +243,7 @@ interface WithTimeZone {
*/
WithCreate withTimeZone(String timeZone);
}
+
/**
* The stage of the ScalingPlan definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
@@ -271,6 +276,7 @@ interface WithCreate
*/
ScalingPlan create(Context context);
}
+
/** The stage of the ScalingPlan definition allowing to specify tags. */
interface WithTags {
/**
@@ -281,6 +287,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the ScalingPlan definition allowing to specify managedBy. */
interface WithManagedBy {
/**
@@ -296,6 +303,7 @@ interface WithManagedBy {
*/
WithCreate withManagedBy(String managedBy);
}
+
/** The stage of the ScalingPlan definition allowing to specify kind. */
interface WithKind {
/**
@@ -310,6 +318,7 @@ interface WithKind {
*/
WithCreate withKind(String kind);
}
+
/** The stage of the ScalingPlan definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -320,6 +329,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ResourceModelWithAllowedPropertySetIdentity identity);
}
+
/** The stage of the ScalingPlan definition allowing to specify sku. */
interface WithSku {
/**
@@ -330,6 +340,7 @@ interface WithSku {
*/
WithCreate withSku(ResourceModelWithAllowedPropertySetSku sku);
}
+
/** The stage of the ScalingPlan definition allowing to specify plan. */
interface WithPlan {
/**
@@ -340,6 +351,7 @@ interface WithPlan {
*/
WithCreate withPlan(ResourceModelWithAllowedPropertySetPlan plan);
}
+
/** The stage of the ScalingPlan definition allowing to specify description. */
interface WithDescription {
/**
@@ -350,6 +362,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the ScalingPlan definition allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -360,6 +373,7 @@ interface WithFriendlyName {
*/
WithCreate withFriendlyName(String friendlyName);
}
+
/** The stage of the ScalingPlan definition allowing to specify hostPoolType. */
interface WithHostPoolType {
/**
@@ -370,6 +384,7 @@ interface WithHostPoolType {
*/
WithCreate withHostPoolType(ScalingHostPoolType hostPoolType);
}
+
/** The stage of the ScalingPlan definition allowing to specify exclusionTag. */
interface WithExclusionTag {
/**
@@ -380,6 +395,7 @@ interface WithExclusionTag {
*/
WithCreate withExclusionTag(String exclusionTag);
}
+
/** The stage of the ScalingPlan definition allowing to specify schedules. */
interface WithSchedules {
/**
@@ -390,6 +406,7 @@ interface WithSchedules {
*/
WithCreate withSchedules(List schedules);
}
+
/** The stage of the ScalingPlan definition allowing to specify hostPoolReferences. */
interface WithHostPoolReferences {
/**
@@ -401,6 +418,7 @@ interface WithHostPoolReferences {
WithCreate withHostPoolReferences(List hostPoolReferences);
}
}
+
/**
* Begins update for the ScalingPlan resource.
*
@@ -432,6 +450,7 @@ interface Update
*/
ScalingPlan apply(Context context);
}
+
/** The ScalingPlan update stages. */
interface UpdateStages {
/** The stage of the ScalingPlan update allowing to specify tags. */
@@ -444,6 +463,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the ScalingPlan update allowing to specify description. */
interface WithDescription {
/**
@@ -454,6 +474,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the ScalingPlan update allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -464,6 +485,7 @@ interface WithFriendlyName {
*/
Update withFriendlyName(String friendlyName);
}
+
/** The stage of the ScalingPlan update allowing to specify timeZone. */
interface WithTimeZone {
/**
@@ -474,6 +496,7 @@ interface WithTimeZone {
*/
Update withTimeZone(String timeZone);
}
+
/** The stage of the ScalingPlan update allowing to specify exclusionTag. */
interface WithExclusionTag {
/**
@@ -484,6 +507,7 @@ interface WithExclusionTag {
*/
Update withExclusionTag(String exclusionTag);
}
+
/** The stage of the ScalingPlan update allowing to specify schedules. */
interface WithSchedules {
/**
@@ -494,6 +518,7 @@ interface WithSchedules {
*/
Update withSchedules(List schedules);
}
+
/** The stage of the ScalingPlan update allowing to specify hostPoolReferences. */
interface WithHostPoolReferences {
/**
@@ -505,6 +530,7 @@ interface WithHostPoolReferences {
Update withHostPoolReferences(List hostPoolReferences);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlanPooledSchedule.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlanPooledSchedule.java
index 9501a7780c9a..9217dd0d945f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlanPooledSchedule.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/ScalingPlanPooledSchedule.java
@@ -177,11 +177,13 @@ public interface ScalingPlanPooledSchedule {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The ScalingPlanPooledSchedule definition stages. */
interface DefinitionStages {
/** The first stage of the ScalingPlanPooledSchedule definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -193,6 +195,7 @@ interface WithParentResource {
*/
WithCreate withExistingScalingPlan(String resourceGroupName, String scalingPlanName);
}
+
/**
* The stage of the ScalingPlanPooledSchedule definition which contains all the minimum required properties for
* the resource to be created, but also allows for any other optional properties to be specified.
@@ -230,6 +233,7 @@ interface WithCreate
*/
ScalingPlanPooledSchedule create(Context context);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify daysOfWeek. */
interface WithDaysOfWeek {
/**
@@ -240,6 +244,7 @@ interface WithDaysOfWeek {
*/
WithCreate withDaysOfWeek(List daysOfWeek);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampUpStartTime. */
interface WithRampUpStartTime {
/**
@@ -250,6 +255,7 @@ interface WithRampUpStartTime {
*/
WithCreate withRampUpStartTime(Time rampUpStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampUpLoadBalancingAlgorithm. */
interface WithRampUpLoadBalancingAlgorithm {
/**
@@ -260,6 +266,7 @@ interface WithRampUpLoadBalancingAlgorithm {
*/
WithCreate withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampUpMinimumHostsPct. */
interface WithRampUpMinimumHostsPct {
/**
@@ -270,6 +277,7 @@ interface WithRampUpMinimumHostsPct {
*/
WithCreate withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampUpCapacityThresholdPct. */
interface WithRampUpCapacityThresholdPct {
/**
@@ -280,6 +288,7 @@ interface WithRampUpCapacityThresholdPct {
*/
WithCreate withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify peakStartTime. */
interface WithPeakStartTime {
/**
@@ -290,6 +299,7 @@ interface WithPeakStartTime {
*/
WithCreate withPeakStartTime(Time peakStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify peakLoadBalancingAlgorithm. */
interface WithPeakLoadBalancingAlgorithm {
/**
@@ -300,6 +310,7 @@ interface WithPeakLoadBalancingAlgorithm {
*/
WithCreate withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownStartTime. */
interface WithRampDownStartTime {
/**
@@ -310,6 +321,7 @@ interface WithRampDownStartTime {
*/
WithCreate withRampDownStartTime(Time rampDownStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownLoadBalancingAlgorithm. */
interface WithRampDownLoadBalancingAlgorithm {
/**
@@ -321,6 +333,7 @@ interface WithRampDownLoadBalancingAlgorithm {
WithCreate withRampDownLoadBalancingAlgorithm(
SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownMinimumHostsPct. */
interface WithRampDownMinimumHostsPct {
/**
@@ -331,6 +344,7 @@ interface WithRampDownMinimumHostsPct {
*/
WithCreate withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownCapacityThresholdPct. */
interface WithRampDownCapacityThresholdPct {
/**
@@ -341,6 +355,7 @@ interface WithRampDownCapacityThresholdPct {
*/
WithCreate withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownForceLogoffUsers. */
interface WithRampDownForceLogoffUsers {
/**
@@ -351,6 +366,7 @@ interface WithRampDownForceLogoffUsers {
*/
WithCreate withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownStopHostsWhen. */
interface WithRampDownStopHostsWhen {
/**
@@ -361,6 +377,7 @@ interface WithRampDownStopHostsWhen {
*/
WithCreate withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownWaitTimeMinutes. */
interface WithRampDownWaitTimeMinutes {
/**
@@ -372,6 +389,7 @@ interface WithRampDownWaitTimeMinutes {
*/
WithCreate withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify rampDownNotificationMessage. */
interface WithRampDownNotificationMessage {
/**
@@ -383,6 +401,7 @@ interface WithRampDownNotificationMessage {
*/
WithCreate withRampDownNotificationMessage(String rampDownNotificationMessage);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify offPeakStartTime. */
interface WithOffPeakStartTime {
/**
@@ -393,6 +412,7 @@ interface WithOffPeakStartTime {
*/
WithCreate withOffPeakStartTime(Time offPeakStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule definition allowing to specify offPeakLoadBalancingAlgorithm. */
interface WithOffPeakLoadBalancingAlgorithm {
/**
@@ -405,6 +425,7 @@ WithCreate withOffPeakLoadBalancingAlgorithm(
SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm);
}
}
+
/**
* Begins update for the ScalingPlanPooledSchedule resource.
*
@@ -446,6 +467,7 @@ interface Update
*/
ScalingPlanPooledSchedule apply(Context context);
}
+
/** The ScalingPlanPooledSchedule update stages. */
interface UpdateStages {
/** The stage of the ScalingPlanPooledSchedule update allowing to specify daysOfWeek. */
@@ -458,6 +480,7 @@ interface WithDaysOfWeek {
*/
Update withDaysOfWeek(List daysOfWeek);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampUpStartTime. */
interface WithRampUpStartTime {
/**
@@ -468,6 +491,7 @@ interface WithRampUpStartTime {
*/
Update withRampUpStartTime(Time rampUpStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampUpLoadBalancingAlgorithm. */
interface WithRampUpLoadBalancingAlgorithm {
/**
@@ -478,6 +502,7 @@ interface WithRampUpLoadBalancingAlgorithm {
*/
Update withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampUpMinimumHostsPct. */
interface WithRampUpMinimumHostsPct {
/**
@@ -488,6 +513,7 @@ interface WithRampUpMinimumHostsPct {
*/
Update withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampUpCapacityThresholdPct. */
interface WithRampUpCapacityThresholdPct {
/**
@@ -498,6 +524,7 @@ interface WithRampUpCapacityThresholdPct {
*/
Update withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify peakStartTime. */
interface WithPeakStartTime {
/**
@@ -508,6 +535,7 @@ interface WithPeakStartTime {
*/
Update withPeakStartTime(Time peakStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify peakLoadBalancingAlgorithm. */
interface WithPeakLoadBalancingAlgorithm {
/**
@@ -518,6 +546,7 @@ interface WithPeakLoadBalancingAlgorithm {
*/
Update withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownStartTime. */
interface WithRampDownStartTime {
/**
@@ -528,6 +557,7 @@ interface WithRampDownStartTime {
*/
Update withRampDownStartTime(Time rampDownStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownLoadBalancingAlgorithm. */
interface WithRampDownLoadBalancingAlgorithm {
/**
@@ -538,6 +568,7 @@ interface WithRampDownLoadBalancingAlgorithm {
*/
Update withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownMinimumHostsPct. */
interface WithRampDownMinimumHostsPct {
/**
@@ -548,6 +579,7 @@ interface WithRampDownMinimumHostsPct {
*/
Update withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownCapacityThresholdPct. */
interface WithRampDownCapacityThresholdPct {
/**
@@ -558,6 +590,7 @@ interface WithRampDownCapacityThresholdPct {
*/
Update withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownForceLogoffUsers. */
interface WithRampDownForceLogoffUsers {
/**
@@ -568,6 +601,7 @@ interface WithRampDownForceLogoffUsers {
*/
Update withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownStopHostsWhen. */
interface WithRampDownStopHostsWhen {
/**
@@ -578,6 +612,7 @@ interface WithRampDownStopHostsWhen {
*/
Update withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownWaitTimeMinutes. */
interface WithRampDownWaitTimeMinutes {
/**
@@ -589,6 +624,7 @@ interface WithRampDownWaitTimeMinutes {
*/
Update withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify rampDownNotificationMessage. */
interface WithRampDownNotificationMessage {
/**
@@ -600,6 +636,7 @@ interface WithRampDownNotificationMessage {
*/
Update withRampDownNotificationMessage(String rampDownNotificationMessage);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify offPeakStartTime. */
interface WithOffPeakStartTime {
/**
@@ -610,6 +647,7 @@ interface WithOffPeakStartTime {
*/
Update withOffPeakStartTime(Time offPeakStartTime);
}
+
/** The stage of the ScalingPlanPooledSchedule update allowing to specify offPeakLoadBalancingAlgorithm. */
interface WithOffPeakLoadBalancingAlgorithm {
/**
@@ -621,6 +659,7 @@ interface WithOffPeakLoadBalancingAlgorithm {
Update withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Workspace.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Workspace.java
index c677cc2358ad..ed77248a8288 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Workspace.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/Workspace.java
@@ -139,6 +139,22 @@ public interface Workspace {
*/
Boolean cloudPcResource();
+ /**
+ * Gets the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
+ * networks, Disabled allows this resource to only be accessed via private endpoints.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ PublicNetworkAccess publicNetworkAccess();
+
+ /**
+ * Gets the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
/**
* Gets the region of the resource.
*
@@ -174,11 +190,13 @@ interface Definition
DefinitionStages.WithResourceGroup,
DefinitionStages.WithCreate {
}
+
/** The Workspace definition stages. */
interface DefinitionStages {
/** The first stage of the Workspace definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the Workspace definition allowing to specify location. */
interface WithLocation {
/**
@@ -197,6 +215,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the Workspace definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -207,6 +226,7 @@ interface WithResourceGroup {
*/
WithCreate withExistingResourceGroup(String resourceGroupName);
}
+
/**
* The stage of the Workspace definition which contains all the minimum required properties for the resource to
* be created, but also allows for any other optional properties to be specified.
@@ -220,7 +240,8 @@ interface WithCreate
DefinitionStages.WithPlan,
DefinitionStages.WithDescription,
DefinitionStages.WithFriendlyName,
- DefinitionStages.WithApplicationGroupReferences {
+ DefinitionStages.WithApplicationGroupReferences,
+ DefinitionStages.WithPublicNetworkAccess {
/**
* Executes the create request.
*
@@ -236,6 +257,7 @@ interface WithCreate
*/
Workspace create(Context context);
}
+
/** The stage of the Workspace definition allowing to specify tags. */
interface WithTags {
/**
@@ -246,6 +268,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the Workspace definition allowing to specify managedBy. */
interface WithManagedBy {
/**
@@ -261,6 +284,7 @@ interface WithManagedBy {
*/
WithCreate withManagedBy(String managedBy);
}
+
/** The stage of the Workspace definition allowing to specify kind. */
interface WithKind {
/**
@@ -275,6 +299,7 @@ interface WithKind {
*/
WithCreate withKind(String kind);
}
+
/** The stage of the Workspace definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -285,6 +310,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ResourceModelWithAllowedPropertySetIdentity identity);
}
+
/** The stage of the Workspace definition allowing to specify sku. */
interface WithSku {
/**
@@ -295,6 +321,7 @@ interface WithSku {
*/
WithCreate withSku(ResourceModelWithAllowedPropertySetSku sku);
}
+
/** The stage of the Workspace definition allowing to specify plan. */
interface WithPlan {
/**
@@ -305,6 +332,7 @@ interface WithPlan {
*/
WithCreate withPlan(ResourceModelWithAllowedPropertySetPlan plan);
}
+
/** The stage of the Workspace definition allowing to specify description. */
interface WithDescription {
/**
@@ -315,6 +343,7 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+
/** The stage of the Workspace definition allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -325,6 +354,7 @@ interface WithFriendlyName {
*/
WithCreate withFriendlyName(String friendlyName);
}
+
/** The stage of the Workspace definition allowing to specify applicationGroupReferences. */
interface WithApplicationGroupReferences {
/**
@@ -335,7 +365,21 @@ interface WithApplicationGroupReferences {
*/
WithCreate withApplicationGroupReferences(List applicationGroupReferences);
}
+
+ /** The stage of the Workspace definition allowing to specify publicNetworkAccess. */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies the publicNetworkAccess property: Enabled allows this resource to be accessed from both public
+ * and private networks, Disabled allows this resource to only be accessed via private endpoints.
+ *
+ * @param publicNetworkAccess Enabled allows this resource to be accessed from both public and private
+ * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * @return the next definition stage.
+ */
+ WithCreate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess);
+ }
}
+
/**
* Begins update for the Workspace resource.
*
@@ -348,7 +392,8 @@ interface Update
extends UpdateStages.WithTags,
UpdateStages.WithDescription,
UpdateStages.WithFriendlyName,
- UpdateStages.WithApplicationGroupReferences {
+ UpdateStages.WithApplicationGroupReferences,
+ UpdateStages.WithPublicNetworkAccess {
/**
* Executes the update request.
*
@@ -364,6 +409,7 @@ interface Update
*/
Workspace apply(Context context);
}
+
/** The Workspace update stages. */
interface UpdateStages {
/** The stage of the Workspace update allowing to specify tags. */
@@ -376,6 +422,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Workspace update allowing to specify description. */
interface WithDescription {
/**
@@ -386,6 +433,7 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+
/** The stage of the Workspace update allowing to specify friendlyName. */
interface WithFriendlyName {
/**
@@ -396,6 +444,7 @@ interface WithFriendlyName {
*/
Update withFriendlyName(String friendlyName);
}
+
/** The stage of the Workspace update allowing to specify applicationGroupReferences. */
interface WithApplicationGroupReferences {
/**
@@ -406,7 +455,20 @@ interface WithApplicationGroupReferences {
*/
Update withApplicationGroupReferences(List applicationGroupReferences);
}
+
+ /** The stage of the Workspace update allowing to specify publicNetworkAccess. */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies the publicNetworkAccess property: Enabled to allow this resource to be access from the public
+ * network.
+ *
+ * @param publicNetworkAccess Enabled to allow this resource to be access from the public network.
+ * @return the next definition stage.
+ */
+ Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess);
+ }
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/WorkspacePatch.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/WorkspacePatch.java
index d988b3eebbb7..a2c2849e2ee5 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/WorkspacePatch.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/models/WorkspacePatch.java
@@ -129,6 +129,29 @@ public WorkspacePatch withApplicationGroupReferences(List applicationGro
return this;
}
+ /**
+ * Get the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the WorkspacePatch object itself.
+ */
+ public WorkspacePatch withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePatchProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsCreateOrUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsCreateOrUpdateSamples.java
index 7a36e5613a07..83d6cd1c306e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsCreateOrUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ApplicationGroups CreateOrUpdate. */
public final class ApplicationGroupsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_Create.json
*/
/**
* Sample code: ApplicationGroup_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteSamples.java
index 70c5ea381503..318d176d3200 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ApplicationGroups Delete. */
public final class ApplicationGroupsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_Delete.json
*/
/**
* Sample code: ApplicationGroup_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsGetByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsGetByResourceGroupSamples.java
index 07e3b0dbf61f..d6758b3d9a5e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsGetByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ApplicationGroups GetByResourceGroup. */
public final class ApplicationGroupsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_Get.json
*/
/**
* Sample code: ApplicationGroup_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListByResourceGroupSamples.java
index e2130b177ad2..329e101fdd71 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ApplicationGroups ListByResourceGroup. */
public final class ApplicationGroupsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_ListByResourceGroup.json
*/
/**
* Sample code: ApplicationGroup_ListByResourceGroup.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListSamples.java
index 80bc5356968a..bea2761aae25 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ApplicationGroups List. */
public final class ApplicationGroupsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_ListBySubscription.json
*/
/**
* Sample code: ApplicationGroup_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsUpdateSamples.java
index f81396d63e0e..58f7eed62f7c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ApplicationGroups Update. */
public final class ApplicationGroupsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ApplicationGroup_Update.json
*/
/**
* Sample code: ApplicationGroups_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateSamples.java
index d89fd6612123..c49bdbcd02ea 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Applications CreateOrUpdate. */
public final class ApplicationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Application_Create.json
*/
/**
* Sample code: Application_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteSamples.java
index 61810f9ccfff..1c3019a06000 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Applications Delete. */
public final class ApplicationsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Application_Delete.json
*/
/**
* Sample code: Application_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetSamples.java
index 47a9dad93829..11f6057c29a8 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for Applications Get. */
public final class ApplicationsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Application_Get.json
*/
/**
* Sample code: Application_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListSamples.java
index dd402a3e014e..7bed866e5e04 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Applications List. */
public final class ApplicationsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Application_List.json
*/
/**
* Sample code: Applications_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsUpdateSamples.java
index 1870cdd81d78..4db3d1e96a19 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for Applications Update. */
public final class ApplicationsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Application_Update.json
*/
/**
* Sample code: Application_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetSamples.java
index 3082294bcfba..769a59bcd7cb 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for Desktops Get. */
public final class DesktopsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Desktop_Get.json
*/
/**
* Sample code: Desktop_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListSamples.java
index 228e4c898336..d8b5da6b87d6 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Desktops List. */
public final class DesktopsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Desktop_List.json
*/
/**
* Sample code: Desktop_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateSamples.java
index a287f91e8aa3..a59c4bd024b5 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Desktops Update. */
public final class DesktopsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Desktop_Update.json
*/
/**
* Sample code: Desktop_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsCreateOrUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsCreateOrUpdateSamples.java
index 27e47d22b18f..2a7428f531aa 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsCreateOrUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsCreateOrUpdateSamples.java
@@ -23,7 +23,7 @@
/** Samples for HostPools CreateOrUpdate. */
public final class HostPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_Create.json
*/
/**
* Sample code: HostPool_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteSamples.java
index 2235f1729325..f25f6fce116d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for HostPools Delete. */
public final class HostPoolsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_Delete.json
*/
/**
* Sample code: HostPool_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsGetByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsGetByResourceGroupSamples.java
index a74776e01265..f9b730aa3417 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsGetByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for HostPools GetByResourceGroup. */
public final class HostPoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_Get.json
*/
/**
* Sample code: HostPool_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListByResourceGroupSamples.java
index 291ea6f0d375..ede7091acefd 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for HostPools ListByResourceGroup. */
public final class HostPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_ListByResourceGroup.json
*/
/**
* Sample code: HostPool_ListByResourceGroup.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListSamples.java
index 735e2ef67382..f5c5bb95ad23 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for HostPools List. */
public final class HostPoolsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_List.json
*/
/**
* Sample code: HostPool_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsRetrieveRegistrationTokenSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsRetrieveRegistrationTokenSamples.java
index 1de75748b4bd..ef996844be6c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsRetrieveRegistrationTokenSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsRetrieveRegistrationTokenSamples.java
@@ -7,7 +7,7 @@
/** Samples for HostPools RetrieveRegistrationToken. */
public final class HostPoolsRetrieveRegistrationTokenSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPools_RetrieveRegistrationToken_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPools_RetrieveRegistrationToken_Post.json
*/
/**
* Sample code: HostPools_RetrieveRegistrationToken_Post.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsUpdateSamples.java
index 8faa0a5d1422..6c83a3da87cd 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsUpdateSamples.java
@@ -22,7 +22,7 @@
/** Samples for HostPools Update. */
public final class HostPoolsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/HostPool_Update.json
*/
/**
* Sample code: HostPool_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandSamples.java
index 1f1580af8167..e15cc06c40e2 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandSamples.java
@@ -9,7 +9,7 @@
/** Samples for MsixImages Expand. */
public final class MsixImagesExpandSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixImage_Expand_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixImage_Expand_Post.json
*/
/**
* Sample code: MsixImage_Expand.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateSamples.java
index f27a689b3bc0..307a2c68365a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateSamples.java
@@ -12,7 +12,7 @@
/** Samples for MsixPackages CreateOrUpdate. */
public final class MsixPackagesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixPackage_Create.json
*/
/**
* Sample code: MSIXPackage_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesDeleteSamples.java
index 6740f8f1cda2..68354a506997 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for MsixPackages Delete. */
public final class MsixPackagesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixPackage_Delete.json
*/
/**
* Sample code: MSIXPackage_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesGetSamples.java
index 2c51759c920c..2bf26083cff0 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for MsixPackages Get. */
public final class MsixPackagesGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixPackage_Get.json
*/
/**
* Sample code: MSIXPackage_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesListSamples.java
index fcdd0a2a98eb..58ff0fd515d6 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for MsixPackages List. */
public final class MsixPackagesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixPackage_List.json
*/
/**
* Sample code: MSIXPackage_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesUpdateSamples.java
index fa1146c8d460..715713a5788d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for MsixPackages Update. */
public final class MsixPackagesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/MsixPackage_Update.json
*/
/**
* Sample code: MSIXPackage_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/OperationsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/OperationsListSamples.java
index 6d10d184fe91..3ff7d3cf0a28 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/OperationsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/OperationsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/OperationDescription_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/OperationDescription_List.json
*/
/**
* Sample code: OperationDescription_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByHostPoolSamples.java
new file mode 100644
index 000000000000..0e3eac8fdb41
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByHostPoolSamples.java
@@ -0,0 +1,27 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections DeleteByHostPool. */
+public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_DeleteByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionDeleteByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .deleteByHostPoolWithResponse(
+ "resourceGroup1",
+ "hostPool1",
+ "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByWorkspaceSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByWorkspaceSamples.java
new file mode 100644
index 000000000000..6851fd766ef3
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsDeleteByWorkspaceSamples.java
@@ -0,0 +1,27 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections DeleteByWorkspace. */
+public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_DeleteByWorkspace.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionDeleteByWorkspace(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .deleteByWorkspaceWithResponse(
+ "resourceGroup1",
+ "workspace1",
+ "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByHostPoolSamples.java
new file mode 100644
index 000000000000..0824c674e172
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByHostPoolSamples.java
@@ -0,0 +1,27 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections GetByHostPool. */
+public final class PrivateEndpointConnectionsGetByHostPoolSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_GetByHostPool.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_GetByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionGetByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getByHostPoolWithResponse(
+ "resourceGroup1",
+ "hostPool1",
+ "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByWorkspaceSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByWorkspaceSamples.java
new file mode 100644
index 000000000000..adc4a06c87fc
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsGetByWorkspaceSamples.java
@@ -0,0 +1,27 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections GetByWorkspace. */
+public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_GetByWorkspace.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionGetByWorkspace(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getByWorkspaceWithResponse(
+ "resourceGroup1",
+ "workspace1",
+ "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByHostPoolSamples.java
new file mode 100644
index 000000000000..cbb70fa4a935
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByHostPoolSamples.java
@@ -0,0 +1,23 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections ListByHostPool. */
+public final class PrivateEndpointConnectionsListByHostPoolSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_ListByHostPool.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_ListByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionListByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByHostPool("resourceGroup1", "hostPool1", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByWorkspaceSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByWorkspaceSamples.java
new file mode 100644
index 000000000000..6df976d5557b
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsListByWorkspaceSamples.java
@@ -0,0 +1,23 @@
+// 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.generated;
+
+/** Samples for PrivateEndpointConnections ListByWorkspace. */
+public final class PrivateEndpointConnectionsListByWorkspaceSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_ListByWorkspace.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionListByWorkspace(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByWorkspace("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByHostPoolSamples.java
new file mode 100644
index 000000000000..34f418eff36f
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByHostPoolSamples.java
@@ -0,0 +1,37 @@
+// 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.generated;
+
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections UpdateByHostPool. */
+public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_UpdateByHostPool.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_UpdateByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionUpdateByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .updateByHostPoolWithResponse(
+ "resourceGroup1",
+ "hostPool1",
+ "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ new PrivateEndpointConnection()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Approved by admin@consoto.com")
+ .withActionsRequired("None")),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByWorkspaceSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByWorkspaceSamples.java
new file mode 100644
index 000000000000..fdb1de54e003
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateEndpointConnectionsUpdateByWorkspaceSamples.java
@@ -0,0 +1,37 @@
+// 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.generated;
+
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections UpdateByWorkspace. */
+public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_UpdateByWorkspace.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnection_UpdateByWorkspace.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateEndpointConnectionUpdateByWorkspace(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateEndpointConnections()
+ .updateByWorkspaceWithResponse(
+ "resourceGroup1",
+ "workspace1",
+ "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ new PrivateEndpointConnection()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Approved by admin@consoto.com")
+ .withActionsRequired("None")),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByHostPoolSamples.java
new file mode 100644
index 000000000000..eefe315deb5f
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByHostPoolSamples.java
@@ -0,0 +1,23 @@
+// 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.generated;
+
+/** Samples for PrivateLinkResources ListByHostPool. */
+public final class PrivateLinkResourcesListByHostPoolSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateLinkResources_ListByHostPool.json
+ */
+ /**
+ * Sample code: PrivateLinkResources_ListByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateLinkResourcesListByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateLinkResources()
+ .listByHostPool("resourceGroup1", "hostPool1", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByWorkspaceSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByWorkspaceSamples.java
new file mode 100644
index 000000000000..18d0c0e3839a
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/PrivateLinkResourcesListByWorkspaceSamples.java
@@ -0,0 +1,23 @@
+// 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.generated;
+
+/** Samples for PrivateLinkResources ListByWorkspace. */
+public final class PrivateLinkResourcesListByWorkspaceSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateLinkResources_ListByWorkspace.json
+ */
+ /**
+ * Sample code: PrivateLinkResources_ListByWorkspace.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void privateLinkResourcesListByWorkspace(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .privateLinkResources()
+ .listByWorkspace("resourceGroup1", "workspace1", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesCreateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesCreateSamples.java
index ff2ce6542572..f10aeec23079 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesCreateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesCreateSamples.java
@@ -12,7 +12,7 @@
/** Samples for ScalingPlanPooledSchedules Create. */
public final class ScalingPlanPooledSchedulesCreateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Create.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesDeleteSamples.java
index 898435dd9654..8cee68873c0c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlanPooledSchedules Delete. */
public final class ScalingPlanPooledSchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Delete.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesGetSamples.java
index 6f84a2b549e6..8c497fd46b3e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlanPooledSchedules Get. */
public final class ScalingPlanPooledSchedulesGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Get.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesListSamples.java
index abf613205fb8..65490a1cbbfb 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlanPooledSchedules List. */
public final class ScalingPlanPooledSchedulesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_List.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesUpdateSamples.java
index 51d238daf9d1..d67ea8102103 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlanPooledSchedulesUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for ScalingPlanPooledSchedules Update. */
public final class ScalingPlanPooledSchedulesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Update.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansCreateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansCreateSamples.java
index 874de8aea6cf..fde61759282c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansCreateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansCreateSamples.java
@@ -17,7 +17,7 @@
/** Samples for ScalingPlans Create. */
public final class ScalingPlansCreateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_Create.json
*/
/**
* Sample code: ScalingPlans_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansDeleteSamples.java
index 2574d3b1a3c8..9b17dd4003f2 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlans Delete. */
public final class ScalingPlansDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_Delete.json
*/
/**
* Sample code: ScalingPlans_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansGetByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansGetByResourceGroupSamples.java
index b73f65f80243..e655728a3c58 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansGetByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlans GetByResourceGroup. */
public final class ScalingPlansGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_Get.json
*/
/**
* Sample code: ScalingPlans_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByHostPoolSamples.java
index 78163b31a73d..90590c909c29 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByHostPoolSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByHostPoolSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlans ListByHostPool. */
public final class ScalingPlansListByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_ListByHostPool.json
*/
/**
* Sample code: ScalingPlan_ListByHostPool.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByResourceGroupSamples.java
index 971c5a6e5bcd..bd9279dd667d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlans ListByResourceGroup. */
public final class ScalingPlansListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_ListByResourceGroup.json
*/
/**
* Sample code: ScalingPlans_ListByResourceGroup.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListSamples.java
index 16ec4d7f442b..4b84c48c451f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ScalingPlans List. */
public final class ScalingPlansListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_ListBySubscription.json
*/
/**
* Sample code: ScalingPlans_ListBySubscription.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansUpdateSamples.java
index cf4a3370137e..92db2166b57d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/ScalingPlansUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for ScalingPlans Update. */
public final class ScalingPlansUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlan_Update.json
*/
/**
* Sample code: ScalingPlans_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsDeleteSamples.java
index 146c79713094..b5966b2130f7 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for SessionHosts Delete. */
public final class SessionHostsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/SessionHost_Delete.json
*/
/**
* Sample code: SessionHost_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsGetSamples.java
index f57d9a2dd0c2..e1f0241e3412 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for SessionHosts Get. */
public final class SessionHostsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/SessionHost_Get.json
*/
/**
* Sample code: SessionHost_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsListSamples.java
index 24348df1abe3..cb0a2d848766 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for SessionHosts List. */
public final class SessionHostsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/SessionHost_List.json
*/
/**
* Sample code: SessionHost_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsUpdateSamples.java
index 7c3630219a7e..add2791f5395 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/SessionHostsUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for SessionHosts Update. */
public final class SessionHostsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/SessionHost_Update.json
*/
/**
* Sample code: SessionHost_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/StartMenuItemsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/StartMenuItemsListSamples.java
index 0204984d67e1..3173b718fcf3 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/StartMenuItemsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/StartMenuItemsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for StartMenuItems List. */
public final class StartMenuItemsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/StartMenuItem_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/StartMenuItem_List.json
*/
/**
* Sample code: StartMenuItem_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDeleteSamples.java
index c0b857c3b636..98920e43b323 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for UserSessions Delete. */
public final class UserSessionsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_Delete.json
*/
/**
* Sample code: UserSession_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDisconnectSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDisconnectSamples.java
index 274ca21bd3df..fca19e27c62d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDisconnectSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsDisconnectSamples.java
@@ -7,7 +7,7 @@
/** Samples for UserSessions Disconnect. */
public final class UserSessionsDisconnectSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Disconnect_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_Disconnect_Post.json
*/
/**
* Sample code: UserSession_Disconnect_Post.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsGetSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsGetSamples.java
index 1f33a5f72bda..2ff7700aec70 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsGetSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for UserSessions Get. */
public final class UserSessionsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_Get.json
*/
/**
* Sample code: UserSession_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListByHostPoolSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListByHostPoolSamples.java
index cf06a9b68bb1..d27c092ae84c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListByHostPoolSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListByHostPoolSamples.java
@@ -7,7 +7,7 @@
/** Samples for UserSessions ListByHostPool. */
public final class UserSessionsListByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_ListByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_ListByHostPool.json
*/
/**
* Sample code: UserSession_ListByHostPool.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListSamples.java
index ec22025963b8..ac6648044238 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for UserSessions List. */
public final class UserSessionsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_List.json
*/
/**
* Sample code: UserSession_List.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsSendMessageSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsSendMessageSamples.java
index 413a075ad1ad..c3537cb13f56 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsSendMessageSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/UserSessionsSendMessageSamples.java
@@ -9,7 +9,7 @@
/** Samples for UserSessions SendMessage. */
public final class UserSessionsSendMessageSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_SendMessage_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/UserSession_SendMessage_Post.json
*/
/**
* Sample code: UserSession_SendMessage_Post.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesCreateOrUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesCreateOrUpdateSamples.java
index 1c396aa30454..035ad1292fe9 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesCreateOrUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_Create.json
*/
/**
* Sample code: Workspace_Create.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesDeleteSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesDeleteSamples.java
index b05e8dc3c490..e2de7ca56d66 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesDeleteSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Workspaces Delete. */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_Delete.json
*/
/**
* Sample code: Workspace_Delete.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesGetByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesGetByResourceGroupSamples.java
index 582b3f22d863..d768e66d26f7 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesGetByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for Workspaces GetByResourceGroup. */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_Get.json
*/
/**
* Sample code: Workspace_Get.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListByResourceGroupSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListByResourceGroupSamples.java
index a86c72cbb7bc..1fe3721ac5ee 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListByResourceGroupSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for Workspaces ListByResourceGroup. */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_ListByResourceGroup.json
*/
/**
* Sample code: Workspace_ListByResourceGroup.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListSamples.java
index cc16f8de6bdc..694e2fbffaf3 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Workspaces List. */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_ListBySubscription.json
*/
/**
* Sample code: Workspace_ListBySubscription.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesUpdateSamples.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesUpdateSamples.java
index d5d6925f440e..283f8e01fd91 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesUpdateSamples.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/samples/java/com/azure/resourcemanager/desktopvirtualization/generated/WorkspacesUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for Workspaces Update. */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/Workspace_Update.json
*/
/**
* Sample code: Workspace_Update.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePatchPropertiesTests.java
deleted file mode 100644
index cfbd9449fb73..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePatchPropertiesTests.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
-import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowPatchProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AgentUpdatePatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AgentUpdatePatchProperties model =
- BinaryData
- .fromString(
- "{\"type\":\"Default\",\"useSessionHostLocalTime\":false,\"maintenanceWindowTimeZone\":\"ocmbqfqvmkcxoza\",\"maintenanceWindows\":[{\"hour\":2066979028,\"dayOfWeek\":\"Thursday\"},{\"hour\":1663002651,\"dayOfWeek\":\"Friday\"},{\"hour\":1689859600,\"dayOfWeek\":\"Tuesday\"}]}")
- .toObject(AgentUpdatePatchProperties.class);
- Assertions.assertEquals(SessionHostComponentUpdateType.DEFAULT, model.type());
- Assertions.assertEquals(false, model.useSessionHostLocalTime());
- Assertions.assertEquals("ocmbqfqvmkcxoza", model.maintenanceWindowTimeZone());
- Assertions.assertEquals(2066979028, model.maintenanceWindows().get(0).hour());
- Assertions.assertEquals(DayOfWeek.THURSDAY, model.maintenanceWindows().get(0).dayOfWeek());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AgentUpdatePatchProperties model =
- new AgentUpdatePatchProperties()
- .withType(SessionHostComponentUpdateType.DEFAULT)
- .withUseSessionHostLocalTime(false)
- .withMaintenanceWindowTimeZone("ocmbqfqvmkcxoza")
- .withMaintenanceWindows(
- Arrays
- .asList(
- new MaintenanceWindowPatchProperties()
- .withHour(2066979028)
- .withDayOfWeek(DayOfWeek.THURSDAY),
- new MaintenanceWindowPatchProperties().withHour(1663002651).withDayOfWeek(DayOfWeek.FRIDAY),
- new MaintenanceWindowPatchProperties()
- .withHour(1689859600)
- .withDayOfWeek(DayOfWeek.TUESDAY)));
- model = BinaryData.fromObject(model).toObject(AgentUpdatePatchProperties.class);
- Assertions.assertEquals(SessionHostComponentUpdateType.DEFAULT, model.type());
- Assertions.assertEquals(false, model.useSessionHostLocalTime());
- Assertions.assertEquals("ocmbqfqvmkcxoza", model.maintenanceWindowTimeZone());
- Assertions.assertEquals(2066979028, model.maintenanceWindows().get(0).hour());
- Assertions.assertEquals(DayOfWeek.THURSDAY, model.maintenanceWindows().get(0).dayOfWeek());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePropertiesTests.java
deleted file mode 100644
index 16927749969c..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/AgentUpdatePropertiesTests.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
-import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AgentUpdatePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AgentUpdateProperties model =
- BinaryData
- .fromString(
- "{\"type\":\"Default\",\"useSessionHostLocalTime\":true,\"maintenanceWindowTimeZone\":\"railvpnppfuf\",\"maintenanceWindows\":[{\"hour\":395833055,\"dayOfWeek\":\"Friday\"},{\"hour\":1444401866,\"dayOfWeek\":\"Friday\"},{\"hour\":1095036678,\"dayOfWeek\":\"Sunday\"}]}")
- .toObject(AgentUpdateProperties.class);
- Assertions.assertEquals(SessionHostComponentUpdateType.DEFAULT, model.type());
- Assertions.assertEquals(true, model.useSessionHostLocalTime());
- Assertions.assertEquals("railvpnppfuf", model.maintenanceWindowTimeZone());
- Assertions.assertEquals(395833055, model.maintenanceWindows().get(0).hour());
- Assertions.assertEquals(DayOfWeek.FRIDAY, model.maintenanceWindows().get(0).dayOfWeek());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AgentUpdateProperties model =
- new AgentUpdateProperties()
- .withType(SessionHostComponentUpdateType.DEFAULT)
- .withUseSessionHostLocalTime(true)
- .withMaintenanceWindowTimeZone("railvpnppfuf")
- .withMaintenanceWindows(
- Arrays
- .asList(
- new MaintenanceWindowProperties().withHour(395833055).withDayOfWeek(DayOfWeek.FRIDAY),
- new MaintenanceWindowProperties().withHour(1444401866).withDayOfWeek(DayOfWeek.FRIDAY),
- new MaintenanceWindowProperties().withHour(1095036678).withDayOfWeek(DayOfWeek.SUNDAY)));
- model = BinaryData.fromObject(model).toObject(AgentUpdateProperties.class);
- Assertions.assertEquals(SessionHostComponentUpdateType.DEFAULT, model.type());
- Assertions.assertEquals(true, model.useSessionHostLocalTime());
- Assertions.assertEquals("railvpnppfuf", model.maintenanceWindowTimeZone());
- Assertions.assertEquals(395833055, model.maintenanceWindows().get(0).hour());
- Assertions.assertEquals(DayOfWeek.FRIDAY, model.maintenanceWindows().get(0).dayOfWeek());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchPropertiesTests.java
deleted file mode 100644
index 582cc7d94a46..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchPropertiesTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupPatchProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationGroupPatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationGroupPatchProperties model =
- BinaryData
- .fromString("{\"description\":\"hvgyuguosvmk\",\"friendlyName\":\"sxqu\"}")
- .toObject(ApplicationGroupPatchProperties.class);
- Assertions.assertEquals("hvgyuguosvmk", model.description());
- Assertions.assertEquals("sxqu", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationGroupPatchProperties model =
- new ApplicationGroupPatchProperties().withDescription("hvgyuguosvmk").withFriendlyName("sxqu");
- model = BinaryData.fromObject(model).toObject(ApplicationGroupPatchProperties.class);
- Assertions.assertEquals("hvgyuguosvmk", model.description());
- Assertions.assertEquals("sxqu", model.friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchTests.java
deleted file mode 100644
index 30e734deeae9..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPatchTests.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationGroupPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationGroupPatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"axibxujw\":\"biexzfeyu\",\"muzyoxaepdk\":\"hqwa\",\"rhdwbavxbniw\":\"jancu\"},\"properties\":{\"description\":\"wz\",\"friendlyName\":\"dbpgnxytxhp\"},\"id\":\"xbzpfzab\",\"name\":\"lcuhxwtctyqiklb\",\"type\":\"ovplw\"}")
- .toObject(ApplicationGroupPatch.class);
- Assertions.assertEquals("biexzfeyu", model.tags().get("axibxujw"));
- Assertions.assertEquals("wz", model.description());
- Assertions.assertEquals("dbpgnxytxhp", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationGroupPatch model =
- new ApplicationGroupPatch()
- .withTags(mapOf("axibxujw", "biexzfeyu", "muzyoxaepdk", "hqwa", "rhdwbavxbniw", "jancu"))
- .withDescription("wz")
- .withFriendlyName("dbpgnxytxhp");
- model = BinaryData.fromObject(model).toObject(ApplicationGroupPatch.class);
- Assertions.assertEquals("biexzfeyu", model.tags().get("axibxujw"));
- Assertions.assertEquals("wz", model.description());
- Assertions.assertEquals("dbpgnxytxhp", model.friendlyName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPropertiesTests.java
deleted file mode 100644
index aac23f36140b..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupPropertiesTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationGroupPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationGroupProperties model =
- BinaryData
- .fromString(
- "{\"objectId\":\"lqidyby\",\"description\":\"zfcl\",\"friendlyName\":\"axdbabph\",\"hostPoolArmPath\":\"wrqlfktsthsuco\",\"workspaceArmPath\":\"nyyazttbtwwrqpue\",\"applicationGroupType\":\"Desktop\",\"cloudPcResource\":false}")
- .toObject(ApplicationGroupProperties.class);
- Assertions.assertEquals("zfcl", model.description());
- Assertions.assertEquals("axdbabph", model.friendlyName());
- Assertions.assertEquals("wrqlfktsthsuco", model.hostPoolArmPath());
- Assertions.assertEquals(ApplicationGroupType.DESKTOP, model.applicationGroupType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationGroupProperties model =
- new ApplicationGroupProperties()
- .withDescription("zfcl")
- .withFriendlyName("axdbabph")
- .withHostPoolArmPath("wrqlfktsthsuco")
- .withApplicationGroupType(ApplicationGroupType.DESKTOP);
- model = BinaryData.fromObject(model).toObject(ApplicationGroupProperties.class);
- Assertions.assertEquals("zfcl", model.description());
- Assertions.assertEquals("axdbabph", model.friendlyName());
- Assertions.assertEquals("wrqlfktsthsuco", model.hostPoolArmPath());
- Assertions.assertEquals(ApplicationGroupType.DESKTOP, model.applicationGroupType());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteByResourceGroupWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 4b8ae2b8f4d3..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationGroupsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationGroupsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.applicationGroups().deleteByResourceGroupWithResponse("u", "rj", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationInnerTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationInnerTests.java
deleted file mode 100644
index 273c6c8d8643..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationInnerTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"objectId\":\"shsfwxosowzxcu\",\"description\":\"cjooxdjebwpucwwf\",\"friendlyName\":\"vbvmeu\",\"filePath\":\"ivyhzceuojgjrwju\",\"msixPackageFamilyName\":\"otwmcdyt\",\"msixPackageApplicationId\":\"wit\",\"applicationType\":\"InBuilt\",\"commandLineSetting\":\"Allow\",\"commandLineArguments\":\"wgqwgxhn\",\"showInPortal\":true,\"iconPath\":\"fbkp\",\"iconIndex\":1098465372,\"iconHash\":\"lwn\"},\"id\":\"hjdauwhvylwz\",\"name\":\"tdhxujznbmpowuwp\",\"type\":\"zqlveualupjmkhf\"}")
- .toObject(ApplicationInner.class);
- Assertions.assertEquals("cjooxdjebwpucwwf", model.description());
- Assertions.assertEquals("vbvmeu", model.friendlyName());
- Assertions.assertEquals("ivyhzceuojgjrwju", model.filePath());
- Assertions.assertEquals("otwmcdyt", model.msixPackageFamilyName());
- Assertions.assertEquals("wit", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- Assertions.assertEquals(CommandLineSetting.ALLOW, model.commandLineSetting());
- Assertions.assertEquals("wgqwgxhn", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("fbkp", model.iconPath());
- Assertions.assertEquals(1098465372, model.iconIndex());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationInner model =
- new ApplicationInner()
- .withDescription("cjooxdjebwpucwwf")
- .withFriendlyName("vbvmeu")
- .withFilePath("ivyhzceuojgjrwju")
- .withMsixPackageFamilyName("otwmcdyt")
- .withMsixPackageApplicationId("wit")
- .withApplicationType(RemoteApplicationType.IN_BUILT)
- .withCommandLineSetting(CommandLineSetting.ALLOW)
- .withCommandLineArguments("wgqwgxhn")
- .withShowInPortal(true)
- .withIconPath("fbkp")
- .withIconIndex(1098465372);
- model = BinaryData.fromObject(model).toObject(ApplicationInner.class);
- Assertions.assertEquals("cjooxdjebwpucwwf", model.description());
- Assertions.assertEquals("vbvmeu", model.friendlyName());
- Assertions.assertEquals("ivyhzceuojgjrwju", model.filePath());
- Assertions.assertEquals("otwmcdyt", model.msixPackageFamilyName());
- Assertions.assertEquals("wit", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- Assertions.assertEquals(CommandLineSetting.ALLOW, model.commandLineSetting());
- Assertions.assertEquals("wgqwgxhn", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("fbkp", model.iconPath());
- Assertions.assertEquals(1098465372, model.iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationListTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationListTests.java
deleted file mode 100644
index 034d8a292d38..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationListTests.java
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
-import com.azure.resourcemanager.desktopvirtualization.models.ApplicationList;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"objectId\":\"o\",\"description\":\"bnxknalaulppg\",\"friendlyName\":\"tpnapnyiropuhpig\",\"filePath\":\"gylgqgitxmedjvcs\",\"msixPackageFamilyName\":\"n\",\"msixPackageApplicationId\":\"wncwzzhxgktrmg\",\"applicationType\":\"MsixApplication\",\"commandLineSetting\":\"DoNotAllow\",\"commandLineArguments\":\"kteo\",\"showInPortal\":false,\"iconPath\":\"pt\",\"iconIndex\":1401142659,\"iconHash\":\"pfqbuaceopzf\"},\"id\":\"hhuao\",\"name\":\"ppcqeqxolz\",\"type\":\"ahzxctobgbk\"},{\"properties\":{\"objectId\":\"izpost\",\"description\":\"rcfbunrm\",\"friendlyName\":\"jhhkxbp\",\"filePath\":\"ymjhxxjyngudivkr\",\"msixPackageFamilyName\":\"wbxqzvszjfau\",\"msixPackageApplicationId\":\"fdxxivetvtcqaqtd\",\"applicationType\":\"MsixApplication\",\"commandLineSetting\":\"Allow\",\"commandLineArguments\":\"xv\",\"showInPortal\":false,\"iconPath\":\"slqb\",\"iconIndex\":92665469,\"iconHash\":\"obl\"},\"id\":\"k\",\"name\":\"lmpewwwfbkr\",\"type\":\"rn\"},{\"properties\":{\"objectId\":\"hqjohxcrsbfova\",\"description\":\"ruvw\",\"friendlyName\":\"sqfsubcgjbirxb\",\"filePath\":\"bsrfbj\",\"msixPackageFamilyName\":\"twss\",\"msixPackageApplicationId\":\"ftpvjzbexil\",\"applicationType\":\"InBuilt\",\"commandLineSetting\":\"DoNotAllow\",\"commandLineArguments\":\"q\",\"showInPortal\":false,\"iconPath\":\"mqtaruoujmkcjh\",\"iconIndex\":1420775781,\"iconHash\":\"jrybnwjewgdrjer\"},\"id\":\"aen\",\"name\":\"pehindoygm\",\"type\":\"fthnzdn\"}],\"nextLink\":\"l\"}")
- .toObject(ApplicationList.class);
- Assertions.assertEquals("bnxknalaulppg", model.value().get(0).description());
- Assertions.assertEquals("tpnapnyiropuhpig", model.value().get(0).friendlyName());
- Assertions.assertEquals("gylgqgitxmedjvcs", model.value().get(0).filePath());
- Assertions.assertEquals("n", model.value().get(0).msixPackageFamilyName());
- Assertions.assertEquals("wncwzzhxgktrmg", model.value().get(0).msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.MSIX_APPLICATION, model.value().get(0).applicationType());
- Assertions.assertEquals(CommandLineSetting.DO_NOT_ALLOW, model.value().get(0).commandLineSetting());
- Assertions.assertEquals("kteo", model.value().get(0).commandLineArguments());
- Assertions.assertEquals(false, model.value().get(0).showInPortal());
- Assertions.assertEquals("pt", model.value().get(0).iconPath());
- Assertions.assertEquals(1401142659, model.value().get(0).iconIndex());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationList model =
- new ApplicationList()
- .withValue(
- Arrays
- .asList(
- new ApplicationInner()
- .withDescription("bnxknalaulppg")
- .withFriendlyName("tpnapnyiropuhpig")
- .withFilePath("gylgqgitxmedjvcs")
- .withMsixPackageFamilyName("n")
- .withMsixPackageApplicationId("wncwzzhxgktrmg")
- .withApplicationType(RemoteApplicationType.MSIX_APPLICATION)
- .withCommandLineSetting(CommandLineSetting.DO_NOT_ALLOW)
- .withCommandLineArguments("kteo")
- .withShowInPortal(false)
- .withIconPath("pt")
- .withIconIndex(1401142659),
- new ApplicationInner()
- .withDescription("rcfbunrm")
- .withFriendlyName("jhhkxbp")
- .withFilePath("ymjhxxjyngudivkr")
- .withMsixPackageFamilyName("wbxqzvszjfau")
- .withMsixPackageApplicationId("fdxxivetvtcqaqtd")
- .withApplicationType(RemoteApplicationType.MSIX_APPLICATION)
- .withCommandLineSetting(CommandLineSetting.ALLOW)
- .withCommandLineArguments("xv")
- .withShowInPortal(false)
- .withIconPath("slqb")
- .withIconIndex(92665469),
- new ApplicationInner()
- .withDescription("ruvw")
- .withFriendlyName("sqfsubcgjbirxb")
- .withFilePath("bsrfbj")
- .withMsixPackageFamilyName("twss")
- .withMsixPackageApplicationId("ftpvjzbexil")
- .withApplicationType(RemoteApplicationType.IN_BUILT)
- .withCommandLineSetting(CommandLineSetting.DO_NOT_ALLOW)
- .withCommandLineArguments("q")
- .withShowInPortal(false)
- .withIconPath("mqtaruoujmkcjh")
- .withIconIndex(1420775781)));
- model = BinaryData.fromObject(model).toObject(ApplicationList.class);
- Assertions.assertEquals("bnxknalaulppg", model.value().get(0).description());
- Assertions.assertEquals("tpnapnyiropuhpig", model.value().get(0).friendlyName());
- Assertions.assertEquals("gylgqgitxmedjvcs", model.value().get(0).filePath());
- Assertions.assertEquals("n", model.value().get(0).msixPackageFamilyName());
- Assertions.assertEquals("wncwzzhxgktrmg", model.value().get(0).msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.MSIX_APPLICATION, model.value().get(0).applicationType());
- Assertions.assertEquals(CommandLineSetting.DO_NOT_ALLOW, model.value().get(0).commandLineSetting());
- Assertions.assertEquals("kteo", model.value().get(0).commandLineArguments());
- Assertions.assertEquals(false, model.value().get(0).showInPortal());
- Assertions.assertEquals("pt", model.value().get(0).iconPath());
- Assertions.assertEquals(1401142659, model.value().get(0).iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchPropertiesTests.java
deleted file mode 100644
index 3542b0c31711..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchPropertiesTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationPatchProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationPatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationPatchProperties model =
- BinaryData
- .fromString(
- "{\"description\":\"ofd\",\"friendlyName\":\"uusdttouwa\",\"filePath\":\"ekqvkeln\",\"commandLineSetting\":\"DoNotAllow\",\"commandLineArguments\":\"xwyjsflhhc\",\"showInPortal\":true,\"iconPath\":\"jixisxyawjoyaqcs\",\"iconIndex\":2113030944,\"msixPackageFamilyName\":\"kiidzyex\",\"msixPackageApplicationId\":\"eli\",\"applicationType\":\"InBuilt\"}")
- .toObject(ApplicationPatchProperties.class);
- Assertions.assertEquals("ofd", model.description());
- Assertions.assertEquals("uusdttouwa", model.friendlyName());
- Assertions.assertEquals("ekqvkeln", model.filePath());
- Assertions.assertEquals(CommandLineSetting.DO_NOT_ALLOW, model.commandLineSetting());
- Assertions.assertEquals("xwyjsflhhc", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("jixisxyawjoyaqcs", model.iconPath());
- Assertions.assertEquals(2113030944, model.iconIndex());
- Assertions.assertEquals("kiidzyex", model.msixPackageFamilyName());
- Assertions.assertEquals("eli", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationPatchProperties model =
- new ApplicationPatchProperties()
- .withDescription("ofd")
- .withFriendlyName("uusdttouwa")
- .withFilePath("ekqvkeln")
- .withCommandLineSetting(CommandLineSetting.DO_NOT_ALLOW)
- .withCommandLineArguments("xwyjsflhhc")
- .withShowInPortal(true)
- .withIconPath("jixisxyawjoyaqcs")
- .withIconIndex(2113030944)
- .withMsixPackageFamilyName("kiidzyex")
- .withMsixPackageApplicationId("eli")
- .withApplicationType(RemoteApplicationType.IN_BUILT);
- model = BinaryData.fromObject(model).toObject(ApplicationPatchProperties.class);
- Assertions.assertEquals("ofd", model.description());
- Assertions.assertEquals("uusdttouwa", model.friendlyName());
- Assertions.assertEquals("ekqvkeln", model.filePath());
- Assertions.assertEquals(CommandLineSetting.DO_NOT_ALLOW, model.commandLineSetting());
- Assertions.assertEquals("xwyjsflhhc", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("jixisxyawjoyaqcs", model.iconPath());
- Assertions.assertEquals(2113030944, model.iconIndex());
- Assertions.assertEquals("kiidzyex", model.msixPackageFamilyName());
- Assertions.assertEquals("eli", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchTests.java
deleted file mode 100644
index e86733c9138a..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPatchTests.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatch;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationPatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"yriwwroyqb\":\"prwmdyvxqt\",\"mefqsgzvahapjyzh\":\"xrmcqibycnojvk\"},\"properties\":{\"description\":\"qzcjrvxdj\",\"friendlyName\":\"mwlxk\",\"filePath\":\"gfhzovawjvzunlut\",\"commandLineSetting\":\"Allow\",\"commandLineArguments\":\"rnxipei\",\"showInPortal\":true,\"iconPath\":\"uaejxdultsk\",\"iconIndex\":618241707,\"msixPackageFamilyName\":\"dzumveekg\",\"msixPackageApplicationId\":\"ozuhkfp\",\"applicationType\":\"MsixApplication\"}}")
- .toObject(ApplicationPatch.class);
- Assertions.assertEquals("prwmdyvxqt", model.tags().get("yriwwroyqb"));
- Assertions.assertEquals("qzcjrvxdj", model.description());
- Assertions.assertEquals("mwlxk", model.friendlyName());
- Assertions.assertEquals("gfhzovawjvzunlut", model.filePath());
- Assertions.assertEquals(CommandLineSetting.ALLOW, model.commandLineSetting());
- Assertions.assertEquals("rnxipei", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("uaejxdultsk", model.iconPath());
- Assertions.assertEquals(618241707, model.iconIndex());
- Assertions.assertEquals("dzumveekg", model.msixPackageFamilyName());
- Assertions.assertEquals("ozuhkfp", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.MSIX_APPLICATION, model.applicationType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationPatch model =
- new ApplicationPatch()
- .withTags(mapOf("yriwwroyqb", "prwmdyvxqt", "mefqsgzvahapjyzh", "xrmcqibycnojvk"))
- .withDescription("qzcjrvxdj")
- .withFriendlyName("mwlxk")
- .withFilePath("gfhzovawjvzunlut")
- .withCommandLineSetting(CommandLineSetting.ALLOW)
- .withCommandLineArguments("rnxipei")
- .withShowInPortal(true)
- .withIconPath("uaejxdultsk")
- .withIconIndex(618241707)
- .withMsixPackageFamilyName("dzumveekg")
- .withMsixPackageApplicationId("ozuhkfp")
- .withApplicationType(RemoteApplicationType.MSIX_APPLICATION);
- model = BinaryData.fromObject(model).toObject(ApplicationPatch.class);
- Assertions.assertEquals("prwmdyvxqt", model.tags().get("yriwwroyqb"));
- Assertions.assertEquals("qzcjrvxdj", model.description());
- Assertions.assertEquals("mwlxk", model.friendlyName());
- Assertions.assertEquals("gfhzovawjvzunlut", model.filePath());
- Assertions.assertEquals(CommandLineSetting.ALLOW, model.commandLineSetting());
- Assertions.assertEquals("rnxipei", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("uaejxdultsk", model.iconPath());
- Assertions.assertEquals(618241707, model.iconIndex());
- Assertions.assertEquals("dzumveekg", model.msixPackageFamilyName());
- Assertions.assertEquals("ozuhkfp", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.MSIX_APPLICATION, model.applicationType());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPropertiesTests.java
deleted file mode 100644
index 82b9dd7d916d..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationPropertiesTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationProperties model =
- BinaryData
- .fromString(
- "{\"objectId\":\"bbcswsrtjri\",\"description\":\"rbpbewtghfgblcg\",\"friendlyName\":\"zvlvqhjkbegib\",\"filePath\":\"mxiebw\",\"msixPackageFamilyName\":\"loayqcgw\",\"msixPackageApplicationId\":\"zjuzgwyz\",\"applicationType\":\"InBuilt\",\"commandLineSetting\":\"Require\",\"commandLineArguments\":\"ngmtsavjcb\",\"showInPortal\":true,\"iconPath\":\"p\",\"iconIndex\":597886702,\"iconHash\":\"ftguv\"}")
- .toObject(ApplicationProperties.class);
- Assertions.assertEquals("rbpbewtghfgblcg", model.description());
- Assertions.assertEquals("zvlvqhjkbegib", model.friendlyName());
- Assertions.assertEquals("mxiebw", model.filePath());
- Assertions.assertEquals("loayqcgw", model.msixPackageFamilyName());
- Assertions.assertEquals("zjuzgwyz", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- Assertions.assertEquals(CommandLineSetting.REQUIRE, model.commandLineSetting());
- Assertions.assertEquals("ngmtsavjcb", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("p", model.iconPath());
- Assertions.assertEquals(597886702, model.iconIndex());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationProperties model =
- new ApplicationProperties()
- .withDescription("rbpbewtghfgblcg")
- .withFriendlyName("zvlvqhjkbegib")
- .withFilePath("mxiebw")
- .withMsixPackageFamilyName("loayqcgw")
- .withMsixPackageApplicationId("zjuzgwyz")
- .withApplicationType(RemoteApplicationType.IN_BUILT)
- .withCommandLineSetting(CommandLineSetting.REQUIRE)
- .withCommandLineArguments("ngmtsavjcb")
- .withShowInPortal(true)
- .withIconPath("p")
- .withIconIndex(597886702);
- model = BinaryData.fromObject(model).toObject(ApplicationProperties.class);
- Assertions.assertEquals("rbpbewtghfgblcg", model.description());
- Assertions.assertEquals("zvlvqhjkbegib", model.friendlyName());
- Assertions.assertEquals("mxiebw", model.filePath());
- Assertions.assertEquals("loayqcgw", model.msixPackageFamilyName());
- Assertions.assertEquals("zjuzgwyz", model.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, model.applicationType());
- Assertions.assertEquals(CommandLineSetting.REQUIRE, model.commandLineSetting());
- Assertions.assertEquals("ngmtsavjcb", model.commandLineArguments());
- Assertions.assertEquals(true, model.showInPortal());
- Assertions.assertEquals("p", model.iconPath());
- Assertions.assertEquals(597886702, model.iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index 00b7488b3a0a..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Application;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"objectId\":\"jsvg\",\"description\":\"whryvycytdcl\",\"friendlyName\":\"ccknfnwmbtmvp\",\"filePath\":\"jdhttzaefedxi\",\"msixPackageFamilyName\":\"hrphkmcrjdqn\",\"msixPackageApplicationId\":\"fzpbgtgkyl\",\"applicationType\":\"MsixApplication\",\"commandLineSetting\":\"DoNotAllow\",\"commandLineArguments\":\"jeuut\",\"showInPortal\":false,\"iconPath\":\"z\",\"iconIndex\":2023455303,\"iconHash\":\"kvbwnhhtqlgeh\"},\"id\":\"pipifh\",\"name\":\"f\",\"type\":\"oajvgcxtxjcs\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Application response =
- manager
- .applications()
- .define("ecdmdqbwpy")
- .withExistingApplicationGroup("vit", "tvtzeexavoxtfg")
- .withCommandLineSetting(CommandLineSetting.ALLOW)
- .withDescription("lhhxudbxvodhtnsi")
- .withFriendlyName("dhzmmesckdlp")
- .withFilePath("zrcxfailcfxwmdbo")
- .withMsixPackageFamilyName("fgsftufqob")
- .withMsixPackageApplicationId("lnacgcc")
- .withApplicationType(RemoteApplicationType.IN_BUILT)
- .withCommandLineArguments("kizvytn")
- .withShowInPortal(true)
- .withIconPath("lj")
- .withIconIndex(2075017284)
- .create();
-
- Assertions.assertEquals("whryvycytdcl", response.description());
- Assertions.assertEquals("ccknfnwmbtmvp", response.friendlyName());
- Assertions.assertEquals("jdhttzaefedxi", response.filePath());
- Assertions.assertEquals("hrphkmcrjdqn", response.msixPackageFamilyName());
- Assertions.assertEquals("fzpbgtgkyl", response.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.MSIX_APPLICATION, response.applicationType());
- Assertions.assertEquals(CommandLineSetting.DO_NOT_ALLOW, response.commandLineSetting());
- Assertions.assertEquals("jeuut", response.commandLineArguments());
- Assertions.assertEquals(false, response.showInPortal());
- Assertions.assertEquals("z", response.iconPath());
- Assertions.assertEquals(2023455303, response.iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteWithResponseMockTests.java
deleted file mode 100644
index c7bfc5ed64a7..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .applications()
- .deleteWithResponse("jsqzhzbezk", "imsidxasicddyvvj", "kgfmocwahpq", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetWithResponseMockTests.java
deleted file mode 100644
index 52c74690589a..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Application;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"objectId\":\"vk\",\"description\":\"yzunbixxrtikv\",\"friendlyName\":\"wpgclrcivt\",\"filePath\":\"xfrk\",\"msixPackageFamilyName\":\"xpmyyefrpmpdnq\",\"msixPackageApplicationId\":\"ka\",\"applicationType\":\"InBuilt\",\"commandLineSetting\":\"Allow\",\"commandLineArguments\":\"mmbnpqfrtql\",\"showInPortal\":false,\"iconPath\":\"gnitgvkxlzyq\",\"iconIndex\":1463810851,\"iconHash\":\"gcealzxwh\"},\"id\":\"nsymoyqhlwigd\",\"name\":\"vbkbxgomf\",\"type\":\"juwasqvdaeyyguxa\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Application response =
- manager
- .applications()
- .getWithResponse("nygq", "nfwqzdzgtilaxhn", "hqlyvijo", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("yzunbixxrtikv", response.description());
- Assertions.assertEquals("wpgclrcivt", response.friendlyName());
- Assertions.assertEquals("xfrk", response.filePath());
- Assertions.assertEquals("xpmyyefrpmpdnq", response.msixPackageFamilyName());
- Assertions.assertEquals("ka", response.msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, response.applicationType());
- Assertions.assertEquals(CommandLineSetting.ALLOW, response.commandLineSetting());
- Assertions.assertEquals("mmbnpqfrtql", response.commandLineArguments());
- Assertions.assertEquals(false, response.showInPortal());
- Assertions.assertEquals("gnitgvkxlzyq", response.iconPath());
- Assertions.assertEquals(1463810851, response.iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListMockTests.java
deleted file mode 100644
index fff6bab9968e..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ApplicationsListMockTests.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Application;
-import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
-import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"objectId\":\"jjidjk\",\"description\":\"xkyxvxevblbj\",\"friendlyName\":\"nljlageuaulx\",\"filePath\":\"smjbnkppxyn\",\"msixPackageFamilyName\":\"lsvxeizz\",\"msixPackageApplicationId\":\"klnsrmffey\",\"applicationType\":\"InBuilt\",\"commandLineSetting\":\"Require\",\"commandLineArguments\":\"piymerteea\",\"showInPortal\":true,\"iconPath\":\"iekkkzddrtkgdojb\",\"iconIndex\":494588403,\"iconHash\":\"vrefdeesv\"},\"id\":\"uij\",\"name\":\"xtxsuwprtujw\",\"type\":\"awddjibab\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .applications()
- .list("atjeaahh", "jhhn", 919840845, false, 1060180082, com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("xkyxvxevblbj", response.iterator().next().description());
- Assertions.assertEquals("nljlageuaulx", response.iterator().next().friendlyName());
- Assertions.assertEquals("smjbnkppxyn", response.iterator().next().filePath());
- Assertions.assertEquals("lsvxeizz", response.iterator().next().msixPackageFamilyName());
- Assertions.assertEquals("klnsrmffey", response.iterator().next().msixPackageApplicationId());
- Assertions.assertEquals(RemoteApplicationType.IN_BUILT, response.iterator().next().applicationType());
- Assertions.assertEquals(CommandLineSetting.REQUIRE, response.iterator().next().commandLineSetting());
- Assertions.assertEquals("piymerteea", response.iterator().next().commandLineArguments());
- Assertions.assertEquals(true, response.iterator().next().showInPortal());
- Assertions.assertEquals("iekkkzddrtkgdojb", response.iterator().next().iconPath());
- Assertions.assertEquals(494588403, response.iterator().next().iconIndex());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopInnerTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopInnerTests.java
deleted file mode 100644
index ac3593868df6..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopInnerTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class DesktopInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DesktopInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"objectId\":\"qig\",\"description\":\"duhavhqlkt\",\"friendlyName\":\"maqolbgycduie\",\"iconHash\":\"gccymvaolpssl\"},\"id\":\"fmmdnbbg\",\"name\":\"zpswiydmc\",\"type\":\"yhz\"}")
- .toObject(DesktopInner.class);
- Assertions.assertEquals("duhavhqlkt", model.description());
- Assertions.assertEquals("maqolbgycduie", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DesktopInner model = new DesktopInner().withDescription("duhavhqlkt").withFriendlyName("maqolbgycduie");
- model = BinaryData.fromObject(model).toObject(DesktopInner.class);
- Assertions.assertEquals("duhavhqlkt", model.description());
- Assertions.assertEquals("maqolbgycduie", model.friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopListTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopListTests.java
deleted file mode 100644
index b9a0b8ee49fc..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopListTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopInner;
-import com.azure.resourcemanager.desktopvirtualization.models.DesktopList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DesktopListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DesktopList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"objectId\":\"gureodkwobdag\",\"description\":\"ibqdxbxwakbogqx\",\"friendlyName\":\"lkzgxhuriplbp\",\"iconHash\":\"xunkbebxmubyynt\"},\"id\":\"rbqtkoie\",\"name\":\"seotgqrllt\",\"type\":\"u\"}],\"nextLink\":\"auwzizxbmpgc\"}")
- .toObject(DesktopList.class);
- Assertions.assertEquals("ibqdxbxwakbogqx", model.value().get(0).description());
- Assertions.assertEquals("lkzgxhuriplbp", model.value().get(0).friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DesktopList model =
- new DesktopList()
- .withValue(
- Arrays
- .asList(
- new DesktopInner().withDescription("ibqdxbxwakbogqx").withFriendlyName("lkzgxhuriplbp")));
- model = BinaryData.fromObject(model).toObject(DesktopList.class);
- Assertions.assertEquals("ibqdxbxwakbogqx", model.value().get(0).description());
- Assertions.assertEquals("lkzgxhuriplbp", model.value().get(0).friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchPropertiesTests.java
deleted file mode 100644
index 337b01488894..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchPropertiesTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopPatchProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class DesktopPatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DesktopPatchProperties model =
- BinaryData
- .fromString("{\"description\":\"ikvmkqzeqqk\",\"friendlyName\":\"tfz\"}")
- .toObject(DesktopPatchProperties.class);
- Assertions.assertEquals("ikvmkqzeqqk", model.description());
- Assertions.assertEquals("tfz", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DesktopPatchProperties model =
- new DesktopPatchProperties().withDescription("ikvmkqzeqqk").withFriendlyName("tfz");
- model = BinaryData.fromObject(model).toObject(DesktopPatchProperties.class);
- Assertions.assertEquals("ikvmkqzeqqk", model.description());
- Assertions.assertEquals("tfz", model.friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchTests.java
deleted file mode 100644
index 9ae646a0efdc..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPatchTests.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DesktopPatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DesktopPatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"erscdntne\":\"dzu\",\"tmweriofzpyq\":\"fiwjmygtdssls\",\"hhszh\":\"emwabnet\",\"lvwiwubmwmbesl\":\"d\"},\"properties\":{\"description\":\"wwtppj\",\"friendlyName\":\"cxogaokonzm\"}}")
- .toObject(DesktopPatch.class);
- Assertions.assertEquals("dzu", model.tags().get("erscdntne"));
- Assertions.assertEquals("wwtppj", model.description());
- Assertions.assertEquals("cxogaokonzm", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DesktopPatch model =
- new DesktopPatch()
- .withTags(
- mapOf(
- "erscdntne",
- "dzu",
- "tmweriofzpyq",
- "fiwjmygtdssls",
- "hhszh",
- "emwabnet",
- "lvwiwubmwmbesl",
- "d"))
- .withDescription("wwtppj")
- .withFriendlyName("cxogaokonzm");
- model = BinaryData.fromObject(model).toObject(DesktopPatch.class);
- Assertions.assertEquals("dzu", model.tags().get("erscdntne"));
- Assertions.assertEquals("wwtppj", model.description());
- Assertions.assertEquals("cxogaokonzm", model.friendlyName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPropertiesTests.java
deleted file mode 100644
index 62742f59b6d0..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopPropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.DesktopProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class DesktopPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DesktopProperties model =
- BinaryData
- .fromString(
- "{\"objectId\":\"ss\",\"description\":\"bzmnvdfznud\",\"friendlyName\":\"dvxzbncblylpst\",\"iconHash\":\"hh\"}")
- .toObject(DesktopProperties.class);
- Assertions.assertEquals("bzmnvdfznud", model.description());
- Assertions.assertEquals("dvxzbncblylpst", model.friendlyName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DesktopProperties model =
- new DesktopProperties().withDescription("bzmnvdfznud").withFriendlyName("dvxzbncblylpst");
- model = BinaryData.fromObject(model).toObject(DesktopProperties.class);
- Assertions.assertEquals("bzmnvdfznud", model.description());
- Assertions.assertEquals("dvxzbncblylpst", model.friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetWithResponseMockTests.java
deleted file mode 100644
index cb289ab356cd..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Desktop;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DesktopsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"objectId\":\"iqtgdqoh\",\"description\":\"wsldrizetpwbr\",\"friendlyName\":\"llibphbqzmizak\",\"iconHash\":\"ankjpdnjzh\"},\"id\":\"oylhjlmuoyxprimr\",\"name\":\"opteecj\",\"type\":\"eislstvasylwx\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Desktop response =
- manager
- .desktops()
- .getWithResponse("eafidltugsresm", "ssjhoiftxfkf", "egprhptil", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("wsldrizetpwbr", response.description());
- Assertions.assertEquals("llibphbqzmizak", response.friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListMockTests.java
deleted file mode 100644
index b22a74cb22b1..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsListMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Desktop;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DesktopsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"objectId\":\"khgn\",\"description\":\"zonzlrpiqywnc\",\"friendlyName\":\"tszcofizehtdhgb\",\"iconHash\":\"vreljea\"},\"id\":\"rvzmlovuana\",\"name\":\"hcxlpm\",\"type\":\"erbdk\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .desktops()
- .list("hcz", "xrxzbujrtr", 1272649211, true, 1247179302, com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("zonzlrpiqywnc", response.iterator().next().description());
- Assertions.assertEquals("tszcofizehtdhgb", response.iterator().next().friendlyName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateWithResponseMockTests.java
deleted file mode 100644
index c1f1b8ca59da..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/DesktopsUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.Desktop;
-import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DesktopsUpdateWithResponseMockTests {
- @Test
- public void testUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"objectId\":\"bpmzzn\",\"description\":\"ff\",\"friendlyName\":\"qitmhheioqaqhv\",\"iconHash\":\"ufuqyrx\"},\"id\":\"lcgqlsismj\",\"name\":\"frddgamquhiosrsj\",\"type\":\"ivfcdisyirnx\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Desktop response =
- manager
- .desktops()
- .updateWithResponse(
- "zaum",
- "eoohguufuzboyj",
- "thwtzol",
- new DesktopPatch()
- .withTags(
- mapOf("lxveabfqx", "mwmdxmebwjscjpa", "ijddtvqc", "mwmqtibx", "jaeukmrsieekpn", "tad"))
- .withDescription("apm")
- .withFriendlyName("qmeqwigpibudqwyx"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("ff", response.description());
- Assertions.assertEquals("qitmhheioqaqhv", response.friendlyName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageInnerTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageInnerTests.java
deleted file mode 100644
index 3f6e10861d4d..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageInnerTests.java
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ExpandMsixImageInner;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExpandMsixImageInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExpandMsixImageInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"packageAlias\":\"gzpfrla\",\"imagePath\":\"zrnw\",\"packageName\":\"indfpwpjyl\",\"packageFamilyName\":\"tlhflsjcdhszf\",\"packageFullName\":\"fbgofeljagrqmqh\",\"displayName\":\"vriiio\",\"packageRelativePath\":\"al\",\"isRegularRegistration\":false,\"isActive\":true,\"packageDependencies\":[{\"dependencyName\":\"ex\",\"publisher\":\"wueluqhhahhxv\",\"minVersion\":\"mzkwpjg\"},{\"dependencyName\":\"spughftqsxhq\",\"publisher\":\"j\",\"minVersion\":\"kndxdigrjgu\"},{\"dependencyName\":\"zdmsyqtfi\",\"publisher\":\"hbotzingamvppho\",\"minVersion\":\"qzudphq\"}],\"version\":\"vdkfwynwcvtbvk\",\"lastUpdated\":\"2021-01-08T18:46:20Z\",\"packageApplications\":[{\"appId\":\"vyqia\",\"description\":\"zwpcnpwzcjaesg\",\"appUserModelID\":\"sccyajguqf\",\"friendlyName\":\"ygz\",\"iconImageName\":\"dnkfx\"},{\"appId\":\"dwzrmuh\",\"description\":\"fcqdpsq\",\"appUserModelID\":\"vpsvuoymgcce\",\"friendlyName\":\"ezrypql\",\"iconImageName\":\"eokerqwkyhkobopg\"},{\"appId\":\"owepbqpcrfkb\",\"description\":\"csnjvcdwxlpqekft\",\"appUserModelID\":\"htjsying\",\"friendlyName\":\"qatmtdhtmdvy\",\"iconImageName\":\"ikdgszywkbir\"}]},\"id\":\"zh\",\"name\":\"hkjoqr\",\"type\":\"qqaatjinrvgou\"}")
- .toObject(ExpandMsixImageInner.class);
- Assertions.assertEquals("gzpfrla", model.packageAlias());
- Assertions.assertEquals("zrnw", model.imagePath());
- Assertions.assertEquals("indfpwpjyl", model.packageName());
- Assertions.assertEquals("tlhflsjcdhszf", model.packageFamilyName());
- Assertions.assertEquals("fbgofeljagrqmqh", model.packageFullName());
- Assertions.assertEquals("vriiio", model.displayName());
- Assertions.assertEquals("al", model.packageRelativePath());
- Assertions.assertEquals(false, model.isRegularRegistration());
- Assertions.assertEquals(true, model.isActive());
- Assertions.assertEquals("ex", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("wueluqhhahhxv", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("mzkwpjg", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("vdkfwynwcvtbvk", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T18:46:20Z"), model.lastUpdated());
- Assertions.assertEquals("vyqia", model.packageApplications().get(0).appId());
- Assertions.assertEquals("zwpcnpwzcjaesg", model.packageApplications().get(0).description());
- Assertions.assertEquals("sccyajguqf", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("ygz", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("dnkfx", model.packageApplications().get(0).iconImageName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExpandMsixImageInner model =
- new ExpandMsixImageInner()
- .withPackageAlias("gzpfrla")
- .withImagePath("zrnw")
- .withPackageName("indfpwpjyl")
- .withPackageFamilyName("tlhflsjcdhszf")
- .withPackageFullName("fbgofeljagrqmqh")
- .withDisplayName("vriiio")
- .withPackageRelativePath("al")
- .withIsRegularRegistration(false)
- .withIsActive(true)
- .withPackageDependencies(
- Arrays
- .asList(
- new MsixPackageDependencies()
- .withDependencyName("ex")
- .withPublisher("wueluqhhahhxv")
- .withMinVersion("mzkwpjg"),
- new MsixPackageDependencies()
- .withDependencyName("spughftqsxhq")
- .withPublisher("j")
- .withMinVersion("kndxdigrjgu"),
- new MsixPackageDependencies()
- .withDependencyName("zdmsyqtfi")
- .withPublisher("hbotzingamvppho")
- .withMinVersion("qzudphq")))
- .withVersion("vdkfwynwcvtbvk")
- .withLastUpdated(OffsetDateTime.parse("2021-01-08T18:46:20Z"))
- .withPackageApplications(
- Arrays
- .asList(
- new MsixPackageApplications()
- .withAppId("vyqia")
- .withDescription("zwpcnpwzcjaesg")
- .withAppUserModelId("sccyajguqf")
- .withFriendlyName("ygz")
- .withIconImageName("dnkfx"),
- new MsixPackageApplications()
- .withAppId("dwzrmuh")
- .withDescription("fcqdpsq")
- .withAppUserModelId("vpsvuoymgcce")
- .withFriendlyName("ezrypql")
- .withIconImageName("eokerqwkyhkobopg"),
- new MsixPackageApplications()
- .withAppId("owepbqpcrfkb")
- .withDescription("csnjvcdwxlpqekft")
- .withAppUserModelId("htjsying")
- .withFriendlyName("qatmtdhtmdvy")
- .withIconImageName("ikdgszywkbir")));
- model = BinaryData.fromObject(model).toObject(ExpandMsixImageInner.class);
- Assertions.assertEquals("gzpfrla", model.packageAlias());
- Assertions.assertEquals("zrnw", model.imagePath());
- Assertions.assertEquals("indfpwpjyl", model.packageName());
- Assertions.assertEquals("tlhflsjcdhszf", model.packageFamilyName());
- Assertions.assertEquals("fbgofeljagrqmqh", model.packageFullName());
- Assertions.assertEquals("vriiio", model.displayName());
- Assertions.assertEquals("al", model.packageRelativePath());
- Assertions.assertEquals(false, model.isRegularRegistration());
- Assertions.assertEquals(true, model.isActive());
- Assertions.assertEquals("ex", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("wueluqhhahhxv", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("mzkwpjg", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("vdkfwynwcvtbvk", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T18:46:20Z"), model.lastUpdated());
- Assertions.assertEquals("vyqia", model.packageApplications().get(0).appId());
- Assertions.assertEquals("zwpcnpwzcjaesg", model.packageApplications().get(0).description());
- Assertions.assertEquals("sccyajguqf", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("ygz", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("dnkfx", model.packageApplications().get(0).iconImageName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageListTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageListTests.java
deleted file mode 100644
index 678cea729932..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImageListTests.java
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ExpandMsixImageInner;
-import com.azure.resourcemanager.desktopvirtualization.models.ExpandMsixImageList;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExpandMsixImageListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExpandMsixImageList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"packageAlias\":\"dbodacizsjqlhkrr\",\"imagePath\":\"deibqip\",\"packageName\":\"ghvxndzwmkrefa\",\"packageFamilyName\":\"jorwkqnyhgbij\",\"packageFullName\":\"ivfxzsjabibsyst\",\"displayName\":\"fsdjpvkvp\",\"packageRelativePath\":\"xbkzbzkdvncj\",\"isRegularRegistration\":true,\"isActive\":true,\"packageDependencies\":[],\"version\":\"kakmokzh\",\"lastUpdated\":\"2021-06-24T09:54:49Z\",\"packageApplications\":[]},\"id\":\"ffhmouwqlgzr\",\"name\":\"zeeyebi\",\"type\":\"ikayuhqlbjbsybb\"},{\"properties\":{\"packageAlias\":\"vtldgmfpgvmpip\",\"imagePath\":\"ltha\",\"packageName\":\"x\",\"packageFamilyName\":\"mwutwbdsre\",\"packageFullName\":\"drhneuyow\",\"displayName\":\"d\",\"packageRelativePath\":\"t\",\"isRegularRegistration\":false,\"isActive\":true,\"packageDependencies\":[],\"version\":\"gpikpzimejza\",\"lastUpdated\":\"2021-08-16T12:50:07Z\",\"packageApplications\":[]},\"id\":\"xi\",\"name\":\"vrmbzono\",\"type\":\"i\"}],\"nextLink\":\"jq\"}")
- .toObject(ExpandMsixImageList.class);
- Assertions.assertEquals("dbodacizsjqlhkrr", model.value().get(0).packageAlias());
- Assertions.assertEquals("deibqip", model.value().get(0).imagePath());
- Assertions.assertEquals("ghvxndzwmkrefa", model.value().get(0).packageName());
- Assertions.assertEquals("jorwkqnyhgbij", model.value().get(0).packageFamilyName());
- Assertions.assertEquals("ivfxzsjabibsyst", model.value().get(0).packageFullName());
- Assertions.assertEquals("fsdjpvkvp", model.value().get(0).displayName());
- Assertions.assertEquals("xbkzbzkdvncj", model.value().get(0).packageRelativePath());
- Assertions.assertEquals(true, model.value().get(0).isRegularRegistration());
- Assertions.assertEquals(true, model.value().get(0).isActive());
- Assertions.assertEquals("kakmokzh", model.value().get(0).version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T09:54:49Z"), model.value().get(0).lastUpdated());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExpandMsixImageList model =
- new ExpandMsixImageList()
- .withValue(
- Arrays
- .asList(
- new ExpandMsixImageInner()
- .withPackageAlias("dbodacizsjqlhkrr")
- .withImagePath("deibqip")
- .withPackageName("ghvxndzwmkrefa")
- .withPackageFamilyName("jorwkqnyhgbij")
- .withPackageFullName("ivfxzsjabibsyst")
- .withDisplayName("fsdjpvkvp")
- .withPackageRelativePath("xbkzbzkdvncj")
- .withIsRegularRegistration(true)
- .withIsActive(true)
- .withPackageDependencies(Arrays.asList())
- .withVersion("kakmokzh")
- .withLastUpdated(OffsetDateTime.parse("2021-06-24T09:54:49Z"))
- .withPackageApplications(Arrays.asList()),
- new ExpandMsixImageInner()
- .withPackageAlias("vtldgmfpgvmpip")
- .withImagePath("ltha")
- .withPackageName("x")
- .withPackageFamilyName("mwutwbdsre")
- .withPackageFullName("drhneuyow")
- .withDisplayName("d")
- .withPackageRelativePath("t")
- .withIsRegularRegistration(false)
- .withIsActive(true)
- .withPackageDependencies(Arrays.asList())
- .withVersion("gpikpzimejza")
- .withLastUpdated(OffsetDateTime.parse("2021-08-16T12:50:07Z"))
- .withPackageApplications(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(ExpandMsixImageList.class);
- Assertions.assertEquals("dbodacizsjqlhkrr", model.value().get(0).packageAlias());
- Assertions.assertEquals("deibqip", model.value().get(0).imagePath());
- Assertions.assertEquals("ghvxndzwmkrefa", model.value().get(0).packageName());
- Assertions.assertEquals("jorwkqnyhgbij", model.value().get(0).packageFamilyName());
- Assertions.assertEquals("ivfxzsjabibsyst", model.value().get(0).packageFullName());
- Assertions.assertEquals("fsdjpvkvp", model.value().get(0).displayName());
- Assertions.assertEquals("xbkzbzkdvncj", model.value().get(0).packageRelativePath());
- Assertions.assertEquals(true, model.value().get(0).isRegularRegistration());
- Assertions.assertEquals(true, model.value().get(0).isActive());
- Assertions.assertEquals("kakmokzh", model.value().get(0).version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T09:54:49Z"), model.value().get(0).lastUpdated());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImagePropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImagePropertiesTests.java
deleted file mode 100644
index 2682a6662ef0..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/ExpandMsixImagePropertiesTests.java
+++ /dev/null
@@ -1,110 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.ExpandMsixImageProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExpandMsixImagePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExpandMsixImageProperties model =
- BinaryData
- .fromString(
- "{\"packageAlias\":\"fiibfggjioolvr\",\"imagePath\":\"kvtkkg\",\"packageName\":\"qwjygvja\",\"packageFamilyName\":\"blmhvkzuhb\",\"packageFullName\":\"vyhgs\",\"displayName\":\"byrqufeg\",\"packageRelativePath\":\"vwz\",\"isRegularRegistration\":true,\"isActive\":false,\"packageDependencies\":[{\"dependencyName\":\"l\",\"publisher\":\"ngitvgbmhrixkwm\",\"minVersion\":\"jejveg\"},{\"dependencyName\":\"bpnaixexccbdre\",\"publisher\":\"hcexdrrvqa\",\"minVersion\":\"kghtpwijnh\"},{\"dependencyName\":\"svfycxzbfv\",\"publisher\":\"wvrvmtg\",\"minVersion\":\"ppyostronzmyhgf\"}],\"version\":\"nsxkmcwaekrrjr\",\"lastUpdated\":\"2021-03-26T11:48:46Z\",\"packageApplications\":[{\"appId\":\"gumhjglikkxws\",\"description\":\"lbqpvuzlmvfelf\",\"appUserModelID\":\"gplcrpwjxeznoigb\",\"friendlyName\":\"jwmwkpnbs\",\"iconImageName\":\"ejjoqkagfhsxtta\"},{\"appId\":\"nfaazpxdtnkdmkq\",\"description\":\"lwuenvrkp\",\"appUserModelID\":\"uaibrebqaaysj\",\"friendlyName\":\"xqtnq\",\"iconImageName\":\"ezl\"}]}")
- .toObject(ExpandMsixImageProperties.class);
- Assertions.assertEquals("fiibfggjioolvr", model.packageAlias());
- Assertions.assertEquals("kvtkkg", model.imagePath());
- Assertions.assertEquals("qwjygvja", model.packageName());
- Assertions.assertEquals("blmhvkzuhb", model.packageFamilyName());
- Assertions.assertEquals("vyhgs", model.packageFullName());
- Assertions.assertEquals("byrqufeg", model.displayName());
- Assertions.assertEquals("vwz", model.packageRelativePath());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals("l", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("ngitvgbmhrixkwm", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("jejveg", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("nsxkmcwaekrrjr", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T11:48:46Z"), model.lastUpdated());
- Assertions.assertEquals("gumhjglikkxws", model.packageApplications().get(0).appId());
- Assertions.assertEquals("lbqpvuzlmvfelf", model.packageApplications().get(0).description());
- Assertions.assertEquals("gplcrpwjxeznoigb", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("jwmwkpnbs", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("ejjoqkagfhsxtta", model.packageApplications().get(0).iconImageName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExpandMsixImageProperties model =
- new ExpandMsixImageProperties()
- .withPackageAlias("fiibfggjioolvr")
- .withImagePath("kvtkkg")
- .withPackageName("qwjygvja")
- .withPackageFamilyName("blmhvkzuhb")
- .withPackageFullName("vyhgs")
- .withDisplayName("byrqufeg")
- .withPackageRelativePath("vwz")
- .withIsRegularRegistration(true)
- .withIsActive(false)
- .withPackageDependencies(
- Arrays
- .asList(
- new MsixPackageDependencies()
- .withDependencyName("l")
- .withPublisher("ngitvgbmhrixkwm")
- .withMinVersion("jejveg"),
- new MsixPackageDependencies()
- .withDependencyName("bpnaixexccbdre")
- .withPublisher("hcexdrrvqa")
- .withMinVersion("kghtpwijnh"),
- new MsixPackageDependencies()
- .withDependencyName("svfycxzbfv")
- .withPublisher("wvrvmtg")
- .withMinVersion("ppyostronzmyhgf")))
- .withVersion("nsxkmcwaekrrjr")
- .withLastUpdated(OffsetDateTime.parse("2021-03-26T11:48:46Z"))
- .withPackageApplications(
- Arrays
- .asList(
- new MsixPackageApplications()
- .withAppId("gumhjglikkxws")
- .withDescription("lbqpvuzlmvfelf")
- .withAppUserModelId("gplcrpwjxeznoigb")
- .withFriendlyName("jwmwkpnbs")
- .withIconImageName("ejjoqkagfhsxtta"),
- new MsixPackageApplications()
- .withAppId("nfaazpxdtnkdmkq")
- .withDescription("lwuenvrkp")
- .withAppUserModelId("uaibrebqaaysj")
- .withFriendlyName("xqtnq")
- .withIconImageName("ezl")));
- model = BinaryData.fromObject(model).toObject(ExpandMsixImageProperties.class);
- Assertions.assertEquals("fiibfggjioolvr", model.packageAlias());
- Assertions.assertEquals("kvtkkg", model.imagePath());
- Assertions.assertEquals("qwjygvja", model.packageName());
- Assertions.assertEquals("blmhvkzuhb", model.packageFamilyName());
- Assertions.assertEquals("vyhgs", model.packageFullName());
- Assertions.assertEquals("byrqufeg", model.displayName());
- Assertions.assertEquals("vwz", model.packageRelativePath());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals("l", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("ngitvgbmhrixkwm", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("jejveg", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("nsxkmcwaekrrjr", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T11:48:46Z"), model.lastUpdated());
- Assertions.assertEquals("gumhjglikkxws", model.packageApplications().get(0).appId());
- Assertions.assertEquals("lbqpvuzlmvfelf", model.packageApplications().get(0).description());
- Assertions.assertEquals("gplcrpwjxeznoigb", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("jwmwkpnbs", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("ejjoqkagfhsxtta", model.packageApplications().get(0).iconImageName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteWithResponseMockTests.java
deleted file mode 100644
index 3a794a58bd88..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/HostPoolsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class HostPoolsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .hostPools()
- .deleteWithResponse("belawumuaslzkwr", "woycqucwyha", true, com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/IdentityTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/IdentityTests.java
deleted file mode 100644
index 65f3dcaa6bed..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/IdentityTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.Identity;
-import com.azure.resourcemanager.desktopvirtualization.models.ResourceIdentityType;
-import org.junit.jupiter.api.Assertions;
-
-public final class IdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Identity model =
- BinaryData
- .fromString("{\"principalId\":\"w\",\"tenantId\":\"lryplwckbasyy\",\"type\":\"SystemAssigned\"}")
- .toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Identity model = new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED);
- model = BinaryData.fromObject(model).toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/LogSpecificationTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/LogSpecificationTests.java
deleted file mode 100644
index eed2ef4f6a66..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/LogSpecificationTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.LogSpecification;
-import org.junit.jupiter.api.Assertions;
-
-public final class LogSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LogSpecification model =
- BinaryData
- .fromString(
- "{\"name\":\"wmfdatscmdvpjhul\",\"displayName\":\"uvm\",\"blobDuration\":\"ozkrwfndiodjpslw\"}")
- .toObject(LogSpecification.class);
- Assertions.assertEquals("wmfdatscmdvpjhul", model.name());
- Assertions.assertEquals("uvm", model.displayName());
- Assertions.assertEquals("ozkrwfndiodjpslw", model.blobDuration());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LogSpecification model =
- new LogSpecification()
- .withName("wmfdatscmdvpjhul")
- .withDisplayName("uvm")
- .withBlobDuration("ozkrwfndiodjpslw");
- model = BinaryData.fromObject(model).toObject(LogSpecification.class);
- Assertions.assertEquals("wmfdatscmdvpjhul", model.name());
- Assertions.assertEquals("uvm", model.displayName());
- Assertions.assertEquals("ozkrwfndiodjpslw", model.blobDuration());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPatchPropertiesTests.java
deleted file mode 100644
index eae1f0f8ea01..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPatchPropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
-import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowPatchProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class MaintenanceWindowPatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MaintenanceWindowPatchProperties model =
- BinaryData
- .fromString("{\"hour\":1586709440,\"dayOfWeek\":\"Tuesday\"}")
- .toObject(MaintenanceWindowPatchProperties.class);
- Assertions.assertEquals(1586709440, model.hour());
- Assertions.assertEquals(DayOfWeek.TUESDAY, model.dayOfWeek());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MaintenanceWindowPatchProperties model =
- new MaintenanceWindowPatchProperties().withHour(1586709440).withDayOfWeek(DayOfWeek.TUESDAY);
- model = BinaryData.fromObject(model).toObject(MaintenanceWindowPatchProperties.class);
- Assertions.assertEquals(1586709440, model.hour());
- Assertions.assertEquals(DayOfWeek.TUESDAY, model.dayOfWeek());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPropertiesTests.java
deleted file mode 100644
index 8f3e49e8e82d..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MaintenanceWindowPropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
-import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class MaintenanceWindowPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MaintenanceWindowProperties model =
- BinaryData
- .fromString("{\"hour\":1591764317,\"dayOfWeek\":\"Sunday\"}")
- .toObject(MaintenanceWindowProperties.class);
- Assertions.assertEquals(1591764317, model.hour());
- Assertions.assertEquals(DayOfWeek.SUNDAY, model.dayOfWeek());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MaintenanceWindowProperties model =
- new MaintenanceWindowProperties().withHour(1591764317).withDayOfWeek(DayOfWeek.SUNDAY);
- model = BinaryData.fromObject(model).toObject(MaintenanceWindowProperties.class);
- Assertions.assertEquals(1591764317, model.hour());
- Assertions.assertEquals(DayOfWeek.SUNDAY, model.dayOfWeek());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImageUriTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImageUriTests.java
deleted file mode 100644
index 52c9b7c768ab..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImageUriTests.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixImageUri;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixImageUriTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixImageUri model = BinaryData.fromString("{\"uri\":\"nyowxwlmdjrkvfg\"}").toObject(MsixImageUri.class);
- Assertions.assertEquals("nyowxwlmdjrkvfg", model.uri());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixImageUri model = new MsixImageUri().withUri("nyowxwlmdjrkvfg");
- model = BinaryData.fromObject(model).toObject(MsixImageUri.class);
- Assertions.assertEquals("nyowxwlmdjrkvfg", model.uri());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandMockTests.java
deleted file mode 100644
index ecf9afc97265..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixImagesExpandMockTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.ExpandMsixImage;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixImageUri;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class MsixImagesExpandMockTests {
- @Test
- public void testExpand() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"packageAlias\":\"jcxcjxgrytfmpcyc\",\"imagePath\":\"rmcaykgg\",\"packageName\":\"xu\",\"packageFamilyName\":\"rksxwpndfc\",\"packageFullName\":\"nznthjtw\",\"displayName\":\"aosrxuz\",\"packageRelativePath\":\"amktcqiosmgbzah\",\"isRegularRegistration\":false,\"isActive\":true,\"packageDependencies\":[],\"version\":\"ltlaprltzkatbhj\",\"lastUpdated\":\"2021-11-12T18:26:07Z\",\"packageApplications\":[]},\"id\":\"s\",\"name\":\"qeqala\",\"type\":\"vlagun\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DesktopVirtualizationManager manager =
- DesktopVirtualizationManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .msixImages()
- .expand("vefloccsrmozihmi", "g", new MsixImageUri().withUri("txx"), com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("jcxcjxgrytfmpcyc", response.iterator().next().packageAlias());
- Assertions.assertEquals("rmcaykgg", response.iterator().next().imagePath());
- Assertions.assertEquals("xu", response.iterator().next().packageName());
- Assertions.assertEquals("rksxwpndfc", response.iterator().next().packageFamilyName());
- Assertions.assertEquals("nznthjtw", response.iterator().next().packageFullName());
- Assertions.assertEquals("aosrxuz", response.iterator().next().displayName());
- Assertions.assertEquals("amktcqiosmgbzah", response.iterator().next().packageRelativePath());
- Assertions.assertEquals(false, response.iterator().next().isRegularRegistration());
- Assertions.assertEquals(true, response.iterator().next().isActive());
- Assertions.assertEquals("ltlaprltzkatbhj", response.iterator().next().version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T18:26:07Z"), response.iterator().next().lastUpdated());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageApplicationsTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageApplicationsTests.java
deleted file mode 100644
index 05538f6e5784..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageApplicationsTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackageApplicationsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackageApplications model =
- BinaryData
- .fromString(
- "{\"appId\":\"yylhalnswhccsp\",\"description\":\"aivwitqscywu\",\"appUserModelID\":\"woluhczbwemhair\",\"friendlyName\":\"rgzdwmsweyp\",\"iconImageName\":\"dxggicccnxqhuexm\"}")
- .toObject(MsixPackageApplications.class);
- Assertions.assertEquals("yylhalnswhccsp", model.appId());
- Assertions.assertEquals("aivwitqscywu", model.description());
- Assertions.assertEquals("woluhczbwemhair", model.appUserModelId());
- Assertions.assertEquals("rgzdwmsweyp", model.friendlyName());
- Assertions.assertEquals("dxggicccnxqhuexm", model.iconImageName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackageApplications model =
- new MsixPackageApplications()
- .withAppId("yylhalnswhccsp")
- .withDescription("aivwitqscywu")
- .withAppUserModelId("woluhczbwemhair")
- .withFriendlyName("rgzdwmsweyp")
- .withIconImageName("dxggicccnxqhuexm");
- model = BinaryData.fromObject(model).toObject(MsixPackageApplications.class);
- Assertions.assertEquals("yylhalnswhccsp", model.appId());
- Assertions.assertEquals("aivwitqscywu", model.description());
- Assertions.assertEquals("woluhczbwemhair", model.appUserModelId());
- Assertions.assertEquals("rgzdwmsweyp", model.friendlyName());
- Assertions.assertEquals("dxggicccnxqhuexm", model.iconImageName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageDependenciesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageDependenciesTests.java
deleted file mode 100644
index 26aef8890ed8..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageDependenciesTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackageDependenciesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackageDependencies model =
- BinaryData
- .fromString("{\"dependencyName\":\"zqhof\",\"publisher\":\"maequiahxicslfa\",\"minVersion\":\"z\"}")
- .toObject(MsixPackageDependencies.class);
- Assertions.assertEquals("zqhof", model.dependencyName());
- Assertions.assertEquals("maequiahxicslfa", model.publisher());
- Assertions.assertEquals("z", model.minVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackageDependencies model =
- new MsixPackageDependencies()
- .withDependencyName("zqhof")
- .withPublisher("maequiahxicslfa")
- .withMinVersion("z");
- model = BinaryData.fromObject(model).toObject(MsixPackageDependencies.class);
- Assertions.assertEquals("zqhof", model.dependencyName());
- Assertions.assertEquals("maequiahxicslfa", model.publisher());
- Assertions.assertEquals("z", model.minVersion());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageInnerTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageInnerTests.java
deleted file mode 100644
index ef6d02c1e3c8..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageInnerTests.java
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.MsixPackageInner;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackageInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackageInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"imagePath\":\"xoruzfgsquyfxrx\",\"packageName\":\"eptra\",\"packageFamilyName\":\"jezwlwnw\",\"displayName\":\"qlcvydy\",\"packageRelativePath\":\"tdooaoj\",\"isRegularRegistration\":true,\"isActive\":true,\"packageDependencies\":[{\"dependencyName\":\"ebwnujhe\",\"publisher\":\"sbvdkcrodtjinfw\",\"minVersion\":\"fltkacjv\"}],\"version\":\"kdlfoa\",\"lastUpdated\":\"2020-12-29T16:57:58Z\",\"packageApplications\":[{\"appId\":\"agaowpulpqblylsy\",\"description\":\"qjnsjervtia\",\"appUserModelID\":\"sdszue\",\"friendlyName\":\"sbzkf\",\"iconImageName\":\"eyvpnqicvinvkj\"},{\"appId\":\"rbuukzclewyhmlwp\",\"description\":\"tzpofncckwyfzq\",\"appUserModelID\":\"xxbuyq\",\"friendlyName\":\"zfeqztppri\",\"iconImageName\":\"xorjaltolmncwsob\"},{\"appId\":\"dbnw\",\"description\":\"fhucqdpfuv\",\"appUserModelID\":\"sbjjc\",\"friendlyName\":\"vxb\",\"iconImageName\":\"vudutncor\"}]},\"id\":\"xqtvcofu\",\"name\":\"f\",\"type\":\"vkg\"}")
- .toObject(MsixPackageInner.class);
- Assertions.assertEquals("xoruzfgsquyfxrx", model.imagePath());
- Assertions.assertEquals("eptra", model.packageName());
- Assertions.assertEquals("jezwlwnw", model.packageFamilyName());
- Assertions.assertEquals("qlcvydy", model.displayName());
- Assertions.assertEquals("tdooaoj", model.packageRelativePath());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals(true, model.isActive());
- Assertions.assertEquals("ebwnujhe", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("sbvdkcrodtjinfw", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("fltkacjv", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("kdlfoa", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T16:57:58Z"), model.lastUpdated());
- Assertions.assertEquals("agaowpulpqblylsy", model.packageApplications().get(0).appId());
- Assertions.assertEquals("qjnsjervtia", model.packageApplications().get(0).description());
- Assertions.assertEquals("sdszue", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("sbzkf", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("eyvpnqicvinvkj", model.packageApplications().get(0).iconImageName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackageInner model =
- new MsixPackageInner()
- .withImagePath("xoruzfgsquyfxrx")
- .withPackageName("eptra")
- .withPackageFamilyName("jezwlwnw")
- .withDisplayName("qlcvydy")
- .withPackageRelativePath("tdooaoj")
- .withIsRegularRegistration(true)
- .withIsActive(true)
- .withPackageDependencies(
- Arrays
- .asList(
- new MsixPackageDependencies()
- .withDependencyName("ebwnujhe")
- .withPublisher("sbvdkcrodtjinfw")
- .withMinVersion("fltkacjv")))
- .withVersion("kdlfoa")
- .withLastUpdated(OffsetDateTime.parse("2020-12-29T16:57:58Z"))
- .withPackageApplications(
- Arrays
- .asList(
- new MsixPackageApplications()
- .withAppId("agaowpulpqblylsy")
- .withDescription("qjnsjervtia")
- .withAppUserModelId("sdszue")
- .withFriendlyName("sbzkf")
- .withIconImageName("eyvpnqicvinvkj"),
- new MsixPackageApplications()
- .withAppId("rbuukzclewyhmlwp")
- .withDescription("tzpofncckwyfzq")
- .withAppUserModelId("xxbuyq")
- .withFriendlyName("zfeqztppri")
- .withIconImageName("xorjaltolmncwsob"),
- new MsixPackageApplications()
- .withAppId("dbnw")
- .withDescription("fhucqdpfuv")
- .withAppUserModelId("sbjjc")
- .withFriendlyName("vxb")
- .withIconImageName("vudutncor")));
- model = BinaryData.fromObject(model).toObject(MsixPackageInner.class);
- Assertions.assertEquals("xoruzfgsquyfxrx", model.imagePath());
- Assertions.assertEquals("eptra", model.packageName());
- Assertions.assertEquals("jezwlwnw", model.packageFamilyName());
- Assertions.assertEquals("qlcvydy", model.displayName());
- Assertions.assertEquals("tdooaoj", model.packageRelativePath());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals(true, model.isActive());
- Assertions.assertEquals("ebwnujhe", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("sbvdkcrodtjinfw", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("fltkacjv", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("kdlfoa", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T16:57:58Z"), model.lastUpdated());
- Assertions.assertEquals("agaowpulpqblylsy", model.packageApplications().get(0).appId());
- Assertions.assertEquals("qjnsjervtia", model.packageApplications().get(0).description());
- Assertions.assertEquals("sdszue", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("sbzkf", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("eyvpnqicvinvkj", model.packageApplications().get(0).iconImageName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageListTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageListTests.java
deleted file mode 100644
index f03895ca4046..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackageListTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.MsixPackageInner;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageList;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackageListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackageList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"imagePath\":\"r\",\"packageName\":\"vu\",\"packageFamilyName\":\"raehtwdwrft\",\"displayName\":\"iby\",\"packageRelativePath\":\"dl\",\"isRegularRegistration\":true,\"isActive\":true,\"packageDependencies\":[],\"version\":\"racstwity\",\"lastUpdated\":\"2021-10-09T17:15:47Z\",\"packageApplications\":[]},\"id\":\"xccedcpnmdyodn\",\"name\":\"zxltjcvn\",\"type\":\"ltiugcxnavv\"}],\"nextLink\":\"qiby\"}")
- .toObject(MsixPackageList.class);
- Assertions.assertEquals("r", model.value().get(0).imagePath());
- Assertions.assertEquals("vu", model.value().get(0).packageName());
- Assertions.assertEquals("raehtwdwrft", model.value().get(0).packageFamilyName());
- Assertions.assertEquals("iby", model.value().get(0).displayName());
- Assertions.assertEquals("dl", model.value().get(0).packageRelativePath());
- Assertions.assertEquals(true, model.value().get(0).isRegularRegistration());
- Assertions.assertEquals(true, model.value().get(0).isActive());
- Assertions.assertEquals("racstwity", model.value().get(0).version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T17:15:47Z"), model.value().get(0).lastUpdated());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackageList model =
- new MsixPackageList()
- .withValue(
- Arrays
- .asList(
- new MsixPackageInner()
- .withImagePath("r")
- .withPackageName("vu")
- .withPackageFamilyName("raehtwdwrft")
- .withDisplayName("iby")
- .withPackageRelativePath("dl")
- .withIsRegularRegistration(true)
- .withIsActive(true)
- .withPackageDependencies(Arrays.asList())
- .withVersion("racstwity")
- .withLastUpdated(OffsetDateTime.parse("2021-10-09T17:15:47Z"))
- .withPackageApplications(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(MsixPackageList.class);
- Assertions.assertEquals("r", model.value().get(0).imagePath());
- Assertions.assertEquals("vu", model.value().get(0).packageName());
- Assertions.assertEquals("raehtwdwrft", model.value().get(0).packageFamilyName());
- Assertions.assertEquals("iby", model.value().get(0).displayName());
- Assertions.assertEquals("dl", model.value().get(0).packageRelativePath());
- Assertions.assertEquals(true, model.value().get(0).isRegularRegistration());
- Assertions.assertEquals(true, model.value().get(0).isActive());
- Assertions.assertEquals("racstwity", model.value().get(0).version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T17:15:47Z"), model.value().get(0).lastUpdated());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchPropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchPropertiesTests.java
deleted file mode 100644
index feeefc31a642..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchPropertiesTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.MsixPackagePatchProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackagePatchPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackagePatchProperties model =
- BinaryData
- .fromString("{\"isActive\":false,\"isRegularRegistration\":true,\"displayName\":\"pelol\"}")
- .toObject(MsixPackagePatchProperties.class);
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals("pelol", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackagePatchProperties model =
- new MsixPackagePatchProperties()
- .withIsActive(false)
- .withIsRegularRegistration(true)
- .withDisplayName("pelol");
- model = BinaryData.fromObject(model).toObject(MsixPackagePatchProperties.class);
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals("pelol", model.displayName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchTests.java
deleted file mode 100644
index 759ae02dc0ca..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePatchTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackagePatch;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackagePatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackagePatch model =
- BinaryData
- .fromString(
- "{\"properties\":{\"isActive\":false,\"isRegularRegistration\":true,\"displayName\":\"ywemhzrn\"},\"id\":\"sdtclusiypbs\",\"name\":\"gytguslfead\",\"type\":\"ygqukyhejh\"}")
- .toObject(MsixPackagePatch.class);
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals("ywemhzrn", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackagePatch model =
- new MsixPackagePatch().withIsActive(false).withIsRegularRegistration(true).withDisplayName("ywemhzrn");
- model = BinaryData.fromObject(model).toObject(MsixPackagePatch.class);
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals(true, model.isRegularRegistration());
- Assertions.assertEquals("ywemhzrn", model.displayName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePropertiesTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePropertiesTests.java
deleted file mode 100644
index f1b4f63d4f39..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagePropertiesTests.java
+++ /dev/null
@@ -1,112 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.MsixPackageProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class MsixPackagePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MsixPackageProperties model =
- BinaryData
- .fromString(
- "{\"imagePath\":\"bgdknnqv\",\"packageName\":\"znqntoru\",\"packageFamilyName\":\"gsahmkycgrauw\",\"displayName\":\"etaebu\",\"packageRelativePath\":\"vdmovsmzlxwabm\",\"isRegularRegistration\":false,\"isActive\":false,\"packageDependencies\":[{\"dependencyName\":\"vtpuqujmqlgk\",\"publisher\":\"tndoaongbjc\",\"minVersion\":\"ujitcjedftww\"},{\"dependencyName\":\"zkoj\",\"publisher\":\"c\",\"minVersion\":\"foqouicybx\"}],\"version\":\"zg\",\"lastUpdated\":\"2021-08-24T17:23:35Z\",\"packageApplications\":[{\"appId\":\"ciqopidoa\",\"description\":\"iodhkhazxkhnz\",\"appUserModelID\":\"nlwntoe\",\"friendlyName\":\"kdwbwhkszz\",\"iconImageName\":\"rvexztvb\"},{\"appId\":\"frao\",\"description\":\"koowtl\",\"appUserModelID\":\"guxawqaldsyuuxi\",\"friendlyName\":\"rqf\",\"iconImageName\":\"wyznkbyku\"},{\"appId\":\"hpagm\",\"description\":\"skdsnfdsdoakg\",\"appUserModelID\":\"lmkk\",\"friendlyName\":\"vdlhewpusdsttwv\",\"iconImageName\":\"vbbejdcng\"},{\"appId\":\"akufgmjz\",\"description\":\"rdgrtw\",\"appUserModelID\":\"nuuzkopbm\",\"friendlyName\":\"rfdwoyu\",\"iconImageName\":\"ziuiefozbhdm\"}]}")
- .toObject(MsixPackageProperties.class);
- Assertions.assertEquals("bgdknnqv", model.imagePath());
- Assertions.assertEquals("znqntoru", model.packageName());
- Assertions.assertEquals("gsahmkycgrauw", model.packageFamilyName());
- Assertions.assertEquals("etaebu", model.displayName());
- Assertions.assertEquals("vdmovsmzlxwabm", model.packageRelativePath());
- Assertions.assertEquals(false, model.isRegularRegistration());
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals("vtpuqujmqlgk", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("tndoaongbjc", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("ujitcjedftww", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("zg", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T17:23:35Z"), model.lastUpdated());
- Assertions.assertEquals("ciqopidoa", model.packageApplications().get(0).appId());
- Assertions.assertEquals("iodhkhazxkhnz", model.packageApplications().get(0).description());
- Assertions.assertEquals("nlwntoe", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("kdwbwhkszz", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("rvexztvb", model.packageApplications().get(0).iconImageName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MsixPackageProperties model =
- new MsixPackageProperties()
- .withImagePath("bgdknnqv")
- .withPackageName("znqntoru")
- .withPackageFamilyName("gsahmkycgrauw")
- .withDisplayName("etaebu")
- .withPackageRelativePath("vdmovsmzlxwabm")
- .withIsRegularRegistration(false)
- .withIsActive(false)
- .withPackageDependencies(
- Arrays
- .asList(
- new MsixPackageDependencies()
- .withDependencyName("vtpuqujmqlgk")
- .withPublisher("tndoaongbjc")
- .withMinVersion("ujitcjedftww"),
- new MsixPackageDependencies()
- .withDependencyName("zkoj")
- .withPublisher("c")
- .withMinVersion("foqouicybx")))
- .withVersion("zg")
- .withLastUpdated(OffsetDateTime.parse("2021-08-24T17:23:35Z"))
- .withPackageApplications(
- Arrays
- .asList(
- new MsixPackageApplications()
- .withAppId("ciqopidoa")
- .withDescription("iodhkhazxkhnz")
- .withAppUserModelId("nlwntoe")
- .withFriendlyName("kdwbwhkszz")
- .withIconImageName("rvexztvb"),
- new MsixPackageApplications()
- .withAppId("frao")
- .withDescription("koowtl")
- .withAppUserModelId("guxawqaldsyuuxi")
- .withFriendlyName("rqf")
- .withIconImageName("wyznkbyku"),
- new MsixPackageApplications()
- .withAppId("hpagm")
- .withDescription("skdsnfdsdoakg")
- .withAppUserModelId("lmkk")
- .withFriendlyName("vdlhewpusdsttwv")
- .withIconImageName("vbbejdcng"),
- new MsixPackageApplications()
- .withAppId("akufgmjz")
- .withDescription("rdgrtw")
- .withAppUserModelId("nuuzkopbm")
- .withFriendlyName("rfdwoyu")
- .withIconImageName("ziuiefozbhdm")));
- model = BinaryData.fromObject(model).toObject(MsixPackageProperties.class);
- Assertions.assertEquals("bgdknnqv", model.imagePath());
- Assertions.assertEquals("znqntoru", model.packageName());
- Assertions.assertEquals("gsahmkycgrauw", model.packageFamilyName());
- Assertions.assertEquals("etaebu", model.displayName());
- Assertions.assertEquals("vdmovsmzlxwabm", model.packageRelativePath());
- Assertions.assertEquals(false, model.isRegularRegistration());
- Assertions.assertEquals(false, model.isActive());
- Assertions.assertEquals("vtpuqujmqlgk", model.packageDependencies().get(0).dependencyName());
- Assertions.assertEquals("tndoaongbjc", model.packageDependencies().get(0).publisher());
- Assertions.assertEquals("ujitcjedftww", model.packageDependencies().get(0).minVersion());
- Assertions.assertEquals("zg", model.version());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T17:23:35Z"), model.lastUpdated());
- Assertions.assertEquals("ciqopidoa", model.packageApplications().get(0).appId());
- Assertions.assertEquals("iodhkhazxkhnz", model.packageApplications().get(0).description());
- Assertions.assertEquals("nlwntoe", model.packageApplications().get(0).appUserModelId());
- Assertions.assertEquals("kdwbwhkszz", model.packageApplications().get(0).friendlyName());
- Assertions.assertEquals("rvexztvb", model.packageApplications().get(0).iconImageName());
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateWithResponseMockTests.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index 2976999f760a..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/test/java/com/azure/resourcemanager/desktopvirtualization/generated/MsixPackagesCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager;
-import com.azure.resourcemanager.desktopvirtualization.models.MsixPackage;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class MsixPackagesCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor