Dela via


AvailabilitySetCollection Class

Definition

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

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

Constructors

AvailabilitySetCollection()

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

Create or update an availability set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
CreateOrUpdateAsync(WaitUntil, String, AvailabilitySetData, CancellationToken)

Create or update an availability set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
Get(String, CancellationToken)

Retrieves information about an availability set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
GetAll(CancellationToken)

Lists all availability sets in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets
  • Operation Id: AvailabilitySets_List
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
GetAllAsync(CancellationToken)

Lists all availability sets in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets
  • Operation Id: AvailabilitySets_List
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
GetAsync(String, CancellationToken)

Retrieves information about an availability set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  • Operation Id: AvailabilitySets_Get
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
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<AvailabilitySetResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AvailabilitySetResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to