Description of problem:
There is no api to set cpu type; cpu.setId api is used the cpu type.
I find this inconvenience as, at least in the ui, admin specifically provides cpu type.
In addition, when using api to create objects, usually one expects the system to set the id rather than providing it.
Version-Release number of selected component (if applicable):
This can only be targeted in 4.0 due backward compatibility.
Or perhaps we can add setType api and deprecate setId logic.
Verified on 4.0.2-3