# 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::Hdinsight::Mgmt::V2018_06_01_preview
  module Models
    #
    # The autoscale request parameters
    #
    class Autoscale

      include MsRestAzure

      # @return [AutoscaleCapacity] Parameters for load-based autoscale
      attr_accessor :capacity

      # @return [AutoscaleRecurrence] Parameters for schedule-based autoscale
      attr_accessor :recurrence


      #
      # Mapper for Autoscale class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Autoscale',
          type: {
            name: 'Composite',
            class_name: 'Autoscale',
            model_properties: {
              capacity: {
                client_side_validation: true,
                required: false,
                serialized_name: 'capacity',
                type: {
                  name: 'Composite',
                  class_name: 'AutoscaleCapacity'
                }
              },
              recurrence: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recurrence',
                type: {
                  name: 'Composite',
                  class_name: 'AutoscaleRecurrence'
                }
              }
            }
          }
        }
      end
    end
  end
end
