# 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::ResourceGraph::Mgmt::V2019_04_01
  module Models
    #
    # Query result column descriptor.
    #
    class Column

      include MsRestAzure

      # @return [String] Column name.
      attr_accessor :name

      # @return [ColumnDataType] Column data type. Possible values include:
      # 'string', 'integer', 'number', 'boolean', 'object'
      attr_accessor :type


      #
      # Mapper for Column class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Column',
          type: {
            name: 'Composite',
            class_name: 'Column',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'ColumnDataType'
                }
              }
            }
          }
        }
      end
    end
  end
end
