/// <summary>
 /// Retrieve a list of runbook versions filterd by parameters.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookVersionOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list runbook version by
 /// runbook id and slot operation.
 /// </param>
 /// <returns>
 /// The response model for the list runbook version operation.
 /// </returns>
 public static Task<RunbookVersionListResponse> ListLatestByRunbookIdSlotAsync(this IRunbookVersionOperations operations, string automationAccount, RunbookVersionListLatestByRunbookIdSlotParameters parameters)
 {
     return operations.ListLatestByRunbookIdSlotAsync(automationAccount, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Retrieve a list of runbook versions filterd by parameters.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookVersionOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list runbook version by
 /// runbook id and slot operation.
 /// </param>
 /// <returns>
 /// The response model for the list runbook version operation.
 /// </returns>
 public static RunbookVersionListResponse ListLatestByRunbookIdSlot(this IRunbookVersionOperations operations, string automationAccount, RunbookVersionListLatestByRunbookIdSlotParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IRunbookVersionOperations)s).ListLatestByRunbookIdSlotAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }