| | | 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 Azure.Core; |
| | | 11 | | |
| | | 12 | | namespace Azure.AI.FormRecognizer.Models |
| | | 13 | | { |
| | | 14 | | /// <summary> Custom model copy result. </summary> |
| | | 15 | | internal partial class CopyResult |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of CopyResult. </summary> |
| | | 18 | | /// <param name="modelId"> Identifier of the target model. </param> |
| | 0 | 19 | | internal CopyResult(Guid modelId) |
| | | 20 | | { |
| | 0 | 21 | | ModelId = modelId; |
| | 0 | 22 | | Errors = new ChangeTrackingList<FormRecognizerError>(); |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> Initializes a new instance of CopyResult. </summary> |
| | | 26 | | /// <param name="modelId"> Identifier of the target model. </param> |
| | | 27 | | /// <param name="errors"> Errors returned during the copy operation. </param> |
| | 182 | 28 | | internal CopyResult(Guid modelId, IReadOnlyList<FormRecognizerError> errors) |
| | | 29 | | { |
| | 182 | 30 | | ModelId = modelId; |
| | 182 | 31 | | Errors = errors; |
| | 182 | 32 | | } |
| | | 33 | | |
| | | 34 | | /// <summary> Identifier of the target model. </summary> |
| | 0 | 35 | | public Guid ModelId { get; } |
| | | 36 | | /// <summary> Errors returned during the copy operation. </summary> |
| | 4 | 37 | | public IReadOnlyList<FormRecognizerError> Errors { get; } |
| | | 38 | | } |
| | | 39 | | } |