# 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::ComputerVision::V1_0
  module Models
    #
    # An object describing face rectangle.
    #
    class FaceRectangle

      include MsRestAzure

      # @return [Integer] X-coordinate of the top left point of the face.
      attr_accessor :left

      # @return [Integer] Y-coordinate of the top left point of the face.
      attr_accessor :top

      # @return [Integer] Width measured from the top-left point of the face.
      attr_accessor :width

      # @return [Integer] Height measured from the top-left point of the face.
      attr_accessor :height


      #
      # Mapper for FaceRectangle class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FaceRectangle',
          type: {
            name: 'Composite',
            class_name: 'FaceRectangle',
            model_properties: {
              left: {
                client_side_validation: true,
                required: false,
                serialized_name: 'left',
                type: {
                  name: 'Number'
                }
              },
              top: {
                client_side_validation: true,
                required: false,
                serialized_name: 'top',
                type: {
                  name: 'Number'
                }
              },
              width: {
                client_side_validation: true,
                required: false,
                serialized_name: 'width',
                type: {
                  name: 'Number'
                }
              },
              height: {
                client_side_validation: true,
                required: false,
                serialized_name: 'height',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
