/// <summary>
 /// Retrieve a list of runbooks which run on the schedule.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list runbook by schedule
 /// name operation.
 /// </param>
 /// <returns>
 /// The response model for the list runbook operation.
 /// </returns>
 public static Task <RunbookListResponse> ListByScheduleNameWithSchedulesAsync(this IRunbookOperations operations, string automationAccount, RunbookListByScheduleNameParameters parameters)
 {
     return(operations.ListByScheduleNameWithSchedulesAsync(automationAccount, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Retrieve a list of runbooks which run on the schedule.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list runbook by schedule
 /// name operation.
 /// </param>
 /// <returns>
 /// The response model for the list runbook operation.
 /// </returns>
 public static RunbookListResponse ListByScheduleNameWithSchedules(this IRunbookOperations operations, string automationAccount, RunbookListByScheduleNameParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRunbookOperations)s).ListByScheduleNameWithSchedulesAsync(automationAccount, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }