/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * Usages of a vault.
 *
 */
class VaultUsage {
  /**
   * Create a VaultUsage.
   * @property {string} [unit] Unit of the usage. Possible values include:
   * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
   * @property {string} [quotaPeriod] Quota period of usage.
   * @property {date} [nextResetTime] Next reset time of usage.
   * @property {number} [currentValue] Current value of usage.
   * @property {number} [limit] Limit of usage.
   * @property {object} [name] Name of usage.
   * @property {string} [name.value] Value of usage.
   * @property {string} [name.localizedValue] Localized value of usage.
   */
  constructor() {
  }

  /**
   * Defines the metadata of VaultUsage
   *
   * @returns {object} metadata of VaultUsage
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'VaultUsage',
      type: {
        name: 'Composite',
        className: 'VaultUsage',
        modelProperties: {
          unit: {
            required: false,
            serializedName: 'unit',
            type: {
              name: 'String'
            }
          },
          quotaPeriod: {
            required: false,
            serializedName: 'quotaPeriod',
            type: {
              name: 'String'
            }
          },
          nextResetTime: {
            required: false,
            serializedName: 'nextResetTime',
            type: {
              name: 'DateTime'
            }
          },
          currentValue: {
            required: false,
            serializedName: 'currentValue',
            type: {
              name: 'Number'
            }
          },
          limit: {
            required: false,
            serializedName: 'limit',
            type: {
              name: 'Number'
            }
          },
          name: {
            required: false,
            serializedName: 'name',
            type: {
              name: 'Composite',
              className: 'NameInfo'
            }
          }
        }
      }
    };
  }
}

module.exports = VaultUsage;
