| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Represents the result of an individual indexer execution. |
| | 20 | | /// </summary> |
| | 21 | | public partial class IndexerExecutionResult |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the IndexerExecutionResult class. |
| | 25 | | /// </summary> |
| 20 | 26 | | public IndexerExecutionResult() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 20 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the IndexerExecutionResult class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="status">The outcome of this indexer execution. |
| | 35 | | /// Possible values include: 'transientFailure', 'success', |
| | 36 | | /// 'inProgress', 'reset'</param> |
| | 37 | | /// <param name="errorMessage">The error message indicating the |
| | 38 | | /// top-level error, if any.</param> |
| | 39 | | /// <param name="startTime">The start time of this indexer |
| | 40 | | /// execution.</param> |
| | 41 | | /// <param name="endTime">The end time of this indexer execution, if |
| | 42 | | /// the execution has already completed.</param> |
| | 43 | | /// <param name="errors">The item-level indexing errors.</param> |
| | 44 | | /// <param name="warnings">The item-level indexing warnings.</param> |
| | 45 | | /// <param name="itemCount">The number of items that were processed |
| | 46 | | /// during this indexer execution. This includes both successfully |
| | 47 | | /// processed items and items where indexing was attempted but |
| | 48 | | /// failed.</param> |
| | 49 | | /// <param name="failedItemCount">The number of items that failed to be |
| | 50 | | /// indexed during this indexer execution.</param> |
| | 51 | | /// <param name="initialTrackingState">Change tracking state with which |
| | 52 | | /// an indexer execution started.</param> |
| | 53 | | /// <param name="finalTrackingState">Change tracking state with which |
| | 54 | | /// an indexer execution finished.</param> |
| 0 | 55 | | public IndexerExecutionResult(IndexerExecutionStatus status = default(IndexerExecutionStatus), string errorMessa |
| | 56 | | { |
| 0 | 57 | | Status = status; |
| 0 | 58 | | ErrorMessage = errorMessage; |
| 0 | 59 | | StartTime = startTime; |
| 0 | 60 | | EndTime = endTime; |
| 0 | 61 | | Errors = errors; |
| 0 | 62 | | Warnings = warnings; |
| 0 | 63 | | ItemCount = itemCount; |
| 0 | 64 | | FailedItemCount = failedItemCount; |
| 0 | 65 | | InitialTrackingState = initialTrackingState; |
| 0 | 66 | | FinalTrackingState = finalTrackingState; |
| | 67 | | CustomInit(); |
| 0 | 68 | | } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// An initialization method that performs custom operations like setting defaults |
| | 72 | | /// </summary> |
| | 73 | | partial void CustomInit(); |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets the outcome of this indexer execution. Possible values |
| | 77 | | /// include: 'transientFailure', 'success', 'inProgress', 'reset' |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "status")] |
| 50 | 80 | | public IndexerExecutionStatus Status { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets the error message indicating the top-level error, if any. |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "errorMessage")] |
| 6 | 86 | | public string ErrorMessage { get; private set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets the start time of this indexer execution. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "startTime")] |
| 32 | 92 | | public System.DateTimeOffset? StartTime { get; private set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets the end time of this indexer execution, if the execution has |
| | 96 | | /// already completed. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "endTime")] |
| 28 | 99 | | public System.DateTimeOffset? EndTime { get; private set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets the item-level indexing errors. |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "errors")] |
| 62 | 105 | | public IList<ItemError> Errors { get; private set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets the item-level indexing warnings. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "warnings")] |
| 52 | 111 | | public IList<ItemWarning> Warnings { get; private set; } |
| | 112 | |
|
| | 113 | | /// <summary> |
| | 114 | | /// Gets the number of items that were processed during this indexer |
| | 115 | | /// execution. This includes both successfully processed items and |
| | 116 | | /// items where indexing was attempted but failed. |
| | 117 | | /// </summary> |
| | 118 | | [JsonProperty(PropertyName = "itemsProcessed")] |
| 22 | 119 | | public int ItemCount { get; private set; } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Gets the number of items that failed to be indexed during this |
| | 123 | | /// indexer execution. |
| | 124 | | /// </summary> |
| | 125 | | [JsonProperty(PropertyName = "itemsFailed")] |
| 22 | 126 | | public int FailedItemCount { get; private set; } |
| | 127 | |
|
| | 128 | | /// <summary> |
| | 129 | | /// Gets change tracking state with which an indexer execution started. |
| | 130 | | /// </summary> |
| | 131 | | [JsonProperty(PropertyName = "initialTrackingState")] |
| 6 | 132 | | public string InitialTrackingState { get; private set; } |
| | 133 | |
|
| | 134 | | /// <summary> |
| | 135 | | /// Gets change tracking state with which an indexer execution |
| | 136 | | /// finished. |
| | 137 | | /// </summary> |
| | 138 | | [JsonProperty(PropertyName = "finalTrackingState")] |
| 6 | 139 | | public string FinalTrackingState { get; private set; } |
| | 140 | |
|
| | 141 | | } |
| | 142 | | } |