|  |  | 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.Linq; | 
|  |  | 15 |  |  | 
|  |  | 16 |  |     public partial class IndexerLimits | 
|  |  | 17 |  |     { | 
|  |  | 18 |  |         /// <summary> | 
|  |  | 19 |  |         /// Initializes a new instance of the IndexerLimits class. | 
|  |  | 20 |  |         /// </summary> | 
|  | 4 | 21 |  |         public IndexerLimits() | 
|  |  | 22 |  |         { | 
|  |  | 23 |  |             CustomInit(); | 
|  | 4 | 24 |  |         } | 
|  |  | 25 |  |  | 
|  |  | 26 |  |         /// <summary> | 
|  |  | 27 |  |         /// Initializes a new instance of the IndexerLimits class. | 
|  |  | 28 |  |         /// </summary> | 
|  |  | 29 |  |         /// <param name="maxRunTime">The maximum duration that the indexer is | 
|  |  | 30 |  |         /// permitted to run for one execution.</param> | 
|  |  | 31 |  |         /// <param name="maxDocumentExtractionSize">The maximum size of a | 
|  |  | 32 |  |         /// document, in bytes, which will be considered valid for | 
|  |  | 33 |  |         /// indexing.</param> | 
|  |  | 34 |  |         /// <param name="maxDocumentContentCharactersToExtract">The maximum | 
|  |  | 35 |  |         /// number of characters that will be extracted from a document picked | 
|  |  | 36 |  |         /// up for indexing.</param> | 
|  | 0 | 37 |  |         public IndexerLimits(System.TimeSpan? maxRunTime = default(System.TimeSpan?), double? maxDocumentExtractionSize  | 
|  |  | 38 |  |         { | 
|  | 0 | 39 |  |             MaxRunTime = maxRunTime; | 
|  | 0 | 40 |  |             MaxDocumentExtractionSize = maxDocumentExtractionSize; | 
|  | 0 | 41 |  |             MaxDocumentContentCharactersToExtract = maxDocumentContentCharactersToExtract; | 
|  |  | 42 |  |             CustomInit(); | 
|  | 0 | 43 |  |         } | 
|  |  | 44 |  |  | 
|  |  | 45 |  |         /// <summary> | 
|  |  | 46 |  |         /// An initialization method that performs custom operations like setting defaults | 
|  |  | 47 |  |         /// </summary> | 
|  |  | 48 |  |         partial void CustomInit(); | 
|  |  | 49 |  |  | 
|  |  | 50 |  |         /// <summary> | 
|  |  | 51 |  |         /// Gets the maximum duration that the indexer is permitted to run for | 
|  |  | 52 |  |         /// one execution. | 
|  |  | 53 |  |         /// </summary> | 
|  |  | 54 |  |         [JsonProperty(PropertyName = "maxRunTime")] | 
|  | 10 | 55 |  |         public System.TimeSpan? MaxRunTime { get; private set; } | 
|  |  | 56 |  |  | 
|  |  | 57 |  |         /// <summary> | 
|  |  | 58 |  |         /// Gets the maximum size of a document, in bytes, which will be | 
|  |  | 59 |  |         /// considered valid for indexing. | 
|  |  | 60 |  |         /// </summary> | 
|  |  | 61 |  |         [JsonProperty(PropertyName = "maxDocumentExtractionSize")] | 
|  | 6 | 62 |  |         public double? MaxDocumentExtractionSize { get; private set; } | 
|  |  | 63 |  |  | 
|  |  | 64 |  |         /// <summary> | 
|  |  | 65 |  |         /// Gets the maximum number of characters that will be extracted from a | 
|  |  | 66 |  |         /// document picked up for indexing. | 
|  |  | 67 |  |         /// </summary> | 
|  |  | 68 |  |         [JsonProperty(PropertyName = "maxDocumentContentCharactersToExtract")] | 
|  | 6 | 69 |  |         public double? MaxDocumentContentCharactersToExtract { get; private set; } | 
|  |  | 70 |  |  | 
|  |  | 71 |  |     } | 
|  |  | 72 |  | } |