Share via


QuantumWorkspaceCollection Class

Definition

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

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

Constructors

QuantumWorkspaceCollection()

Initializes a new instance of the QuantumWorkspaceCollection 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, QuantumWorkspaceData, CancellationToken)

Creates or updates a workspace resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_CreateOrUpdate
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
CreateOrUpdateAsync(WaitUntil, String, QuantumWorkspaceData, CancellationToken)

Creates or updates a workspace resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_CreateOrUpdate
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
Get(String, CancellationToken)

Returns the Workspace resource associated with the given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
GetAll(CancellationToken)

Gets the list of Workspaces within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces
  • Operation Id: Workspaces_ListByResourceGroup
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
GetAllAsync(CancellationToken)

Gets the list of Workspaces within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces
  • Operation Id: Workspaces_ListByResourceGroup
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
GetAsync(String, CancellationToken)

Returns the Workspace resource associated with the given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
  • Operation Id: Workspaces_Get
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
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<QuantumWorkspaceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<QuantumWorkspaceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to