# 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::Portal::Mgmt::V2018_10_01_preview
  module Models
    #
    # The dashboard's part position.
    #
    class DashboardPartsPosition

      include MsRestAzure

      # @return [Float] The dashboard's part x coordinate.
      attr_accessor :x

      # @return [Float] The dashboard's part y coordinate.
      attr_accessor :y

      # @return [Float] The dashboard's part row span.
      attr_accessor :row_span

      # @return [Float] The dashboard's part column span.
      attr_accessor :col_span

      # @return The dashboard part's metadata.
      attr_accessor :metadata


      #
      # Mapper for DashboardPartsPosition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DashboardParts_position',
          type: {
            name: 'Composite',
            class_name: 'DashboardPartsPosition',
            model_properties: {
              x: {
                client_side_validation: true,
                required: false,
                serialized_name: 'x',
                type: {
                  name: 'Double'
                }
              },
              y: {
                client_side_validation: true,
                required: false,
                serialized_name: 'y',
                type: {
                  name: 'Double'
                }
              },
              row_span: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rowSpan',
                type: {
                  name: 'Double'
                }
              },
              col_span: {
                client_side_validation: true,
                required: false,
                serialized_name: 'colSpan',
                type: {
                  name: 'Double'
                }
              },
              metadata: {
                client_side_validation: true,
                required: false,
                serialized_name: 'metadata',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ObjectElementType',
                      type: {
                        name: 'Object'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
