Share via


RecoveryServicesVaultCollection Class

Definition

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

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

Constructors

RecoveryServicesVaultCollection()

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

Creates or updates a Recovery Services vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_CreateOrUpdate
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
CreateOrUpdateAsync(WaitUntil, String, RecoveryServicesVaultData, CancellationToken)

Creates or updates a Recovery Services vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_CreateOrUpdate
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
Get(String, CancellationToken)

Get the Vault details.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
GetAll(CancellationToken)

Retrieve a list of Vaults.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults
  • Operation Id: Vaults_ListByResourceGroup
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
GetAllAsync(CancellationToken)

Retrieve a list of Vaults.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults
  • Operation Id: Vaults_ListByResourceGroup
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
GetAsync(String, CancellationToken)

Get the Vault details.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}
  • Operation Id: Vaults_Get
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
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<RecoveryServicesVaultResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<RecoveryServicesVaultResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to