# 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::V2015_08_01_preview
  module Models
    #
    # A dashboard lens.
    #
    class DashboardLens

      include MsRestAzure

      # @return [Integer] The lens order.
      attr_accessor :order

      # @return [Hash{String => DashboardParts}] The dashboard parts.
      attr_accessor :parts

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


      #
      # Mapper for DashboardLens class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DashboardLens',
          type: {
            name: 'Composite',
            class_name: 'DashboardLens',
            model_properties: {
              order: {
                client_side_validation: true,
                required: true,
                serialized_name: 'order',
                type: {
                  name: 'Number'
                }
              },
              parts: {
                client_side_validation: true,
                required: true,
                serialized_name: 'parts',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'DashboardPartsElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'DashboardParts'
                      }
                  }
                }
              },
              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
