| | 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 | | /// <summary> |
| | 17 | | /// Represents various service level limits. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ServiceLimits |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ServiceLimits class. |
| | 23 | | /// </summary> |
| 4 | 24 | | public ServiceLimits() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ServiceLimits class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="maxFieldsPerIndex">The maximum allowed fields per |
| | 33 | | /// index.</param> |
| | 34 | | /// <param name="maxFieldNestingDepthPerIndex">The maximum depth which |
| | 35 | | /// you can nest sub-fields in an index, including the top-level |
| | 36 | | /// complex field. For example, a/b/c has a nesting depth of 3.</param> |
| | 37 | | /// <param name="maxComplexCollectionFieldsPerIndex">The maximum number |
| | 38 | | /// of fields of type Collection(Edm.ComplexType) allowed in an |
| | 39 | | /// index.</param> |
| | 40 | | /// <param name="maxComplexObjectsInCollectionsPerDocument">The maximum |
| | 41 | | /// number of objects in complex collections allowed per |
| | 42 | | /// document.</param> |
| 0 | 43 | | public ServiceLimits(int? maxFieldsPerIndex = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), |
| | 44 | | { |
| 0 | 45 | | MaxFieldsPerIndex = maxFieldsPerIndex; |
| 0 | 46 | | MaxFieldNestingDepthPerIndex = maxFieldNestingDepthPerIndex; |
| 0 | 47 | | MaxComplexCollectionFieldsPerIndex = maxComplexCollectionFieldsPerIndex; |
| 0 | 48 | | MaxComplexObjectsInCollectionsPerDocument = maxComplexObjectsInCollectionsPerDocument; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the maximum allowed fields per index. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "maxFieldsPerIndex")] |
| 8 | 61 | | public int? MaxFieldsPerIndex { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the maximum depth which you can nest sub-fields in an |
| | 65 | | /// index, including the top-level complex field. For example, a/b/c |
| | 66 | | /// has a nesting depth of 3. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "maxFieldNestingDepthPerIndex")] |
| 8 | 69 | | public int? MaxFieldNestingDepthPerIndex { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the maximum number of fields of type |
| | 73 | | /// Collection(Edm.ComplexType) allowed in an index. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "maxComplexCollectionFieldsPerIndex")] |
| 8 | 76 | | public int? MaxComplexCollectionFieldsPerIndex { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the maximum number of objects in complex collections |
| | 80 | | /// allowed per document. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "maxComplexObjectsInCollectionsPerDocument")] |
| 8 | 83 | | public int? MaxComplexObjectsInCollectionsPerDocument { get; set; } |
| | 84 | |
|
| | 85 | | } |
| | 86 | | } |