Condividi tramite


DiskEncryptionSetCollection Class

Definition

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

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

Constructors

DiskEncryptionSetCollection()

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

Creates or updates a disk encryption set

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_CreateOrUpdate
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
CreateOrUpdateAsync(WaitUntil, String, DiskEncryptionSetData, CancellationToken)

Creates or updates a disk encryption set

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_CreateOrUpdate
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
Get(String, CancellationToken)

Gets information about a disk encryption set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
GetAll(CancellationToken)

Lists all the disk encryption sets under a resource group.

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

Lists all the disk encryption sets under a resource group.

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

Gets information about a disk encryption set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}
  • Operation Id: DiskEncryptionSets_Get
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DiskEncryptionSetResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to