| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.FormRecognizer.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Response of the Train API call. |
| | 20 | | /// </summary> |
| | 21 | | public partial class TrainResult |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the TrainResult class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public TrainResult() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the TrainResult class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="modelId">Identifier of the model.</param> |
| | 35 | | /// <param name="trainingDocuments">List of documents used to train the |
| | 36 | | /// model and the |
| | 37 | | /// train operation error reported by each.</param> |
| | 38 | | /// <param name="errors">Errors returned during the training |
| | 39 | | /// operation.</param> |
| 0 | 40 | | public TrainResult(System.Guid modelId = default(System.Guid), IList<FormDocumentReport> trainingDocuments = def |
| | 41 | | { |
| 0 | 42 | | ModelId = modelId; |
| 0 | 43 | | TrainingDocuments = trainingDocuments; |
| 0 | 44 | | Errors = errors; |
| | 45 | | CustomInit(); |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets identifier of the model. |
| | 55 | | /// </summary> |
| | 56 | | [JsonProperty(PropertyName = "modelId")] |
| 0 | 57 | | public System.Guid ModelId { get; set; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets or sets list of documents used to train the model and the |
| | 61 | | /// train operation error reported by each. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "trainingDocuments")] |
| 0 | 64 | | public IList<FormDocumentReport> TrainingDocuments { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets errors returned during the training operation. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "errors")] |
| 0 | 70 | | public IList<FormOperationError> Errors { get; set; } |
| | 71 | |
|
| | 72 | | } |
| | 73 | | } |