# 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::BatchAI::Mgmt::V2018_05_01
  module Models
    #
    # At least one of manual or autoScale settings must be specified. Only one
    # of manual or autoScale settings can be specified. If autoScale settings
    # are specified, the system automatically scales the cluster up and down
    # (within the supplied limits) based on the pending jobs on the cluster.
    #
    class ScaleSettings

      include MsRestAzure

      # @return [ManualScaleSettings] Manual scale settings. Manual scale
      # settings for the cluster.
      attr_accessor :manual

      # @return [AutoScaleSettings] Auto-scale settings. Auto-scale settings
      # for the cluster.
      attr_accessor :auto_scale


      #
      # 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: {
              manual: {
                client_side_validation: true,
                required: false,
                serialized_name: 'manual',
                type: {
                  name: 'Composite',
                  class_name: 'ManualScaleSettings'
                }
              },
              auto_scale: {
                client_side_validation: true,
                required: false,
                serialized_name: 'autoScale',
                type: {
                  name: 'Composite',
                  class_name: 'AutoScaleSettings'
                }
              }
            }
          }
        }
      end
    end
  end
end
