# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Web::Mgmt::V2018_02_01
  module Models
    #
    # Usage of the quota resource.
    #
    class Usage < ProxyOnlyResource

      include MsRestAzure

      # @return [String] Friendly name shown in the UI.
      attr_accessor :display_name

      # @return [String] Name of the quota resource.
      attr_accessor :resource_name

      # @return [String] Units of measurement for the quota resource.
      attr_accessor :unit

      # @return [Integer] The current value of the resource counter.
      attr_accessor :current_value

      # @return [Integer] The resource limit.
      attr_accessor :limit

      # @return [DateTime] Next reset time for the resource counter.
      attr_accessor :next_reset_time

      # @return [ComputeModeOptions] Compute mode used for this usage. Possible
      # values include: 'Shared', 'Dedicated', 'Dynamic'
      attr_accessor :compute_mode

      # @return [String] Site mode used for this usage.
      attr_accessor :site_mode


      #
      # Mapper for Usage class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Usage',
          type: {
            name: 'Composite',
            class_name: 'Usage',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.displayName',
                type: {
                  name: 'String'
                }
              },
              resource_name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.resourceName',
                type: {
                  name: 'String'
                }
              },
              unit: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.unit',
                type: {
                  name: 'String'
                }
              },
              current_value: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.currentValue',
                type: {
                  name: 'Number'
                }
              },
              limit: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.limit',
                type: {
                  name: 'Number'
                }
              },
              next_reset_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.nextResetTime',
                type: {
                  name: 'DateTime'
                }
              },
              compute_mode: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.computeMode',
                type: {
                  name: 'Enum',
                  module: 'ComputeModeOptions'
                }
              },
              site_mode: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.siteMode',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
