/// <summary>
 /// Retrieve a list of runbook versions filtered 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.IRunbookParameterOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookVersionId'>
 /// Required. The runbook version id.
 /// </param>
 /// <returns>
 /// The response model for the list runbook parameter operation.
 /// </returns>
 public static RunbookParameterListResponse ListByRunbookVersionId(this IRunbookParameterOperations operations, string automationAccount, string runbookVersionId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRunbookParameterOperations)s).ListByRunbookVersionIdAsync(automationAccount, runbookVersionId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the AutomationManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public AutomationManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._cloudServices     = new CloudServiceOperations(this);
     this._jobs              = new JobOperations(this);
     this._jobStreams        = new JobStreamOperation(this);
     this._runbooks          = new RunbookOperations(this);
     this._runbookParameters = new RunbookParameterOperations(this);
     this._runbookVersions   = new RunbookVersionOperations(this);
     this._schedules         = new ScheduleOperations(this);
     this._apiVersion        = "2013-06-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Retrieve a list of runbook versions filtered 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.IRunbookParameterOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookVersionId'>
 /// Required. The runbook version id.
 /// </param>
 /// <returns>
 /// The response model for the list runbook parameter operation.
 /// </returns>
 public static Task <RunbookParameterListResponse> ListByRunbookVersionIdAsync(this IRunbookParameterOperations operations, string automationAccount, string runbookVersionId)
 {
     return(operations.ListByRunbookVersionIdAsync(automationAccount, runbookVersionId, CancellationToken.None));
 }