Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the Usage class.
 /// </summary>
 /// <param name="currentValue">The current usage of the
 /// resource.</param>
 /// <param name="limit">The maximum permitted usage of the
 /// resource.</param>
 /// <param name="name">The name of the type of usage.</param>
 public Usage(int currentValue, long limit, UsageName name)
 {
     CurrentValue = currentValue;
     Limit        = limit;
     Name         = name;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the UsageInner class.
 /// </summary>
 /// <param name="unit">An enum describing the unit of usage
 /// measurement. Possible values include: 'Count'</param>
 /// <param name="currentValue">The current usage of the
 /// resource.</param>
 /// <param name="limit">The maximum permitted usage of the
 /// resource.</param>
 /// <param name="name">The name of the type of usage.</param>
 public UsageInner(UsageUnit unit = default(UsageUnit), int?currentValue = default(int?), long?limit = default(long?), UsageName name = default(UsageName))
 {
     Unit         = unit;
     CurrentValue = currentValue;
     Limit        = limit;
     Name         = name;
     CustomInit();
 }