# 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_4_0_36
  module Models
    #
    # This type describes the requested resources for a given container. It
    # describes the least amount of resources required for the container. A
    # container can consume more than requested resources up to the specified
    # limits before being restarted. Currently, the requested resources are
    # treated as limits.
    #
    class ResourceRequests

      include MsRestAzure

      # @return [Float] The memory request in GB for this container.
      attr_accessor :memory_in_gb

      # @return [Float] Requested number of CPU cores. At present, only full
      # cores are supported.
      attr_accessor :cpu


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