# 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::VisualSearch::V1_0
  module Models
    #
    # Defines an image region relevant to the ImageTag.
    #
    class ImageTagRegion

      include MsRestAzure

      # @return [NormalizedQuadrilateral] A rectangle that outlines the area of
      # interest for this tag.
      attr_accessor :query_rectangle

      # @return [NormalizedQuadrilateral] A recommended rectangle to show to
      # the user.
      attr_accessor :display_rectangle


      #
      # Mapper for ImageTagRegion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ImageTagRegion',
          type: {
            name: 'Composite',
            class_name: 'ImageTagRegion',
            model_properties: {
              query_rectangle: {
                client_side_validation: true,
                required: true,
                serialized_name: 'queryRectangle',
                type: {
                  name: 'Composite',
                  class_name: 'NormalizedQuadrilateral'
                }
              },
              display_rectangle: {
                client_side_validation: true,
                required: true,
                serialized_name: 'displayRectangle',
                type: {
                  name: 'Composite',
                  class_name: 'NormalizedQuadrilateral'
                }
              }
            }
          }
        }
      end
    end
  end
end
