# 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
    #
    # Hair color and associated confidence
    #
    class HairColor

      include MsRestAzure

      # @return [HairColorType] Name of the hair color. Possible values
      # include: 'unknown', 'white', 'gray', 'blond', 'brown', 'red', 'black',
      # 'other'
      attr_accessor :color

      # @return [Float] Confidence level of the color
      attr_accessor :confidence


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