Do not allow only cpu or only ram.
High-level object-oriented API is here.