# 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
    #
    # All possible faces that may qualify.
    #
    class IdentifyCandidate

      include MsRestAzure

      # @return Id of candidate
      attr_accessor :person_id

      # @return [Float] Confidence threshold of identification, used to judge
      # whether one face belong to one person. The range of confidenceThreshold
      # is [0, 1] (default specified by algorithm).
      attr_accessor :confidence


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