/// <summary> /// List backup policies /// </summary> /// <remarks> /// List backup policies for Netapp Account /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='accountName'> /// The name of the NetApp account /// </param> public static IEnumerable <BackupPolicy> List(this IBackupPoliciesOperations operations, string resourceGroupName, string accountName) { return(operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult()); }
/// <summary> /// Returns list of backup policies belonging to a backup vault /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the backup vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the backup vault is present. /// </param> public static IPage <BaseBackupPolicyResource> List(this IBackupPoliciesOperations operations, string vaultName, string resourceGroupName) { return(operations.ListAsync(vaultName, resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Lists of backup policies associated with Recovery Services Vault. API /// provides pagination parameters to fetch /// scoped results. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <ProtectionPolicyResource> List(this IBackupPoliciesOperations operations, string vaultName, string resourceGroupName, ODataQuery <ProtectionPolicyQueryObject> odataQuery = default(ODataQuery <ProtectionPolicyQueryObject>)) { return(operations.ListAsync(vaultName, resourceGroupName, odataQuery).GetAwaiter().GetResult()); }