Delen via


DevTestLabDiskCollection Class

Definition

A class representing a collection of DevTestLabDiskResource and their operations. Each DevTestLabDiskResource in the collection will belong to the same instance of DevTestLabUserResource. To get a DevTestLabDiskCollection instance call the GetDevTestLabDisks method from an instance of DevTestLabUserResource.

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

Constructors

DevTestLabDiskCollection()

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

Create or replace an existing disk. This operation can take a while to complete.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, DevTestLabDiskData, CancellationToken)

Create or replace an existing disk. This operation can take a while to complete.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_CreateOrUpdate
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
Get(String, String, CancellationToken)

Get disk.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
GetAll(String, String, Nullable<Int32>, String, CancellationToken)

List disks in a given user profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks
  • Operation Id: Disks_List
GetAllAsync(String, String, Nullable<Int32>, String, CancellationToken)

List disks in a given user profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks
  • Operation Id: Disks_List
GetAsync(String, String, CancellationToken)

Get disk.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
  • Operation Id: Disks_Get
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<DevTestLabDiskResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DevTestLabDiskResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to