# 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::Web::Mgmt::V2015_08_01
  module Models
    #
    # Metric limits set on an app.
    #
    class SiteLimits

      include MsRestAzure

      # @return [Float] Maximum allowed CPU usage percentage.
      attr_accessor :max_percentage_cpu

      # @return [Integer] Maximum allowed memory usage in MB.
      attr_accessor :max_memory_in_mb

      # @return [Integer] Maximum allowed disk size usage in MB.
      attr_accessor :max_disk_size_in_mb


      #
      # Mapper for SiteLimits class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SiteLimits',
          type: {
            name: 'Composite',
            class_name: 'SiteLimits',
            model_properties: {
              max_percentage_cpu: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxPercentageCpu',
                type: {
                  name: 'Double'
                }
              },
              max_memory_in_mb: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxMemoryInMb',
                type: {
                  name: 'Number'
                }
              },
              max_disk_size_in_mb: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxDiskSizeInMb',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
