Share via


VirtualWorkspaceCollection Class

Definition

A class representing a collection of VirtualWorkspaceResource and their operations. Each VirtualWorkspaceResource in the collection will belong to the same instance of ResourceGroupResource. To get a VirtualWorkspaceCollection instance call the GetVirtualWorkspaces method from an instance of ResourceGroupResource.

public class VirtualWorkspaceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
type VirtualWorkspaceCollection = class
    inherit ArmCollection
    interface seq<VirtualWorkspaceResource>
    interface IEnumerable
    interface IAsyncEnumerable<VirtualWorkspaceResource>
Public Class VirtualWorkspaceCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of VirtualWorkspaceResource), IEnumerable(Of VirtualWorkspaceResource)
Inheritance
VirtualWorkspaceCollection
Implements

Constructors

VirtualWorkspaceCollection()

Initializes a new instance of the VirtualWorkspaceCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, VirtualWorkspaceData, CancellationToken)

Create or update a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
CreateOrUpdateAsync(WaitUntil, String, VirtualWorkspaceData, CancellationToken)

Create or update a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
Get(String, CancellationToken)

Get a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
GetAll(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List workspaces.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces
  • Operation Id: Workspaces_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
GetAllAsync(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List workspaces.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces
  • Operation Id: Workspaces_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
GetAsync(String, CancellationToken)

Get a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<VirtualWorkspaceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualWorkspaceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to