# 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::Compute::Mgmt::V2018_04_01
  module Models
    #
    # Describes scaling information of a sku.
    #
    class VirtualMachineScaleSetSkuCapacity

      include MsRestAzure

      # @return [Integer] The minimum capacity.
      attr_accessor :minimum

      # @return [Integer] The maximum capacity that can be set.
      attr_accessor :maximum

      # @return [Integer] The default capacity.
      attr_accessor :default_capacity

      # @return [VirtualMachineScaleSetSkuScaleType] The scale type applicable
      # to the sku. Possible values include: 'Automatic', 'None'
      attr_accessor :scale_type


      #
      # Mapper for VirtualMachineScaleSetSkuCapacity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VirtualMachineScaleSetSkuCapacity',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetSkuCapacity',
            model_properties: {
              minimum: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'minimum',
                type: {
                  name: 'Number'
                }
              },
              maximum: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'maximum',
                type: {
                  name: 'Number'
                }
              },
              default_capacity: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'defaultCapacity',
                type: {
                  name: 'Number'
                }
              },
              scale_type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'scaleType',
                type: {
                  name: 'Enum',
                  module: 'VirtualMachineScaleSetSkuScaleType'
                }
              }
            }
          }
        }
      end
    end
  end
end
