Compartilhar via


DiskAccessCollection Class

Definition

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

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

Constructors

DiskAccessCollection()

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

Creates or updates a disk access resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_CreateOrUpdate
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
CreateOrUpdateAsync(WaitUntil, String, DiskAccessData, CancellationToken)

Creates or updates a disk access resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_CreateOrUpdate
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
Get(String, CancellationToken)

Gets information about a disk access resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
GetAll(CancellationToken)

Lists all the disk access resources under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses
  • Operation Id: DiskAccesses_ListByResourceGroup
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
GetAllAsync(CancellationToken)

Lists all the disk access resources under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses
  • Operation Id: DiskAccesses_ListByResourceGroup
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
GetAsync(String, CancellationToken)

Gets information about a disk access resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}
  • Operation Id: DiskAccesses_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskAccessResource
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<DiskAccessResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DiskAccessResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to