/// <summary> /// Downloads execution media by job id /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Monitoring or /// Monitoring.Read. /// /// Required permissions: ExecutionMedia.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobId'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static Stream DownloadMediaByJobId(this IExecutionMedia operations, long jobId, long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.DownloadMediaByJobIdAsync(jobId, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Call operation DownloadMediaByJobId /// </summary> /// <remarks> /// Required permissions: ExecutionMedia.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobId'> /// parameter: jobId /// </param> public static Stream DownloadMediaByJobId(this IExecutionMedia operations, long jobId) { return(operations.DownloadMediaByJobIdAsync(jobId).GetAwaiter().GetResult()); }