| | | 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 Azure.AI.FormRecognizer.Training; |
| | | 10 | | |
| | | 11 | | namespace Azure.AI.FormRecognizer.Models |
| | | 12 | | { |
| | | 13 | | /// <summary> Response to the get custom model operation. </summary> |
| | | 14 | | internal partial class Model |
| | | 15 | | { |
| | | 16 | | /// <summary> Initializes a new instance of Model. </summary> |
| | | 17 | | /// <param name="modelInfo"> Basic custom model information. </param> |
| | | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="modelInfo"/> is null. </exception> |
| | 0 | 19 | | internal Model(CustomFormModelInfo modelInfo) |
| | | 20 | | { |
| | 0 | 21 | | if (modelInfo == null) |
| | | 22 | | { |
| | 0 | 23 | | throw new ArgumentNullException(nameof(modelInfo)); |
| | | 24 | | } |
| | | 25 | | |
| | 0 | 26 | | ModelInfo = modelInfo; |
| | 0 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> Initializes a new instance of Model. </summary> |
| | | 30 | | /// <param name="modelInfo"> Basic custom model information. </param> |
| | | 31 | | /// <param name="keys"> Keys extracted by the custom model. </param> |
| | | 32 | | /// <param name="trainResult"> Custom model training result. </param> |
| | 1066 | 33 | | internal Model(CustomFormModelInfo modelInfo, KeysResult keys, TrainResult trainResult) |
| | | 34 | | { |
| | 1066 | 35 | | ModelInfo = modelInfo; |
| | 1066 | 36 | | Keys = keys; |
| | 1066 | 37 | | TrainResult = trainResult; |
| | 1066 | 38 | | } |
| | | 39 | | |
| | | 40 | | /// <summary> Basic custom model information. </summary> |
| | 2628 | 41 | | public CustomFormModelInfo ModelInfo { get; } |
| | | 42 | | /// <summary> Keys extracted by the custom model. </summary> |
| | 216 | 43 | | public KeysResult Keys { get; } |
| | | 44 | | /// <summary> Custom model training result. </summary> |
| | 712 | 45 | | public TrainResult TrainResult { get; } |
| | | 46 | | } |
| | | 47 | | } |