| | 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 current status and execution history of an indexer. |
| | 20 | | /// </summary> |
| | 21 | | public partial class IndexerExecutionInfo |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the IndexerExecutionInfo class. |
| | 25 | | /// </summary> |
| 6 | 26 | | public IndexerExecutionInfo() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 6 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the IndexerExecutionInfo class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="status">Overall indexer status. Possible values |
| | 35 | | /// include: 'unknown', 'error', 'running'</param> |
| | 36 | | /// <param name="lastResult">The result of the most recent or an |
| | 37 | | /// in-progress indexer execution.</param> |
| | 38 | | /// <param name="executionHistory">History of the recent indexer |
| | 39 | | /// executions, sorted in reverse chronological order.</param> |
| | 40 | | /// <param name="limits">The execution limits for the indexer.</param> |
| 0 | 41 | | public IndexerExecutionInfo(IndexerStatus status = default(IndexerStatus), IndexerExecutionResult lastResult = d |
| | 42 | | { |
| 0 | 43 | | Status = status; |
| 0 | 44 | | LastResult = lastResult; |
| 0 | 45 | | ExecutionHistory = executionHistory; |
| 0 | 46 | | Limits = limits; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets overall indexer status. Possible values include: 'unknown', |
| | 57 | | /// 'error', 'running' |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "status")] |
| 18 | 60 | | public IndexerStatus Status { get; private set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets the result of the most recent or an in-progress indexer |
| | 64 | | /// execution. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "lastResult")] |
| 16 | 67 | | public IndexerExecutionResult LastResult { get; private set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets history of the recent indexer executions, sorted in reverse |
| | 71 | | /// chronological order. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "executionHistory")] |
| 20 | 74 | | public IList<IndexerExecutionResult> ExecutionHistory { get; private set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets the execution limits for the indexer. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "limits")] |
| 16 | 80 | | public IndexerLimits Limits { get; private set; } |
| | 81 | |
|
| | 82 | | } |
| | 83 | | } |