| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | | using Azure.AI.FormRecognizer.Models; |
| | 12 | |
|
| | 13 | | namespace Azure.AI.FormRecognizer.Training |
| | 14 | | { |
| | 15 | | /// <summary> Report for a custom model training document. </summary> |
| | 16 | | public partial class TrainingDocumentInfo |
| | 17 | | { |
| 422 | 18 | | /// <summary> Initializes a new instance of TrainingDocumentInfo. </summary> |
| | 19 | | /// <param name="name"> Training document name. </param> |
| | 20 | | /// <param name="pageCount"> Total number of pages trained. </param> |
| | 21 | | /// <param name="errors"> List of errors. </param> |
| | 22 | | /// <param name="status"> Status of the training operation. </param> |
| | 23 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="errors"/> is null. </exc |
| 422 | 24 | | internal TrainingDocumentInfo(string name, int pageCount, IEnumerable<FormRecognizerError> errors, TrainingStatu |
| | 25 | | { |
| 0 | 26 | | if (name == null) |
| | 27 | | { |
| 0 | 28 | | throw new ArgumentNullException(nameof(name)); |
| | 29 | | } |
| 0 | 30 | | if (errors == null) |
| | 31 | | { |
| 0 | 32 | | throw new ArgumentNullException(nameof(errors)); |
| | 33 | | } |
| | 34 | |
|
| 0 | 35 | | Name = name; |
| 0 | 36 | | PageCount = pageCount; |
| 0 | 37 | | Errors = errors.ToList(); |
| 0 | 38 | | Status = status; |
| 0 | 39 | | } |
| | 40 | |
|
| | 41 | | /// <summary> Initializes a new instance of TrainingDocumentInfo. </summary> |
| | 42 | | /// <param name="name"> Training document name. </param> |
| | 43 | | /// <param name="pageCount"> Total number of pages trained. </param> |
| | 44 | | /// <param name="errors"> List of errors. </param> |
| | 45 | | /// <param name="status"> Status of the training operation. </param> |
| 1368 | 46 | | internal TrainingDocumentInfo(string name, int pageCount, IReadOnlyList<FormRecognizerError> errors, TrainingSta |
| | 47 | | { |
| 1368 | 48 | | Name = name; |
| 1368 | 49 | | PageCount = pageCount; |
| 1368 | 50 | | Errors = errors; |
| 1368 | 51 | | Status = status; |
| 1368 | 52 | | } |
| | 53 | | /// <summary> List of errors. </summary> |
| 924 | 54 | | public IReadOnlyList<FormRecognizerError> Errors { get; } |
| | 55 | | /// <summary> Status of the training operation. </summary> |
| 884 | 56 | | public TrainingStatus Status { get; } |
| | 57 | | } |
| | 58 | | } |