| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Network.Models |
| | 11 | | { |
| | 12 | | /// <summary> The network resource usage. </summary> |
| | 13 | | public partial class Usage |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of Usage. </summary> |
| | 16 | | /// <param name="currentValue"> The current value of the usage. </param> |
| | 17 | | /// <param name="limit"> The limit of usage. </param> |
| | 18 | | /// <param name="name"> The name of the type of usage. </param> |
| 0 | 19 | | internal Usage(long currentValue, long limit, UsageName name) |
| | 20 | | { |
| 0 | 21 | | if (name == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(name)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | Unit = "Count"; |
| 0 | 27 | | CurrentValue = currentValue; |
| 0 | 28 | | Limit = limit; |
| 0 | 29 | | Name = name; |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> Initializes a new instance of Usage. </summary> |
| | 33 | | /// <param name="id"> Resource identifier. </param> |
| | 34 | | /// <param name="unit"> An enum describing the unit of measurement. </param> |
| | 35 | | /// <param name="currentValue"> The current value of the usage. </param> |
| | 36 | | /// <param name="limit"> The limit of usage. </param> |
| | 37 | | /// <param name="name"> The name of the type of usage. </param> |
| 168 | 38 | | internal Usage(string id, string unit, long currentValue, long limit, UsageName name) |
| | 39 | | { |
| 168 | 40 | | Id = id; |
| 168 | 41 | | Unit = unit; |
| 168 | 42 | | CurrentValue = currentValue; |
| 168 | 43 | | Limit = limit; |
| 168 | 44 | | Name = name; |
| 168 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> Resource identifier. </summary> |
| 0 | 48 | | public string Id { get; } |
| | 49 | | /// <summary> An enum describing the unit of measurement. </summary> |
| 0 | 50 | | public string Unit { get; } |
| | 51 | | /// <summary> The current value of the usage. </summary> |
| 0 | 52 | | public long CurrentValue { get; } |
| | 53 | | /// <summary> The limit of usage. </summary> |
| 168 | 54 | | public long Limit { get; } |
| | 55 | | /// <summary> The name of the type of usage. </summary> |
| 504 | 56 | | public UsageName Name { get; } |
| | 57 | | } |
| | 58 | | } |