virtcontainers: clh: Re-generate the client code

This patch re-generates the client code for Cloud Hypervisor v23.0.
Note: The client code of cloud-hypervisor's (CLH) OpenAPI is
automatically generated by openapi-generator [1-2].

[1] https://github.com/OpenAPITools/openapi-generator
[2] https://github.com/kata-containers/kata-containers/blob/main/src/runtime/virtcontainers/pkg/cloud-hypervisor/README.md

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2022-04-14 12:56:01 -07:00
parent 6012c19707
commit 29e569aa92
14 changed files with 1069 additions and 53 deletions

View File

@@ -325,7 +325,28 @@ paths:
description: The new device was successfully (cold) added to the VM instance.
500:
description: The new device could not be added to the VM instance.
/vm.add-vdpa:
put:
summary: Add a new vDPA device to the VM
requestBody:
description: The details of the new vDPA device
content:
application/json:
schema:
$ref: '#/components/schemas/VdpaConfig'
required: true
responses:
200:
description: The new vDPA device was successfully added to the VM instance.
content:
application/json:
schema:
$ref: '#/components/schemas/PciDeviceInfo'
204:
description: The new vDPA device was successfully (cold) added to the VM instance.
500:
description: The new vDPA device could not be added to the VM instance.
/vm.snapshot:
put:
@@ -505,6 +526,10 @@ components:
type: array
items:
$ref: '#/components/schemas/DeviceConfig'
vdpa:
type: array
items:
$ref: '#/components/schemas/VdpaConfig'
vsock:
$ref: '#/components/schemas/VsockConfig'
sgx_epc:
@@ -537,6 +562,12 @@ components:
items:
type: integer
CpuFeatures:
type: object
properties:
amx:
type: boolean
CpuTopology:
type: object
properties:
@@ -571,6 +602,8 @@ components:
type: array
items:
$ref: '#/components/schemas/CpuAffinity'
features:
$ref: '#/components/schemas/CpuFeatures'
PlatformConfig:
type: object
@@ -921,6 +954,26 @@ components:
id:
type: string
VdpaConfig:
required:
- path
- num_queues
type: object
properties:
path:
type: string
num_queues:
type: integer
default: 1
iommu:
type: boolean
default: false
pci_segment:
type: integer
format: int16
id:
type: string
VsockConfig:
required:
- cid