/// <summary>
 /// Retrieve a list of stream items of the job identified by jobId.
 /// (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.IJobStreamOperation.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list job stream's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the get job output operation.
 /// </returns>
 public static JobStreamListStreamItemsResponse ListStreamItems(this IJobStreamOperation operations, string automationAccount, JobStreamListStreamItemsParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IJobStreamOperation)s).ListStreamItemsAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Retrieve a list of stream items of the job identified by jobId.
 /// (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.IJobStreamOperation.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the list job stream's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the get job output operation.
 /// </returns>
 public static Task<JobStreamListStreamItemsResponse> ListStreamItemsAsync(this IJobStreamOperation operations, string automationAccount, JobStreamListStreamItemsParameters parameters)
 {
     return operations.ListStreamItemsAsync(automationAccount, parameters, CancellationToken.None);
 }