| | 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.Indexes.Models |
| | 13 | | { |
| | 14 | | /// <summary> Represents the result of an individual indexer execution. </summary> |
| | 15 | | public partial class IndexerExecutionResult |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of IndexerExecutionResult. </summary> |
| | 18 | | /// <param name="status"> The outcome of this indexer execution. </param> |
| | 19 | | /// <param name="errors"> The item-level indexing errors. </param> |
| | 20 | | /// <param name="warnings"> The item-level indexing warnings. </param> |
| | 21 | | /// <param name="itemCount"> The number of items that were processed during this indexer execution. This include |
| | 22 | | /// <param name="failedItemCount"> The number of items that failed to be indexed during this indexer execution. |
| | 23 | | /// <exception cref="ArgumentNullException"> <paramref name="errors"/> or <paramref name="warnings"/> is null. < |
| 0 | 24 | | internal IndexerExecutionResult(IndexerExecutionStatus status, IEnumerable<SearchIndexerError> errors, IEnumerab |
| | 25 | | { |
| 0 | 26 | | if (errors == null) |
| | 27 | | { |
| 0 | 28 | | throw new ArgumentNullException(nameof(errors)); |
| | 29 | | } |
| 0 | 30 | | if (warnings == null) |
| | 31 | | { |
| 0 | 32 | | throw new ArgumentNullException(nameof(warnings)); |
| | 33 | | } |
| | 34 | |
|
| 0 | 35 | | Status = status; |
| 0 | 36 | | Errors = errors.ToList(); |
| 0 | 37 | | Warnings = warnings.ToList(); |
| 0 | 38 | | ItemCount = itemCount; |
| 0 | 39 | | FailedItemCount = failedItemCount; |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | /// <summary> Initializes a new instance of IndexerExecutionResult. </summary> |
| | 43 | | /// <param name="status"> The outcome of this indexer execution. </param> |
| | 44 | | /// <param name="errorMessage"> The error message indicating the top-level error, if any. </param> |
| | 45 | | /// <param name="startTime"> The start time of this indexer execution. </param> |
| | 46 | | /// <param name="endTime"> The end time of this indexer execution, if the execution has already completed. </par |
| | 47 | | /// <param name="errors"> The item-level indexing errors. </param> |
| | 48 | | /// <param name="warnings"> The item-level indexing warnings. </param> |
| | 49 | | /// <param name="itemCount"> The number of items that were processed during this indexer execution. This include |
| | 50 | | /// <param name="failedItemCount"> The number of items that failed to be indexed during this indexer execution. |
| | 51 | | /// <param name="initialTrackingState"> Change tracking state with which an indexer execution started. </param> |
| | 52 | | /// <param name="finalTrackingState"> Change tracking state with which an indexer execution finished. </param> |
| 12 | 53 | | internal IndexerExecutionResult(IndexerExecutionStatus status, string errorMessage, DateTimeOffset? startTime, D |
| | 54 | | { |
| 12 | 55 | | Status = status; |
| 12 | 56 | | ErrorMessage = errorMessage; |
| 12 | 57 | | StartTime = startTime; |
| 12 | 58 | | EndTime = endTime; |
| 12 | 59 | | Errors = errors; |
| 12 | 60 | | Warnings = warnings; |
| 12 | 61 | | ItemCount = itemCount; |
| 12 | 62 | | FailedItemCount = failedItemCount; |
| 12 | 63 | | InitialTrackingState = initialTrackingState; |
| 12 | 64 | | FinalTrackingState = finalTrackingState; |
| 12 | 65 | | } |
| | 66 | |
|
| | 67 | | /// <summary> The outcome of this indexer execution. </summary> |
| 5 | 68 | | public IndexerExecutionStatus Status { get; } |
| | 69 | | /// <summary> The error message indicating the top-level error, if any. </summary> |
| 0 | 70 | | public string ErrorMessage { get; } |
| | 71 | | /// <summary> The start time of this indexer execution. </summary> |
| 0 | 72 | | public DateTimeOffset? StartTime { get; } |
| | 73 | | /// <summary> The end time of this indexer execution, if the execution has already completed. </summary> |
| 0 | 74 | | public DateTimeOffset? EndTime { get; } |
| | 75 | | /// <summary> The item-level indexing errors. </summary> |
| 0 | 76 | | public IReadOnlyList<SearchIndexerError> Errors { get; } |
| | 77 | | /// <summary> The item-level indexing warnings. </summary> |
| 0 | 78 | | public IReadOnlyList<SearchIndexerWarning> Warnings { get; } |
| | 79 | | /// <summary> The number of items that were processed during this indexer execution. This includes both successf |
| 0 | 80 | | public int ItemCount { get; } |
| | 81 | | /// <summary> The number of items that failed to be indexed during this indexer execution. </summary> |
| 0 | 82 | | public int FailedItemCount { get; } |
| | 83 | | /// <summary> Change tracking state with which an indexer execution started. </summary> |
| 0 | 84 | | public string InitialTrackingState { get; } |
| | 85 | | /// <summary> Change tracking state with which an indexer execution finished. </summary> |
| 0 | 86 | | public string FinalTrackingState { get; } |
| | 87 | | } |
| | 88 | | } |