mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-23 16:24:19 +01:00
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:
@@ -0,0 +1,56 @@
|
||||
# CpuFeatures
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Amx** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewCpuFeatures
|
||||
|
||||
`func NewCpuFeatures() *CpuFeatures`
|
||||
|
||||
NewCpuFeatures instantiates a new CpuFeatures object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewCpuFeaturesWithDefaults
|
||||
|
||||
`func NewCpuFeaturesWithDefaults() *CpuFeatures`
|
||||
|
||||
NewCpuFeaturesWithDefaults instantiates a new CpuFeatures object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetAmx
|
||||
|
||||
`func (o *CpuFeatures) GetAmx() bool`
|
||||
|
||||
GetAmx returns the Amx field if non-nil, zero value otherwise.
|
||||
|
||||
### GetAmxOk
|
||||
|
||||
`func (o *CpuFeatures) GetAmxOk() (*bool, bool)`
|
||||
|
||||
GetAmxOk returns a tuple with the Amx field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetAmx
|
||||
|
||||
`func (o *CpuFeatures) SetAmx(v bool)`
|
||||
|
||||
SetAmx sets Amx field to given value.
|
||||
|
||||
### HasAmx
|
||||
|
||||
`func (o *CpuFeatures) HasAmx() bool`
|
||||
|
||||
HasAmx returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
||||
**Topology** | Pointer to [**CpuTopology**](CpuTopology.md) | | [optional]
|
||||
**MaxPhysBits** | Pointer to **int32** | | [optional]
|
||||
**Affinity** | Pointer to [**[]CpuAffinity**](CpuAffinity.md) | | [optional]
|
||||
**Features** | Pointer to [**CpuFeatures**](CpuFeatures.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -144,6 +145,31 @@ SetAffinity sets Affinity field to given value.
|
||||
|
||||
HasAffinity returns a boolean if a field has been set.
|
||||
|
||||
### GetFeatures
|
||||
|
||||
`func (o *CpusConfig) GetFeatures() CpuFeatures`
|
||||
|
||||
GetFeatures returns the Features field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFeaturesOk
|
||||
|
||||
`func (o *CpusConfig) GetFeaturesOk() (*CpuFeatures, bool)`
|
||||
|
||||
GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFeatures
|
||||
|
||||
`func (o *CpusConfig) SetFeatures(v CpuFeatures)`
|
||||
|
||||
SetFeatures sets Features field to given value.
|
||||
|
||||
### HasFeatures
|
||||
|
||||
`func (o *CpusConfig) HasFeatures() bool`
|
||||
|
||||
HasFeatures returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ Method | HTTP request | Description
|
||||
[**VmAddFsPut**](DefaultApi.md#VmAddFsPut) | **Put** /vm.add-fs | Add a new virtio-fs device to the VM
|
||||
[**VmAddNetPut**](DefaultApi.md#VmAddNetPut) | **Put** /vm.add-net | Add a new network device to the VM
|
||||
[**VmAddPmemPut**](DefaultApi.md#VmAddPmemPut) | **Put** /vm.add-pmem | Add a new pmem device to the VM
|
||||
[**VmAddVdpaPut**](DefaultApi.md#VmAddVdpaPut) | **Put** /vm.add-vdpa | Add a new vDPA device to the VM
|
||||
[**VmAddVsockPut**](DefaultApi.md#VmAddVsockPut) | **Put** /vm.add-vsock | Add a new vsock device to the VM
|
||||
[**VmCountersGet**](DefaultApi.md#VmCountersGet) | **Get** /vm.counters | Get counters from the VM
|
||||
[**VmInfoGet**](DefaultApi.md#VmInfoGet) | **Get** /vm.info | Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.
|
||||
@@ -870,6 +871,70 @@ No authorization required
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## VmAddVdpaPut
|
||||
|
||||
> PciDeviceInfo VmAddVdpaPut(ctx).VdpaConfig(vdpaConfig).Execute()
|
||||
|
||||
Add a new vDPA device to the VM
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "./openapi"
|
||||
)
|
||||
|
||||
func main() {
|
||||
vdpaConfig := *openapiclient.NewVdpaConfig("Path_example", int32(123)) // VdpaConfig | The details of the new vDPA device
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.DefaultApi.VmAddVdpaPut(context.Background()).VdpaConfig(vdpaConfig).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.VmAddVdpaPut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `VmAddVdpaPut`: PciDeviceInfo
|
||||
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.VmAddVdpaPut`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiVmAddVdpaPutRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**vdpaConfig** | [**VdpaConfig**](VdpaConfig.md) | The details of the new vDPA device |
|
||||
|
||||
### Return type
|
||||
|
||||
[**PciDeviceInfo**](PciDeviceInfo.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## VmAddVsockPut
|
||||
|
||||
> PciDeviceInfo VmAddVsockPut(ctx).VsockConfig(vsockConfig).Execute()
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
# VdpaConfig
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Path** | **string** | |
|
||||
**NumQueues** | **int32** | | [default to 1]
|
||||
**Iommu** | Pointer to **bool** | | [optional] [default to false]
|
||||
**PciSegment** | Pointer to **int32** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewVdpaConfig
|
||||
|
||||
`func NewVdpaConfig(path string, numQueues int32, ) *VdpaConfig`
|
||||
|
||||
NewVdpaConfig instantiates a new VdpaConfig object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewVdpaConfigWithDefaults
|
||||
|
||||
`func NewVdpaConfigWithDefaults() *VdpaConfig`
|
||||
|
||||
NewVdpaConfigWithDefaults instantiates a new VdpaConfig object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetPath
|
||||
|
||||
`func (o *VdpaConfig) GetPath() string`
|
||||
|
||||
GetPath returns the Path field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPathOk
|
||||
|
||||
`func (o *VdpaConfig) GetPathOk() (*string, bool)`
|
||||
|
||||
GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPath
|
||||
|
||||
`func (o *VdpaConfig) SetPath(v string)`
|
||||
|
||||
SetPath sets Path field to given value.
|
||||
|
||||
|
||||
### GetNumQueues
|
||||
|
||||
`func (o *VdpaConfig) GetNumQueues() int32`
|
||||
|
||||
GetNumQueues returns the NumQueues field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNumQueuesOk
|
||||
|
||||
`func (o *VdpaConfig) GetNumQueuesOk() (*int32, bool)`
|
||||
|
||||
GetNumQueuesOk returns a tuple with the NumQueues field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetNumQueues
|
||||
|
||||
`func (o *VdpaConfig) SetNumQueues(v int32)`
|
||||
|
||||
SetNumQueues sets NumQueues field to given value.
|
||||
|
||||
|
||||
### GetIommu
|
||||
|
||||
`func (o *VdpaConfig) GetIommu() bool`
|
||||
|
||||
GetIommu returns the Iommu field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIommuOk
|
||||
|
||||
`func (o *VdpaConfig) GetIommuOk() (*bool, bool)`
|
||||
|
||||
GetIommuOk returns a tuple with the Iommu field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIommu
|
||||
|
||||
`func (o *VdpaConfig) SetIommu(v bool)`
|
||||
|
||||
SetIommu sets Iommu field to given value.
|
||||
|
||||
### HasIommu
|
||||
|
||||
`func (o *VdpaConfig) HasIommu() bool`
|
||||
|
||||
HasIommu returns a boolean if a field has been set.
|
||||
|
||||
### GetPciSegment
|
||||
|
||||
`func (o *VdpaConfig) GetPciSegment() int32`
|
||||
|
||||
GetPciSegment returns the PciSegment field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPciSegmentOk
|
||||
|
||||
`func (o *VdpaConfig) GetPciSegmentOk() (*int32, bool)`
|
||||
|
||||
GetPciSegmentOk returns a tuple with the PciSegment field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPciSegment
|
||||
|
||||
`func (o *VdpaConfig) SetPciSegment(v int32)`
|
||||
|
||||
SetPciSegment sets PciSegment field to given value.
|
||||
|
||||
### HasPciSegment
|
||||
|
||||
`func (o *VdpaConfig) HasPciSegment() bool`
|
||||
|
||||
HasPciSegment returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *VdpaConfig) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *VdpaConfig) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *VdpaConfig) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *VdpaConfig) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
|
||||
**Serial** | Pointer to [**ConsoleConfig**](ConsoleConfig.md) | | [optional]
|
||||
**Console** | Pointer to [**ConsoleConfig**](ConsoleConfig.md) | | [optional]
|
||||
**Devices** | Pointer to [**[]DeviceConfig**](DeviceConfig.md) | | [optional]
|
||||
**Vdpa** | Pointer to [**[]VdpaConfig**](VdpaConfig.md) | | [optional]
|
||||
**Vsock** | Pointer to [**VsockConfig**](VsockConfig.md) | | [optional]
|
||||
**SgxEpc** | Pointer to [**[]SgxEpcConfig**](SgxEpcConfig.md) | | [optional]
|
||||
**Tdx** | Pointer to [**TdxConfig**](TdxConfig.md) | | [optional]
|
||||
@@ -400,6 +401,31 @@ SetDevices sets Devices field to given value.
|
||||
|
||||
HasDevices returns a boolean if a field has been set.
|
||||
|
||||
### GetVdpa
|
||||
|
||||
`func (o *VmConfig) GetVdpa() []VdpaConfig`
|
||||
|
||||
GetVdpa returns the Vdpa field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVdpaOk
|
||||
|
||||
`func (o *VmConfig) GetVdpaOk() (*[]VdpaConfig, bool)`
|
||||
|
||||
GetVdpaOk returns a tuple with the Vdpa field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVdpa
|
||||
|
||||
`func (o *VmConfig) SetVdpa(v []VdpaConfig)`
|
||||
|
||||
SetVdpa sets Vdpa field to given value.
|
||||
|
||||
### HasVdpa
|
||||
|
||||
`func (o *VmConfig) HasVdpa() bool`
|
||||
|
||||
HasVdpa returns a boolean if a field has been set.
|
||||
|
||||
### GetVsock
|
||||
|
||||
`func (o *VmConfig) GetVsock() VsockConfig`
|
||||
|
||||
Reference in New Issue
Block a user