# 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::CognitiveServices::Face::V1_0
  module Models
    #
    # Properties describing exposure level of the image.
    #
    class Exposure

      include MsRestAzure

      # @return [ExposureLevel] An enum value indicating level of exposure.
      # Possible values include: 'UnderExposure', 'GoodExposure',
      # 'OverExposure'
      attr_accessor :exposure_level

      # @return [Float] A number indicating level of exposure level ranging
      # from 0 to 1. [0, 0.25) is under exposure. [0.25, 0.75) is good
      # exposure. [0.75, 1] is over exposure.
      attr_accessor :value


      #
      # Mapper for Exposure class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Exposure',
          type: {
            name: 'Composite',
            class_name: 'Exposure',
            model_properties: {
              exposure_level: {
                client_side_validation: true,
                required: false,
                serialized_name: 'exposureLevel',
                type: {
                  name: 'Enum',
                  module: 'ExposureLevel'
                }
              },
              value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'value',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
