Exemplo n.º 1
0
 /// <summary>
 /// List all the backups for a given server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='backupName'>
 /// The name of the backup.
 /// </param>
 public static ServerBackup Get(this IBackupsOperations operations, string resourceGroupName, string serverName, string backupName)
 {
     return(operations.GetAsync(resourceGroupName, serverName, backupName).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get a backup
 /// </summary>
 /// <remarks>
 /// Get a particular backup of the 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>
 /// <param name='backupName'>
 /// The name of the backup
 /// </param>
 public static Backup Get(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, poolName, volumeName, backupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a backup from a location based on name.
 /// </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>
 /// <param name='backup'>
 /// Name of the backup.
 /// </param>
 public static Backup Get(this IBackupsOperations operations, string resourceGroupName, string location, string backup)
 {
     return(operations.GetAsync(resourceGroupName, location, backup).GetAwaiter().GetResult());
 }