/// <summary>
 /// Undelete a deleted storage account with new account name if the a new name
 /// is provided.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Resource location.
 /// </param>
 /// <param name='accountId'>
 /// Internal storage account ID, which is not visible to tenant.
 /// </param>
 /// <param name='newAccountName'>
 /// New storage account name when doing undelete storage account operation.
 /// </param>
 public static UndeleteStorageAccount BeginUndelete(this IStorageAccountsOperations operations, string location, string accountId, string newAccountName = default(string))
 {
     return(operations.BeginUndeleteAsync(location, accountId, newAccountName).GetAwaiter().GetResult());
 }