| | 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 | | /// Statistics for a given index. Statistics are collected periodically and |
| | 18 | | /// are not guaranteed to always be up-to-date. |
| | 19 | | /// </summary> |
| | 20 | | public partial class IndexGetStatisticsResult |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the IndexGetStatisticsResult class. |
| | 24 | | /// </summary> |
| 2 | 25 | | public IndexGetStatisticsResult() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 2 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the IndexGetStatisticsResult class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="documentCount">The number of documents in the |
| | 34 | | /// index.</param> |
| | 35 | | /// <param name="storageSize">The amount of storage in bytes consumed |
| | 36 | | /// by the index.</param> |
| 0 | 37 | | public IndexGetStatisticsResult(long documentCount = default(long), long storageSize = default(long)) |
| | 38 | | { |
| 0 | 39 | | DocumentCount = documentCount; |
| 0 | 40 | | StorageSize = storageSize; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the number of documents in the index. |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "documentCount")] |
| 4 | 53 | | public long DocumentCount { get; private set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets the amount of storage in bytes consumed by the index. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "storageSize")] |
| 4 | 59 | | public long StorageSize { get; private set; } |
| | 60 | |
|
| | 61 | | } |
| | 62 | | } |