Interface SessionHostsClient


public interface SessionHostsClient
An instance of this class provides access to all the operations defined in SessionHostsClient.
  • Method Details

    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<SessionHostInner>> getWithResponseAsync(String resourceGroupName, String hostPoolName, String sessionHostname)
      Get a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      a session host along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<SessionHostInner> getAsync(String resourceGroupName, String hostPoolName, String sessionHostname)
      Get a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      a session host on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<SessionHostInner> getWithResponse(String resourceGroupName, String hostPoolName, String sessionHostname, com.azure.core.util.Context context)
      Get a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      context - The context to associate with this operation.
      Returns:
      a session host along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      SessionHostInner get(String resourceGroupName, String hostPoolName, String sessionHostname)
      Get a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      a session host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force)
      Remove a SessionHost.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      force - Force flag to force sessionHost deletion even when userSession exists.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String hostPoolName, String sessionHostname)
      Remove a SessionHost.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force, com.azure.core.util.Context context)
      Remove a SessionHost.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      force - Force flag to force sessionHost deletion even when userSession exists.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String hostPoolName, String sessionHostname)
      Remove a SessionHost.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<SessionHostInner>> updateWithResponseAsync(String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force, SessionHostPatch sessionHost)
      Update a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      force - Force flag to update assign, unassign or reassign personal desktop.
      sessionHost - Object containing SessionHost definitions.
      Returns:
      represents a SessionHost definition along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<SessionHostInner> updateAsync(String resourceGroupName, String hostPoolName, String sessionHostname)
      Update a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      represents a SessionHost definition on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<SessionHostInner> updateWithResponse(String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force, SessionHostPatch sessionHost, com.azure.core.util.Context context)
      Update a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      force - Force flag to update assign, unassign or reassign personal desktop.
      sessionHost - Object containing SessionHost definitions.
      context - The context to associate with this operation.
      Returns:
      represents a SessionHost definition along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      SessionHostInner update(String resourceGroupName, String hostPoolName, String sessionHostname)
      Update a session host.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      sessionHostname - The name of the session host within the specified host pool.
      Returns:
      represents a SessionHost definition.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<SessionHostInner> listAsync(String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip)
      List sessionHosts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      pageSize - Number of items per page.
      isDescending - Indicates whether the collection is descending.
      initialSkip - Initial number of items to skip.
      Returns:
      sessionHostList as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<SessionHostInner> listAsync(String resourceGroupName, String hostPoolName)
      List sessionHosts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      Returns:
      sessionHostList as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<SessionHostInner> list(String resourceGroupName, String hostPoolName)
      List sessionHosts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      Returns:
      sessionHostList as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<SessionHostInner> list(String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context)
      List sessionHosts.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      hostPoolName - The name of the host pool within the specified resource group.
      pageSize - Number of items per page.
      isDescending - Indicates whether the collection is descending.
      initialSkip - Initial number of items to skip.
      context - The context to associate with this operation.
      Returns:
      sessionHostList as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.