# 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::ContentModerator::V1_0
  module Models
    #
    # The match details.
    #
    class Match

      include MsRestAzure

      # @return [Float] Confidence score of the image match.
      attr_accessor :score

      # @return [Integer] The match id.
      attr_accessor :match_id

      # @return [String] The source.
      attr_accessor :source

      # @return [Array<Integer>] The tags for match details.
      attr_accessor :tags

      # @return [String] The label.
      attr_accessor :label


      #
      # Mapper for Match class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Match',
          type: {
            name: 'Composite',
            class_name: 'Match',
            model_properties: {
              score: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Score',
                type: {
                  name: 'Double'
                }
              },
              match_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MatchId',
                type: {
                  name: 'Number'
                }
              },
              source: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Source',
                type: {
                  name: 'String'
                }
              },
              tags: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Tags',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'NumberElementType',
                      type: {
                        name: 'Number'
                      }
                  }
                }
              },
              label: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Label',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
