Bug 1259620 - Missing Cpu.setType api
Summary: Missing Cpu.setType api
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: ---
Hardware: Unspecified
OS: Unspecified
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0
Assignee: Juan Hernández
QA Contact: Petr Matyáš
Depends On:
TreeView+ depends on / blocked
Reported: 2015-09-03 08:22 UTC by Ala Hino
Modified: 2016-08-01 12:28 UTC (History)
6 users (show)

Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-08-01 12:28:30 UTC
oVirt Team: Infra
rule-engine: ovirt-4.0.0+
ylavi: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
oVirt gerrit 45996 0 master MERGED restapi: Replace CPU "id" attribute with "type" element Never

Description Ala Hino 2015-09-03 08:22:46 UTC
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):

Additional info:
This can only be targeted in 4.0 due backward compatibility. 
Or perhaps we can add setType api and deprecate setId logic.

Comment 1 Petr Matyáš 2016-07-29 07:57:36 UTC
Verified on 4.0.2-3

Note You need to log in before you can comment on or make changes to this bug.