| | 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.ResourceManager.Storage.Models |
| | 9 | | { |
| | 10 | | /// <summary> Describes Storage Resource Usage. </summary> |
| | 11 | | public partial class Usage |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of Usage. </summary> |
| 0 | 14 | | internal Usage() |
| | 15 | | { |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> Initializes a new instance of Usage. </summary> |
| | 19 | | /// <param name="unit"> Gets the unit of measurement. </param> |
| | 20 | | /// <param name="currentValue"> Gets the current count of the allocated resources in the subscription. </param> |
| | 21 | | /// <param name="limit"> Gets the maximum count of the resources that can be allocated in the subscription. </pa |
| | 22 | | /// <param name="name"> Gets the name of the type of usage. </param> |
| 4 | 23 | | internal Usage(UsageUnit? unit, int? currentValue, int? limit, UsageName name) |
| | 24 | | { |
| 4 | 25 | | Unit = unit; |
| 4 | 26 | | CurrentValue = currentValue; |
| 4 | 27 | | Limit = limit; |
| 4 | 28 | | Name = name; |
| 4 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> Gets the unit of measurement. </summary> |
| 4 | 32 | | public UsageUnit? Unit { get; } |
| | 33 | | /// <summary> Gets the current count of the allocated resources in the subscription. </summary> |
| 4 | 34 | | public int? CurrentValue { get; } |
| | 35 | | /// <summary> Gets the maximum count of the resources that can be allocated in the subscription. </summary> |
| 4 | 36 | | public int? Limit { get; } |
| | 37 | | /// <summary> Gets the name of the type of usage. </summary> |
| 12 | 38 | | public UsageName Name { get; } |
| | 39 | | } |
| | 40 | | } |