Interface Desktops
public interface Desktops
Resource collection API of Desktops.
-
Method Summary
Modifier and TypeMethodDescriptionGet a desktop.com.azure.core.http.rest.Response<Desktop>
getWithResponse
(String resourceGroupName, String applicationGroupName, String desktopName, com.azure.core.util.Context context) Get a desktop.com.azure.core.http.rest.PagedIterable<Desktop>
List desktops.com.azure.core.http.rest.PagedIterable<Desktop>
List desktops.Update a desktop.com.azure.core.http.rest.Response<Desktop>
updateWithResponse
(String resourceGroupName, String applicationGroupName, String desktopName, DesktopPatch desktop, com.azure.core.util.Context context) Update a desktop.
-
Method Details
-
get
Get a desktop.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.desktopName
- The name of the desktop within the specified desktop group.- Returns:
- a desktop.
- 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<Desktop> getWithResponse(String resourceGroupName, String applicationGroupName, String desktopName, com.azure.core.util.Context context) Get a desktop.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.desktopName
- The name of the desktop within the specified desktop group.context
- The context to associate with this operation.- Returns:
- a desktop 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
Update a desktop.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.desktopName
- The name of the desktop within the specified desktop group.- Returns:
- schema for Desktop properties.
- 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<Desktop> updateWithResponse(String resourceGroupName, String applicationGroupName, String desktopName, DesktopPatch desktop, com.azure.core.util.Context context) Update a desktop.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.desktopName
- The name of the desktop within the specified desktop group.desktop
- Object containing Desktop definitions.context
- The context to associate with this operation.- Returns:
- schema for Desktop properties 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.
-
list
com.azure.core.http.rest.PagedIterable<Desktop> list(String resourceGroupName, String applicationGroupName) List desktops.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.- Returns:
- desktopList 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<Desktop> list(String resourceGroupName, String applicationGroupName, com.azure.core.util.Context context) List desktops.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.applicationGroupName
- The name of the application group.context
- The context to associate with this operation.- Returns:
- desktopList 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.
-