| | 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 | |
|
| | 10 | | namespace Azure.Search.Documents.Models |
| | 11 | | { |
| | 12 | | /// <summary> Status of an indexing operation for a single document. </summary> |
| | 13 | | public partial class IndexingResult |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of IndexingResult. </summary> |
| | 16 | | /// <param name="key"> The key of a document that was in the indexing request. </param> |
| | 17 | | /// <param name="succeeded"> A value indicating whether the indexing operation succeeded for the document identi |
| | 18 | | /// <param name="status"> The status code of the indexing operation. Possible values include: 200 for a successf |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="key"/> is null. </exception> |
| 0 | 20 | | internal IndexingResult(string key, bool succeeded, int status) |
| | 21 | | { |
| 0 | 22 | | if (key == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(key)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | Key = key; |
| 0 | 28 | | Succeeded = succeeded; |
| 0 | 29 | | Status = status; |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> Initializes a new instance of IndexingResult. </summary> |
| | 33 | | /// <param name="key"> The key of a document that was in the indexing request. </param> |
| | 34 | | /// <param name="errorMessage"> The error message explaining why the indexing operation failed for the document |
| | 35 | | /// <param name="succeeded"> A value indicating whether the indexing operation succeeded for the document identi |
| | 36 | | /// <param name="status"> The status code of the indexing operation. Possible values include: 200 for a successf |
| 16681 | 37 | | internal IndexingResult(string key, string errorMessage, bool succeeded, int status) |
| | 38 | | { |
| 16681 | 39 | | Key = key; |
| 16681 | 40 | | ErrorMessage = errorMessage; |
| 16681 | 41 | | Succeeded = succeeded; |
| 16681 | 42 | | Status = status; |
| 16681 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> The key of a document that was in the indexing request. </summary> |
| 86 | 46 | | public string Key { get; } |
| | 47 | | /// <summary> The error message explaining why the indexing operation failed for the document identified by the |
| 70 | 48 | | public string ErrorMessage { get; } |
| | 49 | | /// <summary> A value indicating whether the indexing operation succeeded for the document identified by the key |
| 108 | 50 | | public bool Succeeded { get; } |
| | 51 | | } |
| | 52 | | } |