# 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::ContainerInstance::Mgmt::V2020_11_01
  module Models
    #
    # The supported capabilities.
    #
    class CapabilitiesCapabilities

      include MsRestAzure

      # @return [Float] The maximum allowed memory request in GB.
      attr_accessor :max_memory_in_gb

      # @return [Float] The maximum allowed CPU request in cores.
      attr_accessor :max_cpu

      # @return [Float] The maximum allowed GPU count.
      attr_accessor :max_gpu_count


      #
      # Mapper for CapabilitiesCapabilities class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Capabilities_capabilities',
          type: {
            name: 'Composite',
            class_name: 'CapabilitiesCapabilities',
            model_properties: {
              max_memory_in_gb: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'maxMemoryInGB',
                type: {
                  name: 'Double'
                }
              },
              max_cpu: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'maxCpu',
                type: {
                  name: 'Double'
                }
              },
              max_gpu_count: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'maxGpuCount',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
