/// <summary>
 /// Retrieve a list of test job streams identified by runbook name.
 /// (see http://aka.ms/azureautomationsdk/jobstreamoperations for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookName'>
 /// Required. The runbook name.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list job stream's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the list job stream operation.
 /// </returns>
 public static JobStreamListResponse ListTestJobStreams(this IJobStreamOperations operations, string automationAccount, string runbookName, JobStreamListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IJobStreamOperations)s).ListTestJobStreamsAsync(automationAccount, runbookName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Retrieve a list of test job streams identified by runbook name.
 /// (see http://aka.ms/azureautomationsdk/jobstreamoperations for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookName'>
 /// Required. The runbook name.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list job stream's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the list job stream operation.
 /// </returns>
 public static Task<JobStreamListResponse> ListTestJobStreamsAsync(this IJobStreamOperations operations, string automationAccount, string runbookName, JobStreamListParameters parameters)
 {
     return operations.ListTestJobStreamsAsync(automationAccount, runbookName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Retrieve a list of jobs streams identified by job id.  (see
 /// http://aka.ms/azureautomationsdk/jobstreamoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='jobId'>
 /// Required. The job Id.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list job stream's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the list job stream operation.
 /// </returns>
 public static Task<JobStreamListResponse> ListAsync(this IJobStreamOperations operations, string automationAccount, Guid jobId, JobStreamListParameters parameters)
 {
     return operations.ListAsync(automationAccount, jobId, parameters, CancellationToken.None);
 }