| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.Search.Documents.Indexes.Models |
| | 9 | | { |
| | 10 | | /// <summary> Represents a resource's usage and quota. </summary> |
| | 11 | | public partial class SearchResourceCounter |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of SearchResourceCounter. </summary> |
| | 14 | | /// <param name="usage"> The resource usage amount. </param> |
| 0 | 15 | | internal SearchResourceCounter(long usage) |
| | 16 | | { |
| 0 | 17 | | Usage = usage; |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> Initializes a new instance of SearchResourceCounter. </summary> |
| | 21 | | /// <param name="usage"> The resource usage amount. </param> |
| | 22 | | /// <param name="quota"> The resource amount quota. </param> |
| 36 | 23 | | internal SearchResourceCounter(long usage, long? quota) |
| | 24 | | { |
| 36 | 25 | | Usage = usage; |
| 36 | 26 | | Quota = quota; |
| 36 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> The resource usage amount. </summary> |
| 8 | 30 | | public long Usage { get; } |
| | 31 | | /// <summary> The resource amount quota. </summary> |
| 4 | 32 | | public long? Quota { get; } |
| | 33 | | } |
| | 34 | | } |