# 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::FormRecognizer::V1_0_preview
  module Models
    #
    # Extraction information of a single page in a
    # with a document.
    #
    class ExtractedPage

      include MsRestAzure

      # @return [Integer] Page number.
      attr_accessor :number

      # @return [Integer] Height of the page (in pixels).
      attr_accessor :height

      # @return [Integer] Width of the page (in pixels).
      attr_accessor :width

      # @return [Integer] Cluster identifier.
      attr_accessor :cluster_id

      # @return [Array<ExtractedKeyValuePair>] List of Key-Value pairs
      # extracted from the page.
      attr_accessor :key_value_pairs

      # @return [Array<ExtractedTable>] List of Tables and their information
      # extracted from the page.
      attr_accessor :tables


      #
      # Mapper for ExtractedPage class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExtractedPage',
          type: {
            name: 'Composite',
            class_name: 'ExtractedPage',
            model_properties: {
              number: {
                client_side_validation: true,
                required: false,
                serialized_name: 'number',
                type: {
                  name: 'Number'
                }
              },
              height: {
                client_side_validation: true,
                required: false,
                serialized_name: 'height',
                type: {
                  name: 'Number'
                }
              },
              width: {
                client_side_validation: true,
                required: false,
                serialized_name: 'width',
                type: {
                  name: 'Number'
                }
              },
              cluster_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'clusterId',
                type: {
                  name: 'Number'
                }
              },
              key_value_pairs: {
                client_side_validation: true,
                required: false,
                serialized_name: 'keyValuePairs',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ExtractedKeyValuePairElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ExtractedKeyValuePair'
                      }
                  }
                }
              },
              tables: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tables',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ExtractedTableElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ExtractedTable'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
