mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
openapi: Add the 204 response to vm-add-* actions
As we've added support for cold adding devices to a VM that was created but not already started, we should propagate the `204` response generated on those cases to the yaml file, so openapi-generator can produce the correct client code on the go side, to handle both `200` and `204` successful results. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
committed by
Bo Chen
parent
5d2db68f67
commit
5752a2a4fb
@@ -195,6 +195,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
404:
|
404:
|
||||||
description: The new device could not be added to the VM instance.
|
description: The new device could not be added to the VM instance.
|
||||||
|
|
||||||
@@ -231,6 +233,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new disk was successfully (cold) added to the VM instance.
|
||||||
500:
|
500:
|
||||||
description: The new disk could not be added to the VM instance.
|
description: The new disk could not be added to the VM instance.
|
||||||
|
|
||||||
@@ -251,6 +255,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
500:
|
500:
|
||||||
description: The new device could not be added to the VM instance.
|
description: The new device could not be added to the VM instance.
|
||||||
|
|
||||||
@@ -271,6 +277,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
500:
|
500:
|
||||||
description: The new device could not be added to the VM instance.
|
description: The new device could not be added to the VM instance.
|
||||||
|
|
||||||
@@ -291,6 +299,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
500:
|
500:
|
||||||
description: The new device could not be added to the VM instance.
|
description: The new device could not be added to the VM instance.
|
||||||
|
|
||||||
@@ -311,6 +321,8 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PciDeviceInfo'
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
204:
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
500:
|
500:
|
||||||
description: The new device could not be added to the VM instance.
|
description: The new device could not be added to the VM instance.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user