mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 01:02:33 +00:00
firecracker: Fix yaml definition
The upstream yaml definition has a formatting issue. Fix the indentation to ensure that swagger can generate the code. Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
This commit is contained in:
parent
62a715a330
commit
289df4da13
@ -354,38 +354,38 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$ref: "#/definitions/Error"
|
||||||
|
|
||||||
/vsocks/{id}:
|
/vsocks/{id}:
|
||||||
put:
|
put:
|
||||||
summary: Creates new vsock with ID specified by the id parameter.
|
summary: Creates new vsock with ID specified by the id parameter.
|
||||||
description:
|
description:
|
||||||
If the vsock device with the specified ID already exists, its body will
|
If the vsock device with the specified ID already exists, its body will
|
||||||
be updated based on the new input. May fail if update is not possible.
|
be updated based on the new input. May fail if update is not possible.
|
||||||
operationId: putGuestVsockByID
|
operationId: putGuestVsockByID
|
||||||
parameters:
|
parameters:
|
||||||
- name: id
|
- name: id
|
||||||
in: path
|
in: path
|
||||||
description: The id of the vsock device
|
description: The id of the vsock device
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- name: body
|
- name: body
|
||||||
in: body
|
in: body
|
||||||
description: Guest vsock properties
|
description: Guest vsock properties
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Vsock"
|
$ref: "#/definitions/Vsock"
|
||||||
responses:
|
responses:
|
||||||
201:
|
201:
|
||||||
description: Vsock created
|
description: Vsock created
|
||||||
204:
|
204:
|
||||||
description: Vsock updated
|
description: Vsock updated
|
||||||
400:
|
400:
|
||||||
description: Vsock cannot be created due to bad input
|
description: Vsock cannot be created due to bad input
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$ref: "#/definitions/Error"
|
||||||
default:
|
default:
|
||||||
description: Internal server error
|
description: Internal server error
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$ref: "#/definitions/Error"
|
||||||
|
|
||||||
definitions:
|
definitions:
|
||||||
BootSource:
|
BootSource:
|
||||||
@ -647,15 +647,15 @@ definitions:
|
|||||||
description: The amount of milliseconds it takes for the bucket to refill.
|
description: The amount of milliseconds it takes for the bucket to refill.
|
||||||
minimum: 0
|
minimum: 0
|
||||||
|
|
||||||
Vsock:
|
Vsock:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
- guest_cid
|
- guest_cid
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
guest_cid:
|
guest_cid:
|
||||||
type: integer
|
type: integer
|
||||||
minimum: 3
|
minimum: 3
|
||||||
description: Guest Vsock CID
|
description: Guest Vsock CID
|
||||||
|
Loading…
Reference in New Issue
Block a user