| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.AI.FormRecognizer.Models; |
| | 5 | |
|
| | 6 | | namespace Azure.AI.FormRecognizer.Training |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Contains general information about a Cognitive Services Account, such as the number |
| | 10 | | /// of models and account limits. |
| | 11 | | /// </summary> |
| | 12 | | public class AccountProperties |
| | 13 | | { |
| 8 | 14 | | internal AccountProperties(ModelsSummary summary) |
| | 15 | | { |
| 8 | 16 | | CustomModelCount = summary.Count; |
| 8 | 17 | | CustomModelLimit = summary.Limit; |
| 8 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// The current count of trained custom models. |
| | 22 | | /// </summary> |
| 8 | 23 | | public int CustomModelCount { get; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// The maximum number of models that can be trained for this subscription. |
| | 27 | | /// </summary> |
| 8 | 28 | | public int CustomModelLimit { get; } |
| | 29 | | } |
| | 30 | | } |