# 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::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # Spark pool auto-scaling properties

    # Auto-scaling properties of a Big Data pool powered by Apache Spark
    #
    class AutoScaleProperties

      include MsRestAzure

      # @return [Integer] The minimum number of nodes the Big Data pool can
      # support.
      attr_accessor :min_node_count

      # @return [Boolean] Whether automatic scaling is enabled for the Big Data
      # pool.
      attr_accessor :enabled

      # @return [Integer] The maximum number of nodes the Big Data pool can
      # support.
      attr_accessor :max_node_count


      #
      # Mapper for AutoScaleProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AutoScaleProperties',
          type: {
            name: 'Composite',
            class_name: 'AutoScaleProperties',
            model_properties: {
              min_node_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'minNodeCount',
                type: {
                  name: 'Number'
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              max_node_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxNodeCount',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
