/// <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> /// 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 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)); }