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

View File

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

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Src** | **string** | | [default to "/dev/urandom"] **Src** | **string** | |
**Iommu** | Pointer to **bool** | | [optional] [default to false] **Iommu** | Pointer to **bool** | | [optional] [default to false]
## Methods ## 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 // but it doesn't guarantee that properties required by API are set
func NewCpusConfigWithDefaults() *CpusConfig { func NewCpusConfigWithDefaults() *CpusConfig {
this := CpusConfig{} this := CpusConfig{}
var bootVcpus int32 = 1
this.BootVcpus = bootVcpus
var maxVcpus int32 = 1
this.MaxVcpus = maxVcpus
var kvmHyperv bool = false var kvmHyperv bool = false
this.KvmHyperv = &kvmHyperv this.KvmHyperv = &kvmHyperv
return &this 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 // but it doesn't guarantee that properties required by API are set
func NewRngConfigWithDefaults() *RngConfig { func NewRngConfigWithDefaults() *RngConfig {
this := RngConfig{} this := RngConfig{}
var src string = "/dev/urandom"
this.Src = src
var iommu bool = false var iommu bool = false
this.Iommu = &iommu this.Iommu = &iommu
return &this return &this

View File

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