runtime: clh: Re-generate the client code

This patch re-generates the client code for Cloud Hypervisor v40.0.
Note: The client code of cloud-hypervisor's OpenAPI is automatically
generated by openapi-generator.

Fixes: #9929

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2024-06-27 09:59:00 -07:00
parent ad92d73e43
commit 25e3cab028
6 changed files with 7 additions and 21 deletions

View File

@ -655,7 +655,7 @@ components:
guest_numa_id: 3
rng:
iommu: false
src: /dev/urandom
src: src
sgx_epc:
- prefault: false
size: 7
@ -1082,7 +1082,7 @@ components:
guest_numa_id: 3
rng:
iommu: false
src: /dev/urandom
src: src
sgx_epc:
- prefault: false
size: 7
@ -1366,11 +1366,9 @@ components:
- 3
properties:
boot_vcpus:
default: 1
minimum: 1
type: integer
max_vcpus:
default: 1
minimum: 1
type: integer
topology:
@ -1794,10 +1792,9 @@ components:
RngConfig:
example:
iommu: false
src: /dev/urandom
src: src
properties:
src:
default: /dev/urandom
type: string
iommu:
default: false

View File

@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BootVcpus** | **int32** | | [default to 1]
**MaxVcpus** | **int32** | | [default to 1]
**BootVcpus** | **int32** | |
**MaxVcpus** | **int32** | |
**Topology** | Pointer to [**CpuTopology**](CpuTopology.md) | | [optional]
**KvmHyperv** | Pointer to **bool** | | [optional] [default to false]
**MaxPhysBits** | Pointer to **int32** | | [optional]

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Src** | **string** | | [default to "/dev/urandom"]
**Src** | **string** | |
**Iommu** | Pointer to **bool** | | [optional] [default to false]
## Methods

View File

@ -43,10 +43,6 @@ func NewCpusConfig(bootVcpus int32, maxVcpus int32) *CpusConfig {
// but it doesn't guarantee that properties required by API are set
func NewCpusConfigWithDefaults() *CpusConfig {
this := CpusConfig{}
var bootVcpus int32 = 1
this.BootVcpus = bootVcpus
var maxVcpus int32 = 1
this.MaxVcpus = maxVcpus
var kvmHyperv bool = false
this.KvmHyperv = &kvmHyperv
return &this

View File

@ -37,8 +37,6 @@ func NewRngConfig(src string) *RngConfig {
// but it doesn't guarantee that properties required by API are set
func NewRngConfigWithDefaults() *RngConfig {
this := RngConfig{}
var src string = "/dev/urandom"
this.Src = src
var iommu bool = false
this.Iommu = &iommu
return &this

View File

@ -667,11 +667,9 @@ components:
properties:
boot_vcpus:
minimum: 1
default: 1
type: integer
max_vcpus:
minimum: 1
default: 1
type: integer
topology:
$ref: "#/components/schemas/CpuTopology"
@ -736,7 +734,6 @@ components:
size:
type: integer
format: int64
default: 512 MB
file:
type: string
mergeable:
@ -772,7 +769,6 @@ components:
size:
type: integer
format: int64
default: 512 MB
hotplug_size:
type: integer
format: int64
@ -963,7 +959,6 @@ components:
properties:
src:
type: string
default: "/dev/urandom"
iommu:
type: boolean
default: false