| | 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 service-level resource counters and quotas. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ServiceCounters |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ServiceCounters class. |
| | 23 | | /// </summary> |
| 4 | 24 | | public ServiceCounters() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ServiceCounters class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="documentCounter">Total number of documents across all |
| | 33 | | /// indexes in the service.</param> |
| | 34 | | /// <param name="indexCounter">Total number of indexes.</param> |
| | 35 | | /// <param name="indexerCounter">Total number of indexers.</param> |
| | 36 | | /// <param name="dataSourceCounter">Total number of data |
| | 37 | | /// sources.</param> |
| | 38 | | /// <param name="storageSizeCounter">Total size of used storage in |
| | 39 | | /// bytes.</param> |
| | 40 | | /// <param name="synonymMapCounter">Total number of synonym |
| | 41 | | /// maps.</param> |
| 0 | 42 | | public ServiceCounters(ResourceCounter documentCounter = default(ResourceCounter), ResourceCounter indexCounter |
| | 43 | | { |
| 0 | 44 | | DocumentCounter = documentCounter; |
| 0 | 45 | | IndexCounter = indexCounter; |
| 0 | 46 | | IndexerCounter = indexerCounter; |
| 0 | 47 | | DataSourceCounter = dataSourceCounter; |
| 0 | 48 | | StorageSizeCounter = storageSizeCounter; |
| 0 | 49 | | SynonymMapCounter = synonymMapCounter; |
| | 50 | | CustomInit(); |
| 0 | 51 | | } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | 55 | | /// </summary> |
| | 56 | | partial void CustomInit(); |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets total number of documents across all indexes in the |
| | 60 | | /// service. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "documentCount")] |
| 10 | 63 | | public ResourceCounter DocumentCounter { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets total number of indexes. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "indexesCount")] |
| 10 | 69 | | public ResourceCounter IndexCounter { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets total number of indexers. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "indexersCount")] |
| 10 | 75 | | public ResourceCounter IndexerCounter { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets total number of data sources. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "dataSourcesCount")] |
| 10 | 81 | | public ResourceCounter DataSourceCounter { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets total size of used storage in bytes. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "storageSize")] |
| 10 | 87 | | public ResourceCounter StorageSizeCounter { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets total number of synonym maps. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "synonymMaps")] |
| 10 | 93 | | public ResourceCounter SynonymMapCounter { get; set; } |
| | 94 | |
|
| | 95 | | } |
| | 96 | | } |