Skip to content

Commit

Permalink
runtime: clh: Re-generate the client code
Browse files Browse the repository at this point in the history
This patch re-generates the client code for Cloud Hypervisor v37.0.
Note: The client code of cloud-hypervisor's OpenAPI is automatically
generated by openapi-generator.

Fixes: kata-containers#8694

Signed-off-by: Bo Chen <chen.bo@intel.com>
  • Loading branch information
likebreath committed Apr 19, 2024
1 parent ccf562e commit 9ff0206
Show file tree
Hide file tree
Showing 8 changed files with 453 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ docs/SgxEpcConfig.md
docs/TokenBucket.md
docs/TpmConfig.md
docs/VdpaConfig.md
docs/VmAddUserDevice.md
docs/VmConfig.md
docs/VmCoredumpData.md
docs/VmInfo.md
Expand Down Expand Up @@ -75,6 +76,7 @@ model_sgx_epc_config.go
model_token_bucket.go
model_tpm_config.go
model_vdpa_config.go
model_vm_add_user_device.go
model_vm_config.go
model_vm_coredump_data.go
model_vm_info.go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**VmAddFsPut**](docs/DefaultApi.md#vmaddfsput) | **Put** /vm.add-fs | Add a new virtio-fs device to the VM
*DefaultApi* | [**VmAddNetPut**](docs/DefaultApi.md#vmaddnetput) | **Put** /vm.add-net | Add a new network device to the VM
*DefaultApi* | [**VmAddPmemPut**](docs/DefaultApi.md#vmaddpmemput) | **Put** /vm.add-pmem | Add a new pmem device to the VM
*DefaultApi* | [**VmAddUserDevicePut**](docs/DefaultApi.md#vmadduserdeviceput) | **Put** /vm.add-user-device | Add a new userspace device to the VM
*DefaultApi* | [**VmAddVdpaPut**](docs/DefaultApi.md#vmaddvdpaput) | **Put** /vm.add-vdpa | Add a new vDPA device to the VM
*DefaultApi* | [**VmAddVsockPut**](docs/DefaultApi.md#vmaddvsockput) | **Put** /vm.add-vsock | Add a new vsock device to the VM
*DefaultApi* | [**VmCoredumpPut**](docs/DefaultApi.md#vmcoredumpput) | **Put** /vm.coredump | Takes a VM coredump.
Expand Down Expand Up @@ -137,6 +138,7 @@ Class | Method | HTTP request | Description
- [TokenBucket](docs/TokenBucket.md)
- [TpmConfig](docs/TpmConfig.md)
- [VdpaConfig](docs/VdpaConfig.md)
- [VmAddUserDevice](docs/VmAddUserDevice.md)
- [VmConfig](docs/VmConfig.md)
- [VmCoredumpData](docs/VmCoredumpData.md)
- [VmInfo](docs/VmInfo.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,27 @@ paths:
"500":
description: The new vDPA device could not be added to the VM instance.
summary: Add a new vDPA device to the VM
/vm.add-user-device:
put:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VmAddUserDevice'
description: The path of the new device
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/PciDeviceInfo'
description: The new device was successfully added to the VM instance.
"204":
description: The new device was successfully (cold) added to the VM instance.
"404":
description: The new device could not be added to the VM instance.
summary: Add a new userspace device to the VM
/vm.snapshot:
put:
requestBody:
Expand Down Expand Up @@ -1935,3 +1956,12 @@ components:
required:
- destination_url
type: object
VmAddUserDevice:
example:
socket: socket
properties:
socket:
type: string
required:
- socket
type: object

0 comments on commit 9ff0206

Please sign in to comment.