| | | 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 | | |
| | | 12 | | namespace Azure.Search.Documents.Models |
| | | 13 | | { |
| | | 14 | | /// <summary> Response containing the status of operations for all documents in the indexing request. </summary> |
| | | 15 | | public partial class IndexDocumentsResult |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of IndexDocumentsResult. </summary> |
| | | 18 | | /// <param name="results"> The list of status information for each document in the indexing request. </param> |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="results"/> is null. </exception> |
| | 0 | 20 | | internal IndexDocumentsResult(IEnumerable<IndexingResult> results) |
| | | 21 | | { |
| | 0 | 22 | | if (results == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(results)); |
| | | 25 | | } |
| | | 26 | | |
| | 0 | 27 | | Results = results.ToList(); |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> Initializes a new instance of IndexDocumentsResult. </summary> |
| | | 31 | | /// <param name="results"> The list of status information for each document in the indexing request. </param> |
| | 93 | 32 | | internal IndexDocumentsResult(IReadOnlyList<IndexingResult> results) |
| | | 33 | | { |
| | 93 | 34 | | Results = results; |
| | 93 | 35 | | } |
| | | 36 | | |
| | | 37 | | /// <summary> The list of status information for each document in the indexing request. </summary> |
| | 80 | 38 | | public IReadOnlyList<IndexingResult> Results { get; } |
| | | 39 | | } |
| | | 40 | | } |