DataProtectionBackupPolicyCollection Class

Definition

A class representing a collection of DataProtectionBackupPolicyResource and their operations. Each DataProtectionBackupPolicyResource in the collection will belong to the same instance of DataProtectionBackupVaultResource. To get a DataProtectionBackupPolicyCollection instance call the GetDataProtectionBackupPolicies method from an instance of DataProtectionBackupVaultResource.

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

Constructors

DataProtectionBackupPolicyCollection()

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

Creates or Updates a backup policy belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
CreateOrUpdateAsync(WaitUntil, String, DataProtectionBackupPolicyData, CancellationToken)

Creates or Updates a backup policy belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
Get(String, CancellationToken)

Gets a backup policy belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
GetAll(CancellationToken)

Returns list of backup policies belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies
  • Operation Id: BackupPolicies_List
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
GetAllAsync(CancellationToken)

Returns list of backup policies belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies
  • Operation Id: BackupPolicies_List
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
GetAsync(String, CancellationToken)

Gets a backup policy belonging to a backup vault

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • Operation Id: BackupPolicies_Get
  • Default Api Version: 2024-04-01
  • Resource: DataProtectionBackupPolicyResource
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<DataProtectionBackupPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DataProtectionBackupPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to