Share 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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabDiskResource
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