# 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::MachineLearningServices::Mgmt::V2018_03_01_preview
  module Models
    #
    # scale settings for BatchAI Compute
    #
    class ScaleSettings

      include MsRestAzure

      # @return [Integer] Max number of nodes to use
      attr_accessor :max_node_count

      # @return [Integer] Min number of nodes to use
      attr_accessor :min_node_count

      # @return [Boolean] Enable or disable auto scale
      attr_accessor :auto_scale_enabled


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