|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | +// Code generated by Microsoft (R) AutoRest Code Generator. |
| 4 | + |
| 5 | +package com.azure.resourcemanager.desktopvirtualization.fluent; |
| 6 | + |
| 7 | +import com.azure.core.annotation.ReturnType; |
| 8 | +import com.azure.core.annotation.ServiceMethod; |
| 9 | +import com.azure.core.http.rest.PagedFlux; |
| 10 | +import com.azure.core.http.rest.PagedIterable; |
| 11 | +import com.azure.core.http.rest.Response; |
| 12 | +import com.azure.core.util.Context; |
| 13 | +import com.azure.resourcemanager.desktopvirtualization.fluent.models.ActiveSessionHostConfigurationInner; |
| 14 | +import reactor.core.publisher.Mono; |
| 15 | + |
| 16 | +/** |
| 17 | + * An instance of this class provides access to all the operations defined in ActiveSessionHostConfigurationsClient. |
| 18 | + */ |
| 19 | +public interface ActiveSessionHostConfigurationsClient { |
| 20 | + /** |
| 21 | + * Operation to list the ActiveSessionHostConfigurations associated with the HostPool. |
| 22 | + * |
| 23 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 24 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 25 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 26 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 27 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 28 | + * @return list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedFlux}. |
| 29 | + */ |
| 30 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 31 | + PagedFlux<ActiveSessionHostConfigurationInner> listByHostPoolAsync(String resourceGroupName, String hostPoolName); |
| 32 | + |
| 33 | + /** |
| 34 | + * Operation to list the ActiveSessionHostConfigurations associated with the HostPool. |
| 35 | + * |
| 36 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 37 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 38 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 39 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 40 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 41 | + * @return list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}. |
| 42 | + */ |
| 43 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 44 | + PagedIterable<ActiveSessionHostConfigurationInner> listByHostPool(String resourceGroupName, String hostPoolName); |
| 45 | + |
| 46 | + /** |
| 47 | + * Operation to list the ActiveSessionHostConfigurations associated with the HostPool. |
| 48 | + * |
| 49 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 50 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 51 | + * @param context The context to associate with this operation. |
| 52 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 53 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 54 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 55 | + * @return list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}. |
| 56 | + */ |
| 57 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 58 | + PagedIterable<ActiveSessionHostConfigurationInner> listByHostPool(String resourceGroupName, String hostPoolName, |
| 59 | + Context context); |
| 60 | + |
| 61 | + /** |
| 62 | + * Get a ActiveSessionHostConfiguration. |
| 63 | + * |
| 64 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 65 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 66 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 67 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 68 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 69 | + * @return a ActiveSessionHostConfiguration along with {@link Response} on successful completion of {@link Mono}. |
| 70 | + */ |
| 71 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 72 | + Mono<Response<ActiveSessionHostConfigurationInner>> getWithResponseAsync(String resourceGroupName, |
| 73 | + String hostPoolName); |
| 74 | + |
| 75 | + /** |
| 76 | + * Get a ActiveSessionHostConfiguration. |
| 77 | + * |
| 78 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 79 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 80 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 81 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 82 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 83 | + * @return a ActiveSessionHostConfiguration on successful completion of {@link Mono}. |
| 84 | + */ |
| 85 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 86 | + Mono<ActiveSessionHostConfigurationInner> getAsync(String resourceGroupName, String hostPoolName); |
| 87 | + |
| 88 | + /** |
| 89 | + * Get a ActiveSessionHostConfiguration. |
| 90 | + * |
| 91 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 92 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 93 | + * @param context The context to associate with this operation. |
| 94 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 95 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 96 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 97 | + * @return a ActiveSessionHostConfiguration along with {@link Response}. |
| 98 | + */ |
| 99 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 100 | + Response<ActiveSessionHostConfigurationInner> getWithResponse(String resourceGroupName, String hostPoolName, |
| 101 | + Context context); |
| 102 | + |
| 103 | + /** |
| 104 | + * Get a ActiveSessionHostConfiguration. |
| 105 | + * |
| 106 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 107 | + * @param hostPoolName The name of the host pool within the specified resource group. |
| 108 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 109 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 110 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 111 | + * @return a ActiveSessionHostConfiguration. |
| 112 | + */ |
| 113 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 114 | + ActiveSessionHostConfigurationInner get(String resourceGroupName, String hostPoolName); |
| 115 | +} |
0 commit comments