mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-22 07:44:25 +01:00
virtcontainers: clh: Re-generate the client code
This patch re-generates the client code for Cloud Hypervisor v21.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:
@@ -21,10 +21,12 @@ Method | HTTP request | Description
|
||||
[**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.
|
||||
[**VmReceiveMigrationPut**](DefaultApi.md#VmReceiveMigrationPut) | **Put** /vm.receive-migration | Receive a VM migration from URL
|
||||
[**VmRemoveDevicePut**](DefaultApi.md#VmRemoveDevicePut) | **Put** /vm.remove-device | Remove a device from the VM
|
||||
[**VmResizePut**](DefaultApi.md#VmResizePut) | **Put** /vm.resize | Resize the VM
|
||||
[**VmResizeZonePut**](DefaultApi.md#VmResizeZonePut) | **Put** /vm.resize-zone | Resize a memory zone
|
||||
[**VmRestorePut**](DefaultApi.md#VmRestorePut) | **Put** /vm.restore | Restore a VM from a snapshot.
|
||||
[**VmSendMigrationPut**](DefaultApi.md#VmSendMigrationPut) | **Put** /vm.send-migration | Send a VM migration to URL
|
||||
[**VmSnapshotPut**](DefaultApi.md#VmSnapshotPut) | **Put** /vm.snapshot | Returns a VM snapshot.
|
||||
[**VmmPingGet**](DefaultApi.md#VmmPingGet) | **Get** /vmm.ping | Ping the VMM to check for API server availability
|
||||
|
||||
@@ -1050,6 +1052,68 @@ No authorization required
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## VmReceiveMigrationPut
|
||||
|
||||
> VmReceiveMigrationPut(ctx).ReceiveMigrationData(receiveMigrationData).Execute()
|
||||
|
||||
Receive a VM migration from URL
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "./openapi"
|
||||
)
|
||||
|
||||
func main() {
|
||||
receiveMigrationData := *openapiclient.NewReceiveMigrationData() // ReceiveMigrationData | The URL for the reception of migration state
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.DefaultApi.VmReceiveMigrationPut(context.Background()).ReceiveMigrationData(receiveMigrationData).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.VmReceiveMigrationPut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiVmReceiveMigrationPutRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**receiveMigrationData** | [**ReceiveMigrationData**](ReceiveMigrationData.md) | The URL for the reception of migration state |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
|
||||
|
||||
## VmRemoveDevicePut
|
||||
|
||||
> VmRemoveDevicePut(ctx).VmRemoveDevice(vmRemoveDevice).Execute()
|
||||
@@ -1298,6 +1362,68 @@ No authorization required
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## VmSendMigrationPut
|
||||
|
||||
> VmSendMigrationPut(ctx).SendMigrationData(sendMigrationData).Execute()
|
||||
|
||||
Send a VM migration to URL
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "./openapi"
|
||||
)
|
||||
|
||||
func main() {
|
||||
sendMigrationData := *openapiclient.NewSendMigrationData() // SendMigrationData | The URL for sending the migration state
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.DefaultApi.VmSendMigrationPut(context.Background()).SendMigrationData(sendMigrationData).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.VmSendMigrationPut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiVmSendMigrationPutRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**sendMigrationData** | [**SendMigrationData**](SendMigrationData.md) | The URL for sending the migration state |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
|
||||
|
||||
## VmSnapshotPut
|
||||
|
||||
> VmSnapshotPut(ctx).VmSnapshotConfig(vmSnapshotConfig).Execute()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Tap** | Pointer to **string** | | [optional] [default to ""]
|
||||
**Tap** | Pointer to **string** | | [optional]
|
||||
**Ip** | Pointer to **string** | | [optional] [default to "192.168.249.1"]
|
||||
**Mask** | Pointer to **string** | | [optional] [default to "255.255.255.0"]
|
||||
**Mac** | Pointer to **string** | | [optional]
|
||||
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
||||
**VhostSocket** | Pointer to **string** | | [optional]
|
||||
**VhostMode** | Pointer to **string** | | [optional] [default to "Client"]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Fd** | Pointer to **[]int32** | | [optional]
|
||||
**Fds** | Pointer to **[]int32** | | [optional]
|
||||
**PciSegment** | Pointer to **int32** | | [optional]
|
||||
**RateLimiterConfig** | Pointer to [**RateLimiterConfig**](RateLimiterConfig.md) | | [optional]
|
||||
|
||||
@@ -313,30 +313,30 @@ SetId sets Id field to given value.
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetFd
|
||||
### GetFds
|
||||
|
||||
`func (o *NetConfig) GetFd() []int32`
|
||||
`func (o *NetConfig) GetFds() []int32`
|
||||
|
||||
GetFd returns the Fd field if non-nil, zero value otherwise.
|
||||
GetFds returns the Fds field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFdOk
|
||||
### GetFdsOk
|
||||
|
||||
`func (o *NetConfig) GetFdOk() (*[]int32, bool)`
|
||||
`func (o *NetConfig) GetFdsOk() (*[]int32, bool)`
|
||||
|
||||
GetFdOk returns a tuple with the Fd field if it's non-nil, zero value otherwise
|
||||
GetFdsOk returns a tuple with the Fds field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFd
|
||||
### SetFds
|
||||
|
||||
`func (o *NetConfig) SetFd(v []int32)`
|
||||
`func (o *NetConfig) SetFds(v []int32)`
|
||||
|
||||
SetFd sets Fd field to given value.
|
||||
SetFds sets Fds field to given value.
|
||||
|
||||
### HasFd
|
||||
### HasFds
|
||||
|
||||
`func (o *NetConfig) HasFd() bool`
|
||||
`func (o *NetConfig) HasFds() bool`
|
||||
|
||||
HasFd returns a boolean if a field has been set.
|
||||
HasFds returns a boolean if a field has been set.
|
||||
|
||||
### GetPciSegment
|
||||
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
# ReceiveMigrationData
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ReceiverUrl** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewReceiveMigrationData
|
||||
|
||||
`func NewReceiveMigrationData() *ReceiveMigrationData`
|
||||
|
||||
NewReceiveMigrationData instantiates a new ReceiveMigrationData 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
|
||||
|
||||
### NewReceiveMigrationDataWithDefaults
|
||||
|
||||
`func NewReceiveMigrationDataWithDefaults() *ReceiveMigrationData`
|
||||
|
||||
NewReceiveMigrationDataWithDefaults instantiates a new ReceiveMigrationData 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
|
||||
|
||||
### GetReceiverUrl
|
||||
|
||||
`func (o *ReceiveMigrationData) GetReceiverUrl() string`
|
||||
|
||||
GetReceiverUrl returns the ReceiverUrl field if non-nil, zero value otherwise.
|
||||
|
||||
### GetReceiverUrlOk
|
||||
|
||||
`func (o *ReceiveMigrationData) GetReceiverUrlOk() (*string, bool)`
|
||||
|
||||
GetReceiverUrlOk returns a tuple with the ReceiverUrl field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetReceiverUrl
|
||||
|
||||
`func (o *ReceiveMigrationData) SetReceiverUrl(v string)`
|
||||
|
||||
SetReceiverUrl sets ReceiverUrl field to given value.
|
||||
|
||||
### HasReceiverUrl
|
||||
|
||||
`func (o *ReceiveMigrationData) HasReceiverUrl() bool`
|
||||
|
||||
HasReceiverUrl 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)
|
||||
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
# SendMigrationData
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**DestinationUrl** | Pointer to **string** | | [optional]
|
||||
**Local** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewSendMigrationData
|
||||
|
||||
`func NewSendMigrationData() *SendMigrationData`
|
||||
|
||||
NewSendMigrationData instantiates a new SendMigrationData 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
|
||||
|
||||
### NewSendMigrationDataWithDefaults
|
||||
|
||||
`func NewSendMigrationDataWithDefaults() *SendMigrationData`
|
||||
|
||||
NewSendMigrationDataWithDefaults instantiates a new SendMigrationData 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
|
||||
|
||||
### GetDestinationUrl
|
||||
|
||||
`func (o *SendMigrationData) GetDestinationUrl() string`
|
||||
|
||||
GetDestinationUrl returns the DestinationUrl field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDestinationUrlOk
|
||||
|
||||
`func (o *SendMigrationData) GetDestinationUrlOk() (*string, bool)`
|
||||
|
||||
GetDestinationUrlOk returns a tuple with the DestinationUrl field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDestinationUrl
|
||||
|
||||
`func (o *SendMigrationData) SetDestinationUrl(v string)`
|
||||
|
||||
SetDestinationUrl sets DestinationUrl field to given value.
|
||||
|
||||
### HasDestinationUrl
|
||||
|
||||
`func (o *SendMigrationData) HasDestinationUrl() bool`
|
||||
|
||||
HasDestinationUrl returns a boolean if a field has been set.
|
||||
|
||||
### GetLocal
|
||||
|
||||
`func (o *SendMigrationData) GetLocal() bool`
|
||||
|
||||
GetLocal returns the Local field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLocalOk
|
||||
|
||||
`func (o *SendMigrationData) GetLocalOk() (*bool, bool)`
|
||||
|
||||
GetLocalOk returns a tuple with the Local field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLocal
|
||||
|
||||
`func (o *SendMigrationData) SetLocal(v bool)`
|
||||
|
||||
SetLocal sets Local field to given value.
|
||||
|
||||
### HasLocal
|
||||
|
||||
`func (o *SendMigrationData) HasLocal() bool`
|
||||
|
||||
HasLocal 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user