# 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::Kusto::Mgmt::V2019_09_07
  module Models
    #
    # A class that contains the optimized auto scale definition.
    #
    class OptimizedAutoscale

      include MsRestAzure

      # @return [Integer] The version of the template defined, for instance 1.
      attr_accessor :version

      # @return [Boolean] A boolean value that indicate if the optimized
      # autoscale feature is enabled or not.
      attr_accessor :is_enabled

      # @return [Integer] Minimum allowed instances count.
      attr_accessor :minimum

      # @return [Integer] Maximum allowed instances count.
      attr_accessor :maximum


      #
      # Mapper for OptimizedAutoscale class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OptimizedAutoscale',
          type: {
            name: 'Composite',
            class_name: 'OptimizedAutoscale',
            model_properties: {
              version: {
                client_side_validation: true,
                required: true,
                serialized_name: 'version',
                type: {
                  name: 'Number'
                }
              },
              is_enabled: {
                client_side_validation: true,
                required: true,
                serialized_name: 'isEnabled',
                type: {
                  name: 'Boolean'
                }
              },
              minimum: {
                client_side_validation: true,
                required: true,
                serialized_name: 'minimum',
                type: {
                  name: 'Number'
                }
              },
              maximum: {
                client_side_validation: true,
                required: true,
                serialized_name: 'maximum',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
