mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
vmm: openapi: Switch to describing new payload API
The old API remains usable, and will remain usable for two releases but we should only advertise the new API. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
51fdc48817
commit
8c22c03e1e
@ -499,21 +499,28 @@ components:
|
||||
type: string
|
||||
description: Information about a PCI device
|
||||
|
||||
PayloadConfig:
|
||||
type: object
|
||||
properties:
|
||||
kernel:
|
||||
type: string
|
||||
cmdline:
|
||||
type: string
|
||||
initramfs:
|
||||
type: string
|
||||
description: Payloads to boot in guest
|
||||
|
||||
VmConfig:
|
||||
required:
|
||||
- kernel
|
||||
- payload
|
||||
type: object
|
||||
properties:
|
||||
cpus:
|
||||
$ref: "#/components/schemas/CpusConfig"
|
||||
memory:
|
||||
$ref: "#/components/schemas/MemoryConfig"
|
||||
kernel:
|
||||
$ref: "#/components/schemas/KernelConfig"
|
||||
initramfs:
|
||||
$ref: "#/components/schemas/InitramfsConfig"
|
||||
cmdline:
|
||||
$ref: "#/components/schemas/CmdLineConfig"
|
||||
payload:
|
||||
$ref: "#/components/schemas/PayloadConfig"
|
||||
disks:
|
||||
type: array
|
||||
items:
|
||||
@ -721,31 +728,6 @@ components:
|
||||
items:
|
||||
$ref: "#/components/schemas/MemoryZoneConfig"
|
||||
|
||||
KernelConfig:
|
||||
required:
|
||||
- path
|
||||
type: object
|
||||
properties:
|
||||
path:
|
||||
type: string
|
||||
|
||||
InitramfsConfig:
|
||||
nullable: true
|
||||
required:
|
||||
- path
|
||||
type: object
|
||||
properties:
|
||||
path:
|
||||
type: string
|
||||
|
||||
CmdLineConfig:
|
||||
required:
|
||||
- args
|
||||
type: object
|
||||
properties:
|
||||
args:
|
||||
type: string
|
||||
|
||||
TokenBucket:
|
||||
required:
|
||||
- size
|
||||
|
Loading…
Reference in New Issue
Block a user