This patch re-generates the client code for Cloud Hypervisor v27.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 Fixes: #5309 Signed-off-by: Bo Chen <chen.bo@intel.com>
12 KiB
VmConfig
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Cpus | Pointer to CpusConfig | [optional] | |
| Memory | Pointer to MemoryConfig | [optional] | |
| Payload | PayloadConfig | ||
| Disks | Pointer to []DiskConfig | [optional] | |
| Net | Pointer to []NetConfig | [optional] | |
| Rng | Pointer to RngConfig | [optional] | |
| Balloon | Pointer to BalloonConfig | [optional] | |
| Fs | Pointer to []FsConfig | [optional] | |
| Pmem | Pointer to []PmemConfig | [optional] | |
| Serial | Pointer to ConsoleConfig | [optional] | |
| Console | Pointer to ConsoleConfig | [optional] | |
| Devices | Pointer to []DeviceConfig | [optional] | |
| Vdpa | Pointer to []VdpaConfig | [optional] | |
| Vsock | Pointer to VsockConfig | [optional] | |
| SgxEpc | Pointer to []SgxEpcConfig | [optional] | |
| Numa | Pointer to []NumaConfig | [optional] | |
| Iommu | Pointer to bool | [optional] [default to false] | |
| Watchdog | Pointer to bool | [optional] [default to false] | |
| Platform | Pointer to PlatformConfig | [optional] |
Methods
NewVmConfig
func NewVmConfig(payload PayloadConfig, ) *VmConfig
NewVmConfig instantiates a new VmConfig 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
NewVmConfigWithDefaults
func NewVmConfigWithDefaults() *VmConfig
NewVmConfigWithDefaults instantiates a new VmConfig 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
GetCpus
func (o *VmConfig) GetCpus() CpusConfig
GetCpus returns the Cpus field if non-nil, zero value otherwise.
GetCpusOk
func (o *VmConfig) GetCpusOk() (*CpusConfig, bool)
GetCpusOk returns a tuple with the Cpus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCpus
func (o *VmConfig) SetCpus(v CpusConfig)
SetCpus sets Cpus field to given value.
HasCpus
func (o *VmConfig) HasCpus() bool
HasCpus returns a boolean if a field has been set.
GetMemory
func (o *VmConfig) GetMemory() MemoryConfig
GetMemory returns the Memory field if non-nil, zero value otherwise.
GetMemoryOk
func (o *VmConfig) GetMemoryOk() (*MemoryConfig, bool)
GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMemory
func (o *VmConfig) SetMemory(v MemoryConfig)
SetMemory sets Memory field to given value.
HasMemory
func (o *VmConfig) HasMemory() bool
HasMemory returns a boolean if a field has been set.
GetPayload
func (o *VmConfig) GetPayload() PayloadConfig
GetPayload returns the Payload field if non-nil, zero value otherwise.
GetPayloadOk
func (o *VmConfig) GetPayloadOk() (*PayloadConfig, bool)
GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPayload
func (o *VmConfig) SetPayload(v PayloadConfig)
SetPayload sets Payload field to given value.
GetDisks
func (o *VmConfig) GetDisks() []DiskConfig
GetDisks returns the Disks field if non-nil, zero value otherwise.
GetDisksOk
func (o *VmConfig) GetDisksOk() (*[]DiskConfig, bool)
GetDisksOk returns a tuple with the Disks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDisks
func (o *VmConfig) SetDisks(v []DiskConfig)
SetDisks sets Disks field to given value.
HasDisks
func (o *VmConfig) HasDisks() bool
HasDisks returns a boolean if a field has been set.
GetNet
func (o *VmConfig) GetNet() []NetConfig
GetNet returns the Net field if non-nil, zero value otherwise.
GetNetOk
func (o *VmConfig) GetNetOk() (*[]NetConfig, bool)
GetNetOk returns a tuple with the Net field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetNet
func (o *VmConfig) SetNet(v []NetConfig)
SetNet sets Net field to given value.
HasNet
func (o *VmConfig) HasNet() bool
HasNet returns a boolean if a field has been set.
GetRng
func (o *VmConfig) GetRng() RngConfig
GetRng returns the Rng field if non-nil, zero value otherwise.
GetRngOk
func (o *VmConfig) GetRngOk() (*RngConfig, bool)
GetRngOk returns a tuple with the Rng field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRng
func (o *VmConfig) SetRng(v RngConfig)
SetRng sets Rng field to given value.
HasRng
func (o *VmConfig) HasRng() bool
HasRng returns a boolean if a field has been set.
GetBalloon
func (o *VmConfig) GetBalloon() BalloonConfig
GetBalloon returns the Balloon field if non-nil, zero value otherwise.
GetBalloonOk
func (o *VmConfig) GetBalloonOk() (*BalloonConfig, bool)
GetBalloonOk returns a tuple with the Balloon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBalloon
func (o *VmConfig) SetBalloon(v BalloonConfig)
SetBalloon sets Balloon field to given value.
HasBalloon
func (o *VmConfig) HasBalloon() bool
HasBalloon returns a boolean if a field has been set.
GetFs
func (o *VmConfig) GetFs() []FsConfig
GetFs returns the Fs field if non-nil, zero value otherwise.
GetFsOk
func (o *VmConfig) GetFsOk() (*[]FsConfig, bool)
GetFsOk returns a tuple with the Fs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFs
func (o *VmConfig) SetFs(v []FsConfig)
SetFs sets Fs field to given value.
HasFs
func (o *VmConfig) HasFs() bool
HasFs returns a boolean if a field has been set.
GetPmem
func (o *VmConfig) GetPmem() []PmemConfig
GetPmem returns the Pmem field if non-nil, zero value otherwise.
GetPmemOk
func (o *VmConfig) GetPmemOk() (*[]PmemConfig, bool)
GetPmemOk returns a tuple with the Pmem field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPmem
func (o *VmConfig) SetPmem(v []PmemConfig)
SetPmem sets Pmem field to given value.
HasPmem
func (o *VmConfig) HasPmem() bool
HasPmem returns a boolean if a field has been set.
GetSerial
func (o *VmConfig) GetSerial() ConsoleConfig
GetSerial returns the Serial field if non-nil, zero value otherwise.
GetSerialOk
func (o *VmConfig) GetSerialOk() (*ConsoleConfig, bool)
GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSerial
func (o *VmConfig) SetSerial(v ConsoleConfig)
SetSerial sets Serial field to given value.
HasSerial
func (o *VmConfig) HasSerial() bool
HasSerial returns a boolean if a field has been set.
GetConsole
func (o *VmConfig) GetConsole() ConsoleConfig
GetConsole returns the Console field if non-nil, zero value otherwise.
GetConsoleOk
func (o *VmConfig) GetConsoleOk() (*ConsoleConfig, bool)
GetConsoleOk returns a tuple with the Console field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetConsole
func (o *VmConfig) SetConsole(v ConsoleConfig)
SetConsole sets Console field to given value.
HasConsole
func (o *VmConfig) HasConsole() bool
HasConsole returns a boolean if a field has been set.
GetDevices
func (o *VmConfig) GetDevices() []DeviceConfig
GetDevices returns the Devices field if non-nil, zero value otherwise.
GetDevicesOk
func (o *VmConfig) GetDevicesOk() (*[]DeviceConfig, bool)
GetDevicesOk returns a tuple with the Devices field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDevices
func (o *VmConfig) SetDevices(v []DeviceConfig)
SetDevices sets Devices field to given value.
HasDevices
func (o *VmConfig) HasDevices() bool
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
GetVsock returns the Vsock field if non-nil, zero value otherwise.
GetVsockOk
func (o *VmConfig) GetVsockOk() (*VsockConfig, bool)
GetVsockOk returns a tuple with the Vsock field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVsock
func (o *VmConfig) SetVsock(v VsockConfig)
SetVsock sets Vsock field to given value.
HasVsock
func (o *VmConfig) HasVsock() bool
HasVsock returns a boolean if a field has been set.
GetSgxEpc
func (o *VmConfig) GetSgxEpc() []SgxEpcConfig
GetSgxEpc returns the SgxEpc field if non-nil, zero value otherwise.
GetSgxEpcOk
func (o *VmConfig) GetSgxEpcOk() (*[]SgxEpcConfig, bool)
GetSgxEpcOk returns a tuple with the SgxEpc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSgxEpc
func (o *VmConfig) SetSgxEpc(v []SgxEpcConfig)
SetSgxEpc sets SgxEpc field to given value.
HasSgxEpc
func (o *VmConfig) HasSgxEpc() bool
HasSgxEpc returns a boolean if a field has been set.
GetNuma
func (o *VmConfig) GetNuma() []NumaConfig
GetNuma returns the Numa field if non-nil, zero value otherwise.
GetNumaOk
func (o *VmConfig) GetNumaOk() (*[]NumaConfig, bool)
GetNumaOk returns a tuple with the Numa field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetNuma
func (o *VmConfig) SetNuma(v []NumaConfig)
SetNuma sets Numa field to given value.
HasNuma
func (o *VmConfig) HasNuma() bool
HasNuma returns a boolean if a field has been set.
GetIommu
func (o *VmConfig) GetIommu() bool
GetIommu returns the Iommu field if non-nil, zero value otherwise.
GetIommuOk
func (o *VmConfig) 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 *VmConfig) SetIommu(v bool)
SetIommu sets Iommu field to given value.
HasIommu
func (o *VmConfig) HasIommu() bool
HasIommu returns a boolean if a field has been set.
GetWatchdog
func (o *VmConfig) GetWatchdog() bool
GetWatchdog returns the Watchdog field if non-nil, zero value otherwise.
GetWatchdogOk
func (o *VmConfig) GetWatchdogOk() (*bool, bool)
GetWatchdogOk returns a tuple with the Watchdog field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWatchdog
func (o *VmConfig) SetWatchdog(v bool)
SetWatchdog sets Watchdog field to given value.
HasWatchdog
func (o *VmConfig) HasWatchdog() bool
HasWatchdog returns a boolean if a field has been set.
GetPlatform
func (o *VmConfig) GetPlatform() PlatformConfig
GetPlatform returns the Platform field if non-nil, zero value otherwise.
GetPlatformOk
func (o *VmConfig) GetPlatformOk() (*PlatformConfig, bool)
GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPlatform
func (o *VmConfig) SetPlatform(v PlatformConfig)
SetPlatform sets Platform field to given value.
HasPlatform
func (o *VmConfig) HasPlatform() bool
HasPlatform returns a boolean if a field has been set.