예제 #1
0
 /// <summary>
 /// List Backups
 /// </summary>
 /// <remarks>
 /// List all backups for a volume
 /// </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>
 /// <param name='poolName'>
 /// The name of the capacity pool
 /// </param>
 /// <param name='volumeName'>
 /// The name of the volume
 /// </param>
 public static IEnumerable <Backup> List(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName)
 {
     return(operations.ListAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of backups from a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Name of the backup location.
 /// </param>
 public static IEnumerable <Backup> List(this IBackupsOperations operations, string resourceGroupName, string location)
 {
     return(operations.ListAsync(resourceGroupName, location).GetAwaiter().GetResult());
 }