# 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::ServiceFabric::V6_3_0_9
  module Models
    #
    # This type describes the resource limits for a given container. It
    # describes the most amount of resources a container is allowed to use
    # before being restarted.
    #
    class ResourceLimits

      include MsRestAzure

      # @return [Float] The memory limit in GB.
      attr_accessor :memory_in_gb

      # @return [Float] CPU limits in cores. At present, only full cores are
      # supported.
      attr_accessor :cpu


      #
      # Mapper for ResourceLimits class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ResourceLimits',
          type: {
            name: 'Composite',
            class_name: 'ResourceLimits',
            model_properties: {
              memory_in_gb: {
                client_side_validation: true,
                required: false,
                serialized_name: 'memoryInGB',
                type: {
                  name: 'Double'
                }
              },
              cpu: {
                client_side_validation: true,
                required: false,
                serialized_name: 'cpu',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
