module Azure::CognitiveServices::ComputerVision::V2_1
  module Models
    #
    # An entity observation in the image, along with the confidence score.
    #
    class ImageTag

      include MsRestAzure

      # @return [String] Name of the entity.
      attr_accessor :name

      # @return [Float] The level of confidence that the entity was observed.
      attr_accessor :confidence

      # @return [String] Optional hint/details for this tag.
      attr_accessor :hint


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