openapi

package
v0.0.0-...-62bad97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for openapi

Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.3.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./openapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost/api/v1

Class Method HTTP request Description
DefaultApi BootVM Put /vm.boot Boot the previously created VM instance.
DefaultApi CreateVM Put /vm.create Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.
DefaultApi DeleteVM Put /vm.delete Delete the cloud-hypervisor Virtual Machine (VM) instance.
DefaultApi PauseVM Put /vm.pause Pause a previously booted VM instance.
DefaultApi PowerButtonVM Put /vm.power-button Trigger a power button in the VM
DefaultApi RebootVM Put /vm.reboot Reboot the VM instance.
DefaultApi ResumeVM Put /vm.resume Resume a previously paused VM instance.
DefaultApi ShutdownVM Put /vm.shutdown Shut the VM instance down.
DefaultApi ShutdownVMM Put /vmm.shutdown Shuts the cloud-hypervisor VMM.
DefaultApi VmAddDevicePut Put /vm.add-device Add a new device to the VM
DefaultApi VmAddDiskPut Put /vm.add-disk Add a new disk to the VM
DefaultApi VmAddFsPut Put /vm.add-fs Add a new virtio-fs device to the VM
DefaultApi VmAddNetPut Put /vm.add-net Add a new network device to the VM
DefaultApi VmAddPmemPut Put /vm.add-pmem Add a new pmem device to the VM
DefaultApi VmAddVdpaPut Put /vm.add-vdpa Add a new vDPA device to the VM
DefaultApi VmAddVsockPut Put /vm.add-vsock Add a new vsock device to the VM
DefaultApi VmCoredumpPut Put /vm.coredump Takes a VM coredump.
DefaultApi VmCountersGet Get /vm.counters Get counters from the VM
DefaultApi VmInfoGet Get /vm.info Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.
DefaultApi VmReceiveMigrationPut Put /vm.receive-migration Receive a VM migration from URL
DefaultApi VmRemoveDevicePut Put /vm.remove-device Remove a device from the VM
DefaultApi VmResizePut Put /vm.resize Resize the VM
DefaultApi VmResizeZonePut Put /vm.resize-zone Resize a memory zone
DefaultApi VmRestorePut Put /vm.restore Restore a VM from a snapshot.
DefaultApi VmSendMigrationPut Put /vm.send-migration Send a VM migration to URL
DefaultApi VmSnapshotPut Put /vm.snapshot Returns a VM snapshot.
DefaultApi VmmPingGet Get /vmm.ping Ping the VMM to check for API server availability

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Cloud Hypervisor API API v0.3.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiBootVMRequest

type ApiBootVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiBootVMRequest) Execute

func (r ApiBootVMRequest) Execute() (*_nethttp.Response, error)

type ApiCreateVMRequest

type ApiCreateVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiCreateVMRequest) Execute

func (r ApiCreateVMRequest) Execute() (*_nethttp.Response, error)

func (ApiCreateVMRequest) VmConfig

func (r ApiCreateVMRequest) VmConfig(vmConfig VmConfig) ApiCreateVMRequest

The VM configuration

type ApiDeleteVMRequest

type ApiDeleteVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiDeleteVMRequest) Execute

func (r ApiDeleteVMRequest) Execute() (*_nethttp.Response, error)

type ApiPauseVMRequest

type ApiPauseVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPauseVMRequest) Execute

func (r ApiPauseVMRequest) Execute() (*_nethttp.Response, error)

type ApiPowerButtonVMRequest

type ApiPowerButtonVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiPowerButtonVMRequest) Execute

type ApiRebootVMRequest

type ApiRebootVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiRebootVMRequest) Execute

func (r ApiRebootVMRequest) Execute() (*_nethttp.Response, error)

type ApiResumeVMRequest

type ApiResumeVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiResumeVMRequest) Execute

func (r ApiResumeVMRequest) Execute() (*_nethttp.Response, error)

type ApiShutdownVMMRequest

type ApiShutdownVMMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiShutdownVMMRequest) Execute

func (r ApiShutdownVMMRequest) Execute() (*_nethttp.Response, error)

type ApiShutdownVMRequest

type ApiShutdownVMRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiShutdownVMRequest) Execute

func (r ApiShutdownVMRequest) Execute() (*_nethttp.Response, error)

type ApiVmAddDevicePutRequest

type ApiVmAddDevicePutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddDevicePutRequest) DeviceConfig

func (r ApiVmAddDevicePutRequest) DeviceConfig(deviceConfig DeviceConfig) ApiVmAddDevicePutRequest

The path of the new device

func (ApiVmAddDevicePutRequest) Execute

type ApiVmAddDiskPutRequest

type ApiVmAddDiskPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddDiskPutRequest) DiskConfig

func (r ApiVmAddDiskPutRequest) DiskConfig(diskConfig DiskConfig) ApiVmAddDiskPutRequest

The details of the new disk

func (ApiVmAddDiskPutRequest) Execute

type ApiVmAddFsPutRequest

type ApiVmAddFsPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddFsPutRequest) Execute

func (ApiVmAddFsPutRequest) FsConfig

func (r ApiVmAddFsPutRequest) FsConfig(fsConfig FsConfig) ApiVmAddFsPutRequest

The details of the new virtio-fs

type ApiVmAddNetPutRequest

type ApiVmAddNetPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddNetPutRequest) Execute

func (ApiVmAddNetPutRequest) NetConfig

func (r ApiVmAddNetPutRequest) NetConfig(netConfig NetConfig) ApiVmAddNetPutRequest

The details of the new network device

type ApiVmAddPmemPutRequest

type ApiVmAddPmemPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddPmemPutRequest) Execute

func (ApiVmAddPmemPutRequest) PmemConfig

func (r ApiVmAddPmemPutRequest) PmemConfig(pmemConfig PmemConfig) ApiVmAddPmemPutRequest

The details of the new pmem device

type ApiVmAddVdpaPutRequest

type ApiVmAddVdpaPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddVdpaPutRequest) Execute

func (ApiVmAddVdpaPutRequest) VdpaConfig

func (r ApiVmAddVdpaPutRequest) VdpaConfig(vdpaConfig VdpaConfig) ApiVmAddVdpaPutRequest

The details of the new vDPA device

type ApiVmAddVsockPutRequest

type ApiVmAddVsockPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmAddVsockPutRequest) Execute

func (ApiVmAddVsockPutRequest) VsockConfig

func (r ApiVmAddVsockPutRequest) VsockConfig(vsockConfig VsockConfig) ApiVmAddVsockPutRequest

The details of the new vsock device

type ApiVmCoredumpPutRequest

type ApiVmCoredumpPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmCoredumpPutRequest) Execute

func (ApiVmCoredumpPutRequest) VmCoredumpData

func (r ApiVmCoredumpPutRequest) VmCoredumpData(vmCoredumpData VmCoredumpData) ApiVmCoredumpPutRequest

The coredump configuration

type ApiVmCountersGetRequest

type ApiVmCountersGetRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmCountersGetRequest) Execute

type ApiVmInfoGetRequest

type ApiVmInfoGetRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmInfoGetRequest) Execute

type ApiVmReceiveMigrationPutRequest

type ApiVmReceiveMigrationPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmReceiveMigrationPutRequest) Execute

func (ApiVmReceiveMigrationPutRequest) ReceiveMigrationData

func (r ApiVmReceiveMigrationPutRequest) ReceiveMigrationData(receiveMigrationData ReceiveMigrationData) ApiVmReceiveMigrationPutRequest

The URL for the reception of migration state

type ApiVmRemoveDevicePutRequest

type ApiVmRemoveDevicePutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmRemoveDevicePutRequest) Execute

func (ApiVmRemoveDevicePutRequest) VmRemoveDevice

The identifier of the device

type ApiVmResizePutRequest

type ApiVmResizePutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmResizePutRequest) Execute

func (r ApiVmResizePutRequest) Execute() (*_nethttp.Response, error)

func (ApiVmResizePutRequest) VmResize

The target size for the VM

type ApiVmResizeZonePutRequest

type ApiVmResizeZonePutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmResizeZonePutRequest) Execute

func (ApiVmResizeZonePutRequest) VmResizeZone

The target size for the memory zone

type ApiVmRestorePutRequest

type ApiVmRestorePutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmRestorePutRequest) Execute

func (ApiVmRestorePutRequest) RestoreConfig

func (r ApiVmRestorePutRequest) RestoreConfig(restoreConfig RestoreConfig) ApiVmRestorePutRequest

The restore configuration

type ApiVmSendMigrationPutRequest

type ApiVmSendMigrationPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmSendMigrationPutRequest) Execute

func (ApiVmSendMigrationPutRequest) SendMigrationData

func (r ApiVmSendMigrationPutRequest) SendMigrationData(sendMigrationData SendMigrationData) ApiVmSendMigrationPutRequest

The URL for sending the migration state

type ApiVmSnapshotPutRequest

type ApiVmSnapshotPutRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmSnapshotPutRequest) Execute

func (ApiVmSnapshotPutRequest) VmSnapshotConfig

func (r ApiVmSnapshotPutRequest) VmSnapshotConfig(vmSnapshotConfig VmSnapshotConfig) ApiVmSnapshotPutRequest

The snapshot configuration

type ApiVmmPingGetRequest

type ApiVmmPingGetRequest struct {
	ApiService *DefaultApiService
	// contains filtered or unexported fields
}

func (ApiVmmPingGetRequest) Execute

type BalloonConfig

type BalloonConfig struct {
	Size int64 `json:"size"`
	// Deflate balloon when the guest is under memory pressure.
	DeflateOnOom *bool `json:"deflate_on_oom,omitempty"`
	// Enable guest to report free pages.
	FreePageReporting *bool `json:"free_page_reporting,omitempty"`
}

BalloonConfig struct for BalloonConfig

func NewBalloonConfig

func NewBalloonConfig(size int64) *BalloonConfig

NewBalloonConfig instantiates a new BalloonConfig 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

func NewBalloonConfigWithDefaults

func NewBalloonConfigWithDefaults() *BalloonConfig

NewBalloonConfigWithDefaults instantiates a new BalloonConfig 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

func (*BalloonConfig) GetDeflateOnOom

func (o *BalloonConfig) GetDeflateOnOom() bool

GetDeflateOnOom returns the DeflateOnOom field value if set, zero value otherwise.

func (*BalloonConfig) GetDeflateOnOomOk

func (o *BalloonConfig) GetDeflateOnOomOk() (*bool, bool)

GetDeflateOnOomOk returns a tuple with the DeflateOnOom field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalloonConfig) GetFreePageReporting

func (o *BalloonConfig) GetFreePageReporting() bool

GetFreePageReporting returns the FreePageReporting field value if set, zero value otherwise.

func (*BalloonConfig) GetFreePageReportingOk

func (o *BalloonConfig) GetFreePageReportingOk() (*bool, bool)

GetFreePageReportingOk returns a tuple with the FreePageReporting field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalloonConfig) GetSize

func (o *BalloonConfig) GetSize() int64

GetSize returns the Size field value

func (*BalloonConfig) GetSizeOk

func (o *BalloonConfig) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*BalloonConfig) HasDeflateOnOom

func (o *BalloonConfig) HasDeflateOnOom() bool

HasDeflateOnOom returns a boolean if a field has been set.

func (*BalloonConfig) HasFreePageReporting

func (o *BalloonConfig) HasFreePageReporting() bool

HasFreePageReporting returns a boolean if a field has been set.

func (BalloonConfig) MarshalJSON

func (o BalloonConfig) MarshalJSON() ([]byte, error)

func (*BalloonConfig) SetDeflateOnOom

func (o *BalloonConfig) SetDeflateOnOom(v bool)

SetDeflateOnOom gets a reference to the given bool and assigns it to the DeflateOnOom field.

func (*BalloonConfig) SetFreePageReporting

func (o *BalloonConfig) SetFreePageReporting(v bool)

SetFreePageReporting gets a reference to the given bool and assigns it to the FreePageReporting field.

func (*BalloonConfig) SetSize

func (o *BalloonConfig) SetSize(v int64)

SetSize sets field value

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ConsoleConfig

type ConsoleConfig struct {
	File   *string `json:"file,omitempty"`
	Socket *string `json:"socket,omitempty"`
	Mode   string  `json:"mode"`
	Iommu  *bool   `json:"iommu,omitempty"`
}

ConsoleConfig struct for ConsoleConfig

func NewConsoleConfig

func NewConsoleConfig(mode string) *ConsoleConfig

NewConsoleConfig instantiates a new ConsoleConfig 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

func NewConsoleConfigWithDefaults

func NewConsoleConfigWithDefaults() *ConsoleConfig

NewConsoleConfigWithDefaults instantiates a new ConsoleConfig 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

func (*ConsoleConfig) GetFile

func (o *ConsoleConfig) GetFile() string

GetFile returns the File field value if set, zero value otherwise.

func (*ConsoleConfig) GetFileOk

func (o *ConsoleConfig) GetFileOk() (*string, bool)

GetFileOk returns a tuple with the File field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConsoleConfig) GetIommu

func (o *ConsoleConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*ConsoleConfig) GetIommuOk

func (o *ConsoleConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConsoleConfig) GetMode

func (o *ConsoleConfig) GetMode() string

GetMode returns the Mode field value

func (*ConsoleConfig) GetModeOk

func (o *ConsoleConfig) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value and a boolean to check if the value has been set.

func (*ConsoleConfig) GetSocket

func (o *ConsoleConfig) GetSocket() string

GetSocket returns the Socket field value if set, zero value otherwise.

func (*ConsoleConfig) GetSocketOk

func (o *ConsoleConfig) GetSocketOk() (*string, bool)

GetSocketOk returns a tuple with the Socket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConsoleConfig) HasFile

func (o *ConsoleConfig) HasFile() bool

HasFile returns a boolean if a field has been set.

func (*ConsoleConfig) HasIommu

func (o *ConsoleConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*ConsoleConfig) HasSocket

func (o *ConsoleConfig) HasSocket() bool

HasSocket returns a boolean if a field has been set.

func (ConsoleConfig) MarshalJSON

func (o ConsoleConfig) MarshalJSON() ([]byte, error)

func (*ConsoleConfig) SetFile

func (o *ConsoleConfig) SetFile(v string)

SetFile gets a reference to the given string and assigns it to the File field.

func (*ConsoleConfig) SetIommu

func (o *ConsoleConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*ConsoleConfig) SetMode

func (o *ConsoleConfig) SetMode(v string)

SetMode sets field value

func (*ConsoleConfig) SetSocket

func (o *ConsoleConfig) SetSocket(v string)

SetSocket gets a reference to the given string and assigns it to the Socket field.

type CpuAffinity

type CpuAffinity struct {
	Vcpu     int32   `json:"vcpu"`
	HostCpus []int32 `json:"host_cpus"`
}

CpuAffinity struct for CpuAffinity

func NewCpuAffinity

func NewCpuAffinity(vcpu int32, hostCpus []int32) *CpuAffinity

NewCpuAffinity instantiates a new CpuAffinity 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

func NewCpuAffinityWithDefaults

func NewCpuAffinityWithDefaults() *CpuAffinity

NewCpuAffinityWithDefaults instantiates a new CpuAffinity 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

func (*CpuAffinity) GetHostCpus

func (o *CpuAffinity) GetHostCpus() []int32

GetHostCpus returns the HostCpus field value

func (*CpuAffinity) GetHostCpusOk

func (o *CpuAffinity) GetHostCpusOk() (*[]int32, bool)

GetHostCpusOk returns a tuple with the HostCpus field value and a boolean to check if the value has been set.

func (*CpuAffinity) GetVcpu

func (o *CpuAffinity) GetVcpu() int32

GetVcpu returns the Vcpu field value

func (*CpuAffinity) GetVcpuOk

func (o *CpuAffinity) GetVcpuOk() (*int32, bool)

GetVcpuOk returns a tuple with the Vcpu field value and a boolean to check if the value has been set.

func (CpuAffinity) MarshalJSON

func (o CpuAffinity) MarshalJSON() ([]byte, error)

func (*CpuAffinity) SetHostCpus

func (o *CpuAffinity) SetHostCpus(v []int32)

SetHostCpus sets field value

func (*CpuAffinity) SetVcpu

func (o *CpuAffinity) SetVcpu(v int32)

SetVcpu sets field value

type CpuFeatures

type CpuFeatures struct {
	Amx *bool `json:"amx,omitempty"`
}

CpuFeatures struct for CpuFeatures

func 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

func 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

func (*CpuFeatures) GetAmx

func (o *CpuFeatures) GetAmx() bool

GetAmx returns the Amx field value if set, zero value otherwise.

func (*CpuFeatures) GetAmxOk

func (o *CpuFeatures) GetAmxOk() (*bool, bool)

GetAmxOk returns a tuple with the Amx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpuFeatures) HasAmx

func (o *CpuFeatures) HasAmx() bool

HasAmx returns a boolean if a field has been set.

func (CpuFeatures) MarshalJSON

func (o CpuFeatures) MarshalJSON() ([]byte, error)

func (*CpuFeatures) SetAmx

func (o *CpuFeatures) SetAmx(v bool)

SetAmx gets a reference to the given bool and assigns it to the Amx field.

type CpuTopology

type CpuTopology struct {
	ThreadsPerCore *int32 `json:"threads_per_core,omitempty"`
	CoresPerDie    *int32 `json:"cores_per_die,omitempty"`
	DiesPerPackage *int32 `json:"dies_per_package,omitempty"`
	Packages       *int32 `json:"packages,omitempty"`
}

CpuTopology struct for CpuTopology

func NewCpuTopology

func NewCpuTopology() *CpuTopology

NewCpuTopology instantiates a new CpuTopology 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

func NewCpuTopologyWithDefaults

func NewCpuTopologyWithDefaults() *CpuTopology

NewCpuTopologyWithDefaults instantiates a new CpuTopology 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

func (*CpuTopology) GetCoresPerDie

func (o *CpuTopology) GetCoresPerDie() int32

GetCoresPerDie returns the CoresPerDie field value if set, zero value otherwise.

func (*CpuTopology) GetCoresPerDieOk

func (o *CpuTopology) GetCoresPerDieOk() (*int32, bool)

GetCoresPerDieOk returns a tuple with the CoresPerDie field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpuTopology) GetDiesPerPackage

func (o *CpuTopology) GetDiesPerPackage() int32

GetDiesPerPackage returns the DiesPerPackage field value if set, zero value otherwise.

func (*CpuTopology) GetDiesPerPackageOk

func (o *CpuTopology) GetDiesPerPackageOk() (*int32, bool)

GetDiesPerPackageOk returns a tuple with the DiesPerPackage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpuTopology) GetPackages

func (o *CpuTopology) GetPackages() int32

GetPackages returns the Packages field value if set, zero value otherwise.

func (*CpuTopology) GetPackagesOk

func (o *CpuTopology) GetPackagesOk() (*int32, bool)

GetPackagesOk returns a tuple with the Packages field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpuTopology) GetThreadsPerCore

func (o *CpuTopology) GetThreadsPerCore() int32

GetThreadsPerCore returns the ThreadsPerCore field value if set, zero value otherwise.

func (*CpuTopology) GetThreadsPerCoreOk

func (o *CpuTopology) GetThreadsPerCoreOk() (*int32, bool)

GetThreadsPerCoreOk returns a tuple with the ThreadsPerCore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpuTopology) HasCoresPerDie

func (o *CpuTopology) HasCoresPerDie() bool

HasCoresPerDie returns a boolean if a field has been set.

func (*CpuTopology) HasDiesPerPackage

func (o *CpuTopology) HasDiesPerPackage() bool

HasDiesPerPackage returns a boolean if a field has been set.

func (*CpuTopology) HasPackages

func (o *CpuTopology) HasPackages() bool

HasPackages returns a boolean if a field has been set.

func (*CpuTopology) HasThreadsPerCore

func (o *CpuTopology) HasThreadsPerCore() bool

HasThreadsPerCore returns a boolean if a field has been set.

func (CpuTopology) MarshalJSON

func (o CpuTopology) MarshalJSON() ([]byte, error)

func (*CpuTopology) SetCoresPerDie

func (o *CpuTopology) SetCoresPerDie(v int32)

SetCoresPerDie gets a reference to the given int32 and assigns it to the CoresPerDie field.

func (*CpuTopology) SetDiesPerPackage

func (o *CpuTopology) SetDiesPerPackage(v int32)

SetDiesPerPackage gets a reference to the given int32 and assigns it to the DiesPerPackage field.

func (*CpuTopology) SetPackages

func (o *CpuTopology) SetPackages(v int32)

SetPackages gets a reference to the given int32 and assigns it to the Packages field.

func (*CpuTopology) SetThreadsPerCore

func (o *CpuTopology) SetThreadsPerCore(v int32)

SetThreadsPerCore gets a reference to the given int32 and assigns it to the ThreadsPerCore field.

type CpusConfig

type CpusConfig struct {
	BootVcpus   int32          `json:"boot_vcpus"`
	MaxVcpus    int32          `json:"max_vcpus"`
	Topology    *CpuTopology   `json:"topology,omitempty"`
	KvmHyperv   *bool          `json:"kvm_hyperv,omitempty"`
	MaxPhysBits *int32         `json:"max_phys_bits,omitempty"`
	Affinity    *[]CpuAffinity `json:"affinity,omitempty"`
	Features    *CpuFeatures   `json:"features,omitempty"`
}

CpusConfig struct for CpusConfig

func NewCpusConfig

func NewCpusConfig(bootVcpus int32, maxVcpus int32) *CpusConfig

NewCpusConfig instantiates a new CpusConfig 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

func NewCpusConfigWithDefaults

func NewCpusConfigWithDefaults() *CpusConfig

NewCpusConfigWithDefaults instantiates a new CpusConfig 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

func (*CpusConfig) GetAffinity

func (o *CpusConfig) GetAffinity() []CpuAffinity

GetAffinity returns the Affinity field value if set, zero value otherwise.

func (*CpusConfig) GetAffinityOk

func (o *CpusConfig) GetAffinityOk() (*[]CpuAffinity, bool)

GetAffinityOk returns a tuple with the Affinity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpusConfig) GetBootVcpus

func (o *CpusConfig) GetBootVcpus() int32

GetBootVcpus returns the BootVcpus field value

func (*CpusConfig) GetBootVcpusOk

func (o *CpusConfig) GetBootVcpusOk() (*int32, bool)

GetBootVcpusOk returns a tuple with the BootVcpus field value and a boolean to check if the value has been set.

func (*CpusConfig) GetFeatures

func (o *CpusConfig) GetFeatures() CpuFeatures

GetFeatures returns the Features field value if set, zero value otherwise.

func (*CpusConfig) GetFeaturesOk

func (o *CpusConfig) GetFeaturesOk() (*CpuFeatures, bool)

GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpusConfig) GetKvmHyperv

func (o *CpusConfig) GetKvmHyperv() bool

GetKvmHyperv returns the KvmHyperv field value if set, zero value otherwise.

func (*CpusConfig) GetKvmHypervOk

func (o *CpusConfig) GetKvmHypervOk() (*bool, bool)

GetKvmHypervOk returns a tuple with the KvmHyperv field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpusConfig) GetMaxPhysBits

func (o *CpusConfig) GetMaxPhysBits() int32

GetMaxPhysBits returns the MaxPhysBits field value if set, zero value otherwise.

func (*CpusConfig) GetMaxPhysBitsOk

func (o *CpusConfig) GetMaxPhysBitsOk() (*int32, bool)

GetMaxPhysBitsOk returns a tuple with the MaxPhysBits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpusConfig) GetMaxVcpus

func (o *CpusConfig) GetMaxVcpus() int32

GetMaxVcpus returns the MaxVcpus field value

func (*CpusConfig) GetMaxVcpusOk

func (o *CpusConfig) GetMaxVcpusOk() (*int32, bool)

GetMaxVcpusOk returns a tuple with the MaxVcpus field value and a boolean to check if the value has been set.

func (*CpusConfig) GetTopology

func (o *CpusConfig) GetTopology() CpuTopology

GetTopology returns the Topology field value if set, zero value otherwise.

func (*CpusConfig) GetTopologyOk

func (o *CpusConfig) GetTopologyOk() (*CpuTopology, bool)

GetTopologyOk returns a tuple with the Topology field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CpusConfig) HasAffinity

func (o *CpusConfig) HasAffinity() bool

HasAffinity returns a boolean if a field has been set.

func (*CpusConfig) HasFeatures

func (o *CpusConfig) HasFeatures() bool

HasFeatures returns a boolean if a field has been set.

func (*CpusConfig) HasKvmHyperv

func (o *CpusConfig) HasKvmHyperv() bool

HasKvmHyperv returns a boolean if a field has been set.

func (*CpusConfig) HasMaxPhysBits

func (o *CpusConfig) HasMaxPhysBits() bool

HasMaxPhysBits returns a boolean if a field has been set.

func (*CpusConfig) HasTopology

func (o *CpusConfig) HasTopology() bool

HasTopology returns a boolean if a field has been set.

func (CpusConfig) MarshalJSON

func (o CpusConfig) MarshalJSON() ([]byte, error)

func (*CpusConfig) SetAffinity

func (o *CpusConfig) SetAffinity(v []CpuAffinity)

SetAffinity gets a reference to the given []CpuAffinity and assigns it to the Affinity field.

func (*CpusConfig) SetBootVcpus

func (o *CpusConfig) SetBootVcpus(v int32)

SetBootVcpus sets field value

func (*CpusConfig) SetFeatures

func (o *CpusConfig) SetFeatures(v CpuFeatures)

SetFeatures gets a reference to the given CpuFeatures and assigns it to the Features field.

func (*CpusConfig) SetKvmHyperv

func (o *CpusConfig) SetKvmHyperv(v bool)

SetKvmHyperv gets a reference to the given bool and assigns it to the KvmHyperv field.

func (*CpusConfig) SetMaxPhysBits

func (o *CpusConfig) SetMaxPhysBits(v int32)

SetMaxPhysBits gets a reference to the given int32 and assigns it to the MaxPhysBits field.

func (*CpusConfig) SetMaxVcpus

func (o *CpusConfig) SetMaxVcpus(v int32)

SetMaxVcpus sets field value

func (*CpusConfig) SetTopology

func (o *CpusConfig) SetTopology(v CpuTopology)

SetTopology gets a reference to the given CpuTopology and assigns it to the Topology field.

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) BootVM

BootVM Boot the previously created VM instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBootVMRequest

func (*DefaultApiService) BootVMExecute

func (a *DefaultApiService) BootVMExecute(r ApiBootVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) CreateVM

CreateVM Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateVMRequest

func (*DefaultApiService) CreateVMExecute

func (a *DefaultApiService) CreateVMExecute(r ApiCreateVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) DeleteVM

DeleteVM Delete the cloud-hypervisor Virtual Machine (VM) instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteVMRequest

func (*DefaultApiService) DeleteVMExecute

func (a *DefaultApiService) DeleteVMExecute(r ApiDeleteVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) PauseVM

PauseVM Pause a previously booted VM instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPauseVMRequest

func (*DefaultApiService) PauseVMExecute

func (a *DefaultApiService) PauseVMExecute(r ApiPauseVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) PowerButtonVM

PowerButtonVM Trigger a power button in the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPowerButtonVMRequest

func (*DefaultApiService) PowerButtonVMExecute

func (a *DefaultApiService) PowerButtonVMExecute(r ApiPowerButtonVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) RebootVM

RebootVM Reboot the VM instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRebootVMRequest

func (*DefaultApiService) RebootVMExecute

func (a *DefaultApiService) RebootVMExecute(r ApiRebootVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) ResumeVM

ResumeVM Resume a previously paused VM instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiResumeVMRequest

func (*DefaultApiService) ResumeVMExecute

func (a *DefaultApiService) ResumeVMExecute(r ApiResumeVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) ShutdownVM

ShutdownVM Shut the VM instance down.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShutdownVMRequest

func (*DefaultApiService) ShutdownVMExecute

func (a *DefaultApiService) ShutdownVMExecute(r ApiShutdownVMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) ShutdownVMM

ShutdownVMM Shuts the cloud-hypervisor VMM.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiShutdownVMMRequest

func (*DefaultApiService) ShutdownVMMExecute

func (a *DefaultApiService) ShutdownVMMExecute(r ApiShutdownVMMRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmAddDevicePut

VmAddDevicePut Add a new device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddDevicePutRequest

func (*DefaultApiService) VmAddDevicePutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddDiskPut

VmAddDiskPut Add a new disk to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddDiskPutRequest

func (*DefaultApiService) VmAddDiskPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddFsPut

VmAddFsPut Add a new virtio-fs device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddFsPutRequest

func (*DefaultApiService) VmAddFsPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddNetPut

VmAddNetPut Add a new network device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddNetPutRequest

func (*DefaultApiService) VmAddNetPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddPmemPut

VmAddPmemPut Add a new pmem device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddPmemPutRequest

func (*DefaultApiService) VmAddPmemPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddVdpaPut

VmAddVdpaPut Add a new vDPA device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddVdpaPutRequest

func (*DefaultApiService) VmAddVdpaPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmAddVsockPut

VmAddVsockPut Add a new vsock device to the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmAddVsockPutRequest

func (*DefaultApiService) VmAddVsockPutExecute

Execute executes the request

@return PciDeviceInfo

func (*DefaultApiService) VmCoredumpPut

VmCoredumpPut Takes a VM coredump.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmCoredumpPutRequest

func (*DefaultApiService) VmCoredumpPutExecute

func (a *DefaultApiService) VmCoredumpPutExecute(r ApiVmCoredumpPutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmCountersGet

VmCountersGet Get counters from the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmCountersGetRequest

func (*DefaultApiService) VmCountersGetExecute

func (a *DefaultApiService) VmCountersGetExecute(r ApiVmCountersGetRequest) (map[string]map[string]int64, *_nethttp.Response, error)

Execute executes the request

@return map[string]map[string]int64

func (*DefaultApiService) VmInfoGet

VmInfoGet Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmInfoGetRequest

func (*DefaultApiService) VmInfoGetExecute

func (a *DefaultApiService) VmInfoGetExecute(r ApiVmInfoGetRequest) (VmInfo, *_nethttp.Response, error)

Execute executes the request

@return VmInfo

func (*DefaultApiService) VmReceiveMigrationPut

func (a *DefaultApiService) VmReceiveMigrationPut(ctx _context.Context) ApiVmReceiveMigrationPutRequest

VmReceiveMigrationPut Receive a VM migration from URL

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmReceiveMigrationPutRequest

func (*DefaultApiService) VmReceiveMigrationPutExecute

func (a *DefaultApiService) VmReceiveMigrationPutExecute(r ApiVmReceiveMigrationPutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmRemoveDevicePut

VmRemoveDevicePut Remove a device from the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmRemoveDevicePutRequest

func (*DefaultApiService) VmRemoveDevicePutExecute

func (a *DefaultApiService) VmRemoveDevicePutExecute(r ApiVmRemoveDevicePutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmResizePut

VmResizePut Resize the VM

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmResizePutRequest

func (*DefaultApiService) VmResizePutExecute

func (a *DefaultApiService) VmResizePutExecute(r ApiVmResizePutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmResizeZonePut

VmResizeZonePut Resize a memory zone

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmResizeZonePutRequest

func (*DefaultApiService) VmResizeZonePutExecute

func (a *DefaultApiService) VmResizeZonePutExecute(r ApiVmResizeZonePutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmRestorePut

VmRestorePut Restore a VM from a snapshot.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmRestorePutRequest

func (*DefaultApiService) VmRestorePutExecute

func (a *DefaultApiService) VmRestorePutExecute(r ApiVmRestorePutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmSendMigrationPut

VmSendMigrationPut Send a VM migration to URL

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmSendMigrationPutRequest

func (*DefaultApiService) VmSendMigrationPutExecute

func (a *DefaultApiService) VmSendMigrationPutExecute(r ApiVmSendMigrationPutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmSnapshotPut

VmSnapshotPut Returns a VM snapshot.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmSnapshotPutRequest

func (*DefaultApiService) VmSnapshotPutExecute

func (a *DefaultApiService) VmSnapshotPutExecute(r ApiVmSnapshotPutRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) VmmPingGet

VmmPingGet Ping the VMM to check for API server availability

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVmmPingGetRequest

func (*DefaultApiService) VmmPingGetExecute

Execute executes the request

@return VmmPingResponse

type DeviceConfig

type DeviceConfig struct {
	Path       string  `json:"path"`
	Iommu      *bool   `json:"iommu,omitempty"`
	PciSegment *int32  `json:"pci_segment,omitempty"`
	Id         *string `json:"id,omitempty"`
}

DeviceConfig struct for DeviceConfig

func NewDeviceConfig

func NewDeviceConfig(path string) *DeviceConfig

NewDeviceConfig instantiates a new DeviceConfig 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

func NewDeviceConfigWithDefaults

func NewDeviceConfigWithDefaults() *DeviceConfig

NewDeviceConfigWithDefaults instantiates a new DeviceConfig 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

func (*DeviceConfig) GetId

func (o *DeviceConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*DeviceConfig) GetIdOk

func (o *DeviceConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceConfig) GetIommu

func (o *DeviceConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*DeviceConfig) GetIommuOk

func (o *DeviceConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceConfig) GetPath

func (o *DeviceConfig) GetPath() string

GetPath returns the Path field value

func (*DeviceConfig) GetPathOk

func (o *DeviceConfig) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*DeviceConfig) GetPciSegment

func (o *DeviceConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*DeviceConfig) GetPciSegmentOk

func (o *DeviceConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceConfig) HasId

func (o *DeviceConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*DeviceConfig) HasIommu

func (o *DeviceConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*DeviceConfig) HasPciSegment

func (o *DeviceConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (DeviceConfig) MarshalJSON

func (o DeviceConfig) MarshalJSON() ([]byte, error)

func (*DeviceConfig) SetId

func (o *DeviceConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*DeviceConfig) SetIommu

func (o *DeviceConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*DeviceConfig) SetPath

func (o *DeviceConfig) SetPath(v string)

SetPath sets field value

func (*DeviceConfig) SetPciSegment

func (o *DeviceConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

type DeviceNode

type DeviceNode struct {
	Id        *string                   `json:"id,omitempty"`
	Resources *[]map[string]interface{} `json:"resources,omitempty"`
	Children  *[]string                 `json:"children,omitempty"`
	PciBdf    *string                   `json:"pci_bdf,omitempty"`
}

DeviceNode struct for DeviceNode

func NewDeviceNode

func NewDeviceNode() *DeviceNode

NewDeviceNode instantiates a new DeviceNode 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

func NewDeviceNodeWithDefaults

func NewDeviceNodeWithDefaults() *DeviceNode

NewDeviceNodeWithDefaults instantiates a new DeviceNode 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

func (*DeviceNode) GetChildren

func (o *DeviceNode) GetChildren() []string

GetChildren returns the Children field value if set, zero value otherwise.

func (*DeviceNode) GetChildrenOk

func (o *DeviceNode) GetChildrenOk() (*[]string, bool)

GetChildrenOk returns a tuple with the Children field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceNode) GetId

func (o *DeviceNode) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*DeviceNode) GetIdOk

func (o *DeviceNode) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceNode) GetPciBdf

func (o *DeviceNode) GetPciBdf() string

GetPciBdf returns the PciBdf field value if set, zero value otherwise.

func (*DeviceNode) GetPciBdfOk

func (o *DeviceNode) GetPciBdfOk() (*string, bool)

GetPciBdfOk returns a tuple with the PciBdf field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceNode) GetResources

func (o *DeviceNode) GetResources() []map[string]interface{}

GetResources returns the Resources field value if set, zero value otherwise.

func (*DeviceNode) GetResourcesOk

func (o *DeviceNode) GetResourcesOk() (*[]map[string]interface{}, bool)

GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeviceNode) HasChildren

func (o *DeviceNode) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (*DeviceNode) HasId

func (o *DeviceNode) HasId() bool

HasId returns a boolean if a field has been set.

func (*DeviceNode) HasPciBdf

func (o *DeviceNode) HasPciBdf() bool

HasPciBdf returns a boolean if a field has been set.

func (*DeviceNode) HasResources

func (o *DeviceNode) HasResources() bool

HasResources returns a boolean if a field has been set.

func (DeviceNode) MarshalJSON

func (o DeviceNode) MarshalJSON() ([]byte, error)

func (*DeviceNode) SetChildren

func (o *DeviceNode) SetChildren(v []string)

SetChildren gets a reference to the given []string and assigns it to the Children field.

func (*DeviceNode) SetId

func (o *DeviceNode) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*DeviceNode) SetPciBdf

func (o *DeviceNode) SetPciBdf(v string)

SetPciBdf gets a reference to the given string and assigns it to the PciBdf field.

func (*DeviceNode) SetResources

func (o *DeviceNode) SetResources(v []map[string]interface{})

SetResources gets a reference to the given []map[string]interface{} and assigns it to the Resources field.

type DiskConfig

type DiskConfig struct {
	Path              string             `json:"path"`
	Readonly          *bool              `json:"readonly,omitempty"`
	Direct            *bool              `json:"direct,omitempty"`
	Iommu             *bool              `json:"iommu,omitempty"`
	NumQueues         *int32             `json:"num_queues,omitempty"`
	QueueSize         *int32             `json:"queue_size,omitempty"`
	VhostUser         *bool              `json:"vhost_user,omitempty"`
	VhostSocket       *string            `json:"vhost_socket,omitempty"`
	RateLimiterConfig *RateLimiterConfig `json:"rate_limiter_config,omitempty"`
	PciSegment        *int32             `json:"pci_segment,omitempty"`
	Id                *string            `json:"id,omitempty"`
	Serial            *string            `json:"serial,omitempty"`
}

DiskConfig struct for DiskConfig

func NewDiskConfig

func NewDiskConfig(path string) *DiskConfig

NewDiskConfig instantiates a new DiskConfig 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

func NewDiskConfigWithDefaults

func NewDiskConfigWithDefaults() *DiskConfig

NewDiskConfigWithDefaults instantiates a new DiskConfig 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

func (*DiskConfig) GetDirect

func (o *DiskConfig) GetDirect() bool

GetDirect returns the Direct field value if set, zero value otherwise.

func (*DiskConfig) GetDirectOk

func (o *DiskConfig) GetDirectOk() (*bool, bool)

GetDirectOk returns a tuple with the Direct field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetId

func (o *DiskConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*DiskConfig) GetIdOk

func (o *DiskConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetIommu

func (o *DiskConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*DiskConfig) GetIommuOk

func (o *DiskConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetNumQueues

func (o *DiskConfig) GetNumQueues() int32

GetNumQueues returns the NumQueues field value if set, zero value otherwise.

func (*DiskConfig) GetNumQueuesOk

func (o *DiskConfig) GetNumQueuesOk() (*int32, bool)

GetNumQueuesOk returns a tuple with the NumQueues field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetPath

func (o *DiskConfig) GetPath() string

GetPath returns the Path field value

func (*DiskConfig) GetPathOk

func (o *DiskConfig) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*DiskConfig) GetPciSegment

func (o *DiskConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*DiskConfig) GetPciSegmentOk

func (o *DiskConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetQueueSize

func (o *DiskConfig) GetQueueSize() int32

GetQueueSize returns the QueueSize field value if set, zero value otherwise.

func (*DiskConfig) GetQueueSizeOk

func (o *DiskConfig) GetQueueSizeOk() (*int32, bool)

GetQueueSizeOk returns a tuple with the QueueSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetRateLimiterConfig

func (o *DiskConfig) GetRateLimiterConfig() RateLimiterConfig

GetRateLimiterConfig returns the RateLimiterConfig field value if set, zero value otherwise.

func (*DiskConfig) GetRateLimiterConfigOk

func (o *DiskConfig) GetRateLimiterConfigOk() (*RateLimiterConfig, bool)

GetRateLimiterConfigOk returns a tuple with the RateLimiterConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetReadonly

func (o *DiskConfig) GetReadonly() bool

GetReadonly returns the Readonly field value if set, zero value otherwise.

func (*DiskConfig) GetReadonlyOk

func (o *DiskConfig) GetReadonlyOk() (*bool, bool)

GetReadonlyOk returns a tuple with the Readonly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetSerial

func (o *DiskConfig) GetSerial() string

GetSerial returns the Serial field value if set, zero value otherwise.

func (*DiskConfig) GetSerialOk

func (o *DiskConfig) GetSerialOk() (*string, bool)

GetSerialOk returns a tuple with the Serial field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetVhostSocket

func (o *DiskConfig) GetVhostSocket() string

GetVhostSocket returns the VhostSocket field value if set, zero value otherwise.

func (*DiskConfig) GetVhostSocketOk

func (o *DiskConfig) GetVhostSocketOk() (*string, bool)

GetVhostSocketOk returns a tuple with the VhostSocket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) GetVhostUser

func (o *DiskConfig) GetVhostUser() bool

GetVhostUser returns the VhostUser field value if set, zero value otherwise.

func (*DiskConfig) GetVhostUserOk

func (o *DiskConfig) GetVhostUserOk() (*bool, bool)

GetVhostUserOk returns a tuple with the VhostUser field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DiskConfig) HasDirect

func (o *DiskConfig) HasDirect() bool

HasDirect returns a boolean if a field has been set.

func (*DiskConfig) HasId

func (o *DiskConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*DiskConfig) HasIommu

func (o *DiskConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*DiskConfig) HasNumQueues

func (o *DiskConfig) HasNumQueues() bool

HasNumQueues returns a boolean if a field has been set.

func (*DiskConfig) HasPciSegment

func (o *DiskConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (*DiskConfig) HasQueueSize

func (o *DiskConfig) HasQueueSize() bool

HasQueueSize returns a boolean if a field has been set.

func (*DiskConfig) HasRateLimiterConfig

func (o *DiskConfig) HasRateLimiterConfig() bool

HasRateLimiterConfig returns a boolean if a field has been set.

func (*DiskConfig) HasReadonly

func (o *DiskConfig) HasReadonly() bool

HasReadonly returns a boolean if a field has been set.

func (*DiskConfig) HasSerial

func (o *DiskConfig) HasSerial() bool

HasSerial returns a boolean if a field has been set.

func (*DiskConfig) HasVhostSocket

func (o *DiskConfig) HasVhostSocket() bool

HasVhostSocket returns a boolean if a field has been set.

func (*DiskConfig) HasVhostUser

func (o *DiskConfig) HasVhostUser() bool

HasVhostUser returns a boolean if a field has been set.

func (DiskConfig) MarshalJSON

func (o DiskConfig) MarshalJSON() ([]byte, error)

func (*DiskConfig) SetDirect

func (o *DiskConfig) SetDirect(v bool)

SetDirect gets a reference to the given bool and assigns it to the Direct field.

func (*DiskConfig) SetId

func (o *DiskConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*DiskConfig) SetIommu

func (o *DiskConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*DiskConfig) SetNumQueues

func (o *DiskConfig) SetNumQueues(v int32)

SetNumQueues gets a reference to the given int32 and assigns it to the NumQueues field.

func (*DiskConfig) SetPath

func (o *DiskConfig) SetPath(v string)

SetPath sets field value

func (*DiskConfig) SetPciSegment

func (o *DiskConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

func (*DiskConfig) SetQueueSize

func (o *DiskConfig) SetQueueSize(v int32)

SetQueueSize gets a reference to the given int32 and assigns it to the QueueSize field.

func (*DiskConfig) SetRateLimiterConfig

func (o *DiskConfig) SetRateLimiterConfig(v RateLimiterConfig)

SetRateLimiterConfig gets a reference to the given RateLimiterConfig and assigns it to the RateLimiterConfig field.

func (*DiskConfig) SetReadonly

func (o *DiskConfig) SetReadonly(v bool)

SetReadonly gets a reference to the given bool and assigns it to the Readonly field.

func (*DiskConfig) SetSerial

func (o *DiskConfig) SetSerial(v string)

SetSerial gets a reference to the given string and assigns it to the Serial field.

func (*DiskConfig) SetVhostSocket

func (o *DiskConfig) SetVhostSocket(v string)

SetVhostSocket gets a reference to the given string and assigns it to the VhostSocket field.

func (*DiskConfig) SetVhostUser

func (o *DiskConfig) SetVhostUser(v bool)

SetVhostUser gets a reference to the given bool and assigns it to the VhostUser field.

type FsConfig

type FsConfig struct {
	Tag        string  `json:"tag"`
	Socket     string  `json:"socket"`
	NumQueues  int32   `json:"num_queues"`
	QueueSize  int32   `json:"queue_size"`
	PciSegment *int32  `json:"pci_segment,omitempty"`
	Id         *string `json:"id,omitempty"`
}

FsConfig struct for FsConfig

func NewFsConfig

func NewFsConfig(tag string, socket string, numQueues int32, queueSize int32) *FsConfig

NewFsConfig instantiates a new FsConfig 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

func NewFsConfigWithDefaults

func NewFsConfigWithDefaults() *FsConfig

NewFsConfigWithDefaults instantiates a new FsConfig 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

func (*FsConfig) GetId

func (o *FsConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*FsConfig) GetIdOk

func (o *FsConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsConfig) GetNumQueues

func (o *FsConfig) GetNumQueues() int32

GetNumQueues returns the NumQueues field value

func (*FsConfig) GetNumQueuesOk

func (o *FsConfig) GetNumQueuesOk() (*int32, bool)

GetNumQueuesOk returns a tuple with the NumQueues field value and a boolean to check if the value has been set.

func (*FsConfig) GetPciSegment

func (o *FsConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*FsConfig) GetPciSegmentOk

func (o *FsConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FsConfig) GetQueueSize

func (o *FsConfig) GetQueueSize() int32

GetQueueSize returns the QueueSize field value

func (*FsConfig) GetQueueSizeOk

func (o *FsConfig) GetQueueSizeOk() (*int32, bool)

GetQueueSizeOk returns a tuple with the QueueSize field value and a boolean to check if the value has been set.

func (*FsConfig) GetSocket

func (o *FsConfig) GetSocket() string

GetSocket returns the Socket field value

func (*FsConfig) GetSocketOk

func (o *FsConfig) GetSocketOk() (*string, bool)

GetSocketOk returns a tuple with the Socket field value and a boolean to check if the value has been set.

func (*FsConfig) GetTag

func (o *FsConfig) GetTag() string

GetTag returns the Tag field value

func (*FsConfig) GetTagOk

func (o *FsConfig) GetTagOk() (*string, bool)

GetTagOk returns a tuple with the Tag field value and a boolean to check if the value has been set.

func (*FsConfig) HasId

func (o *FsConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*FsConfig) HasPciSegment

func (o *FsConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (FsConfig) MarshalJSON

func (o FsConfig) MarshalJSON() ([]byte, error)

func (*FsConfig) SetId

func (o *FsConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*FsConfig) SetNumQueues

func (o *FsConfig) SetNumQueues(v int32)

SetNumQueues sets field value

func (*FsConfig) SetPciSegment

func (o *FsConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

func (*FsConfig) SetQueueSize

func (o *FsConfig) SetQueueSize(v int32)

SetQueueSize sets field value

func (*FsConfig) SetSocket

func (o *FsConfig) SetSocket(v string)

SetSocket sets field value

func (*FsConfig) SetTag

func (o *FsConfig) SetTag(v string)

SetTag sets field value

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MemoryConfig

type MemoryConfig struct {
	Size           int64               `json:"size"`
	HotplugSize    *int64              `json:"hotplug_size,omitempty"`
	HotpluggedSize *int64              `json:"hotplugged_size,omitempty"`
	Mergeable      *bool               `json:"mergeable,omitempty"`
	HotplugMethod  *string             `json:"hotplug_method,omitempty"`
	Shared         *bool               `json:"shared,omitempty"`
	Hugepages      *bool               `json:"hugepages,omitempty"`
	HugepageSize   *int64              `json:"hugepage_size,omitempty"`
	Prefault       *bool               `json:"prefault,omitempty"`
	Thp            *bool               `json:"thp,omitempty"`
	Zones          *[]MemoryZoneConfig `json:"zones,omitempty"`
}

MemoryConfig struct for MemoryConfig

func NewMemoryConfig

func NewMemoryConfig(size int64) *MemoryConfig

NewMemoryConfig instantiates a new MemoryConfig 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

func NewMemoryConfigWithDefaults

func NewMemoryConfigWithDefaults() *MemoryConfig

NewMemoryConfigWithDefaults instantiates a new MemoryConfig 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

func (*MemoryConfig) GetHotplugMethod

func (o *MemoryConfig) GetHotplugMethod() string

GetHotplugMethod returns the HotplugMethod field value if set, zero value otherwise.

func (*MemoryConfig) GetHotplugMethodOk

func (o *MemoryConfig) GetHotplugMethodOk() (*string, bool)

GetHotplugMethodOk returns a tuple with the HotplugMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetHotplugSize

func (o *MemoryConfig) GetHotplugSize() int64

GetHotplugSize returns the HotplugSize field value if set, zero value otherwise.

func (*MemoryConfig) GetHotplugSizeOk

func (o *MemoryConfig) GetHotplugSizeOk() (*int64, bool)

GetHotplugSizeOk returns a tuple with the HotplugSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetHotpluggedSize

func (o *MemoryConfig) GetHotpluggedSize() int64

GetHotpluggedSize returns the HotpluggedSize field value if set, zero value otherwise.

func (*MemoryConfig) GetHotpluggedSizeOk

func (o *MemoryConfig) GetHotpluggedSizeOk() (*int64, bool)

GetHotpluggedSizeOk returns a tuple with the HotpluggedSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetHugepageSize

func (o *MemoryConfig) GetHugepageSize() int64

GetHugepageSize returns the HugepageSize field value if set, zero value otherwise.

func (*MemoryConfig) GetHugepageSizeOk

func (o *MemoryConfig) GetHugepageSizeOk() (*int64, bool)

GetHugepageSizeOk returns a tuple with the HugepageSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetHugepages

func (o *MemoryConfig) GetHugepages() bool

GetHugepages returns the Hugepages field value if set, zero value otherwise.

func (*MemoryConfig) GetHugepagesOk

func (o *MemoryConfig) GetHugepagesOk() (*bool, bool)

GetHugepagesOk returns a tuple with the Hugepages field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetMergeable

func (o *MemoryConfig) GetMergeable() bool

GetMergeable returns the Mergeable field value if set, zero value otherwise.

func (*MemoryConfig) GetMergeableOk

func (o *MemoryConfig) GetMergeableOk() (*bool, bool)

GetMergeableOk returns a tuple with the Mergeable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetPrefault

func (o *MemoryConfig) GetPrefault() bool

GetPrefault returns the Prefault field value if set, zero value otherwise.

func (*MemoryConfig) GetPrefaultOk

func (o *MemoryConfig) GetPrefaultOk() (*bool, bool)

GetPrefaultOk returns a tuple with the Prefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetShared

func (o *MemoryConfig) GetShared() bool

GetShared returns the Shared field value if set, zero value otherwise.

func (*MemoryConfig) GetSharedOk

func (o *MemoryConfig) GetSharedOk() (*bool, bool)

GetSharedOk returns a tuple with the Shared field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetSize

func (o *MemoryConfig) GetSize() int64

GetSize returns the Size field value

func (*MemoryConfig) GetSizeOk

func (o *MemoryConfig) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*MemoryConfig) GetThp

func (o *MemoryConfig) GetThp() bool

GetThp returns the Thp field value if set, zero value otherwise.

func (*MemoryConfig) GetThpOk

func (o *MemoryConfig) GetThpOk() (*bool, bool)

GetThpOk returns a tuple with the Thp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) GetZones

func (o *MemoryConfig) GetZones() []MemoryZoneConfig

GetZones returns the Zones field value if set, zero value otherwise.

func (*MemoryConfig) GetZonesOk

func (o *MemoryConfig) GetZonesOk() (*[]MemoryZoneConfig, bool)

GetZonesOk returns a tuple with the Zones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryConfig) HasHotplugMethod

func (o *MemoryConfig) HasHotplugMethod() bool

HasHotplugMethod returns a boolean if a field has been set.

func (*MemoryConfig) HasHotplugSize

func (o *MemoryConfig) HasHotplugSize() bool

HasHotplugSize returns a boolean if a field has been set.

func (*MemoryConfig) HasHotpluggedSize

func (o *MemoryConfig) HasHotpluggedSize() bool

HasHotpluggedSize returns a boolean if a field has been set.

func (*MemoryConfig) HasHugepageSize

func (o *MemoryConfig) HasHugepageSize() bool

HasHugepageSize returns a boolean if a field has been set.

func (*MemoryConfig) HasHugepages

func (o *MemoryConfig) HasHugepages() bool

HasHugepages returns a boolean if a field has been set.

func (*MemoryConfig) HasMergeable

func (o *MemoryConfig) HasMergeable() bool

HasMergeable returns a boolean if a field has been set.

func (*MemoryConfig) HasPrefault

func (o *MemoryConfig) HasPrefault() bool

HasPrefault returns a boolean if a field has been set.

func (*MemoryConfig) HasShared

func (o *MemoryConfig) HasShared() bool

HasShared returns a boolean if a field has been set.

func (*MemoryConfig) HasThp

func (o *MemoryConfig) HasThp() bool

HasThp returns a boolean if a field has been set.

func (*MemoryConfig) HasZones

func (o *MemoryConfig) HasZones() bool

HasZones returns a boolean if a field has been set.

func (MemoryConfig) MarshalJSON

func (o MemoryConfig) MarshalJSON() ([]byte, error)

func (*MemoryConfig) SetHotplugMethod

func (o *MemoryConfig) SetHotplugMethod(v string)

SetHotplugMethod gets a reference to the given string and assigns it to the HotplugMethod field.

func (*MemoryConfig) SetHotplugSize

func (o *MemoryConfig) SetHotplugSize(v int64)

SetHotplugSize gets a reference to the given int64 and assigns it to the HotplugSize field.

func (*MemoryConfig) SetHotpluggedSize

func (o *MemoryConfig) SetHotpluggedSize(v int64)

SetHotpluggedSize gets a reference to the given int64 and assigns it to the HotpluggedSize field.

func (*MemoryConfig) SetHugepageSize

func (o *MemoryConfig) SetHugepageSize(v int64)

SetHugepageSize gets a reference to the given int64 and assigns it to the HugepageSize field.

func (*MemoryConfig) SetHugepages

func (o *MemoryConfig) SetHugepages(v bool)

SetHugepages gets a reference to the given bool and assigns it to the Hugepages field.

func (*MemoryConfig) SetMergeable

func (o *MemoryConfig) SetMergeable(v bool)

SetMergeable gets a reference to the given bool and assigns it to the Mergeable field.

func (*MemoryConfig) SetPrefault

func (o *MemoryConfig) SetPrefault(v bool)

SetPrefault gets a reference to the given bool and assigns it to the Prefault field.

func (*MemoryConfig) SetShared

func (o *MemoryConfig) SetShared(v bool)

SetShared gets a reference to the given bool and assigns it to the Shared field.

func (*MemoryConfig) SetSize

func (o *MemoryConfig) SetSize(v int64)

SetSize sets field value

func (*MemoryConfig) SetThp

func (o *MemoryConfig) SetThp(v bool)

SetThp gets a reference to the given bool and assigns it to the Thp field.

func (*MemoryConfig) SetZones

func (o *MemoryConfig) SetZones(v []MemoryZoneConfig)

SetZones gets a reference to the given []MemoryZoneConfig and assigns it to the Zones field.

type MemoryZoneConfig

type MemoryZoneConfig struct {
	Id             string  `json:"id"`
	Size           int64   `json:"size"`
	File           *string `json:"file,omitempty"`
	Mergeable      *bool   `json:"mergeable,omitempty"`
	Shared         *bool   `json:"shared,omitempty"`
	Hugepages      *bool   `json:"hugepages,omitempty"`
	HugepageSize   *int64  `json:"hugepage_size,omitempty"`
	HostNumaNode   *int32  `json:"host_numa_node,omitempty"`
	HotplugSize    *int64  `json:"hotplug_size,omitempty"`
	HotpluggedSize *int64  `json:"hotplugged_size,omitempty"`
	Prefault       *bool   `json:"prefault,omitempty"`
}

MemoryZoneConfig struct for MemoryZoneConfig

func NewMemoryZoneConfig

func NewMemoryZoneConfig(id string, size int64) *MemoryZoneConfig

NewMemoryZoneConfig instantiates a new MemoryZoneConfig 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

func NewMemoryZoneConfigWithDefaults

func NewMemoryZoneConfigWithDefaults() *MemoryZoneConfig

NewMemoryZoneConfigWithDefaults instantiates a new MemoryZoneConfig 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

func (*MemoryZoneConfig) GetFile

func (o *MemoryZoneConfig) GetFile() string

GetFile returns the File field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetFileOk

func (o *MemoryZoneConfig) GetFileOk() (*string, bool)

GetFileOk returns a tuple with the File field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetHostNumaNode

func (o *MemoryZoneConfig) GetHostNumaNode() int32

GetHostNumaNode returns the HostNumaNode field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetHostNumaNodeOk

func (o *MemoryZoneConfig) GetHostNumaNodeOk() (*int32, bool)

GetHostNumaNodeOk returns a tuple with the HostNumaNode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetHotplugSize

func (o *MemoryZoneConfig) GetHotplugSize() int64

GetHotplugSize returns the HotplugSize field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetHotplugSizeOk

func (o *MemoryZoneConfig) GetHotplugSizeOk() (*int64, bool)

GetHotplugSizeOk returns a tuple with the HotplugSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetHotpluggedSize

func (o *MemoryZoneConfig) GetHotpluggedSize() int64

GetHotpluggedSize returns the HotpluggedSize field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetHotpluggedSizeOk

func (o *MemoryZoneConfig) GetHotpluggedSizeOk() (*int64, bool)

GetHotpluggedSizeOk returns a tuple with the HotpluggedSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetHugepageSize

func (o *MemoryZoneConfig) GetHugepageSize() int64

GetHugepageSize returns the HugepageSize field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetHugepageSizeOk

func (o *MemoryZoneConfig) GetHugepageSizeOk() (*int64, bool)

GetHugepageSizeOk returns a tuple with the HugepageSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetHugepages

func (o *MemoryZoneConfig) GetHugepages() bool

GetHugepages returns the Hugepages field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetHugepagesOk

func (o *MemoryZoneConfig) GetHugepagesOk() (*bool, bool)

GetHugepagesOk returns a tuple with the Hugepages field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetId

func (o *MemoryZoneConfig) GetId() string

GetId returns the Id field value

func (*MemoryZoneConfig) GetIdOk

func (o *MemoryZoneConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetMergeable

func (o *MemoryZoneConfig) GetMergeable() bool

GetMergeable returns the Mergeable field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetMergeableOk

func (o *MemoryZoneConfig) GetMergeableOk() (*bool, bool)

GetMergeableOk returns a tuple with the Mergeable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetPrefault

func (o *MemoryZoneConfig) GetPrefault() bool

GetPrefault returns the Prefault field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetPrefaultOk

func (o *MemoryZoneConfig) GetPrefaultOk() (*bool, bool)

GetPrefaultOk returns a tuple with the Prefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetShared

func (o *MemoryZoneConfig) GetShared() bool

GetShared returns the Shared field value if set, zero value otherwise.

func (*MemoryZoneConfig) GetSharedOk

func (o *MemoryZoneConfig) GetSharedOk() (*bool, bool)

GetSharedOk returns a tuple with the Shared field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemoryZoneConfig) GetSize

func (o *MemoryZoneConfig) GetSize() int64

GetSize returns the Size field value

func (*MemoryZoneConfig) GetSizeOk

func (o *MemoryZoneConfig) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*MemoryZoneConfig) HasFile

func (o *MemoryZoneConfig) HasFile() bool

HasFile returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasHostNumaNode

func (o *MemoryZoneConfig) HasHostNumaNode() bool

HasHostNumaNode returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasHotplugSize

func (o *MemoryZoneConfig) HasHotplugSize() bool

HasHotplugSize returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasHotpluggedSize

func (o *MemoryZoneConfig) HasHotpluggedSize() bool

HasHotpluggedSize returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasHugepageSize

func (o *MemoryZoneConfig) HasHugepageSize() bool

HasHugepageSize returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasHugepages

func (o *MemoryZoneConfig) HasHugepages() bool

HasHugepages returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasMergeable

func (o *MemoryZoneConfig) HasMergeable() bool

HasMergeable returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasPrefault

func (o *MemoryZoneConfig) HasPrefault() bool

HasPrefault returns a boolean if a field has been set.

func (*MemoryZoneConfig) HasShared

func (o *MemoryZoneConfig) HasShared() bool

HasShared returns a boolean if a field has been set.

func (MemoryZoneConfig) MarshalJSON

func (o MemoryZoneConfig) MarshalJSON() ([]byte, error)

func (*MemoryZoneConfig) SetFile

func (o *MemoryZoneConfig) SetFile(v string)

SetFile gets a reference to the given string and assigns it to the File field.

func (*MemoryZoneConfig) SetHostNumaNode

func (o *MemoryZoneConfig) SetHostNumaNode(v int32)

SetHostNumaNode gets a reference to the given int32 and assigns it to the HostNumaNode field.

func (*MemoryZoneConfig) SetHotplugSize

func (o *MemoryZoneConfig) SetHotplugSize(v int64)

SetHotplugSize gets a reference to the given int64 and assigns it to the HotplugSize field.

func (*MemoryZoneConfig) SetHotpluggedSize

func (o *MemoryZoneConfig) SetHotpluggedSize(v int64)

SetHotpluggedSize gets a reference to the given int64 and assigns it to the HotpluggedSize field.

func (*MemoryZoneConfig) SetHugepageSize

func (o *MemoryZoneConfig) SetHugepageSize(v int64)

SetHugepageSize gets a reference to the given int64 and assigns it to the HugepageSize field.

func (*MemoryZoneConfig) SetHugepages

func (o *MemoryZoneConfig) SetHugepages(v bool)

SetHugepages gets a reference to the given bool and assigns it to the Hugepages field.

func (*MemoryZoneConfig) SetId

func (o *MemoryZoneConfig) SetId(v string)

SetId sets field value

func (*MemoryZoneConfig) SetMergeable

func (o *MemoryZoneConfig) SetMergeable(v bool)

SetMergeable gets a reference to the given bool and assigns it to the Mergeable field.

func (*MemoryZoneConfig) SetPrefault

func (o *MemoryZoneConfig) SetPrefault(v bool)

SetPrefault gets a reference to the given bool and assigns it to the Prefault field.

func (*MemoryZoneConfig) SetShared

func (o *MemoryZoneConfig) SetShared(v bool)

SetShared gets a reference to the given bool and assigns it to the Shared field.

func (*MemoryZoneConfig) SetSize

func (o *MemoryZoneConfig) SetSize(v int64)

SetSize sets field value

type NetConfig

type NetConfig struct {
	Tap               *string            `json:"tap,omitempty"`
	Ip                *string            `json:"ip,omitempty"`
	Mask              *string            `json:"mask,omitempty"`
	Mac               *string            `json:"mac,omitempty"`
	HostMac           *string            `json:"host_mac,omitempty"`
	Mtu               *int32             `json:"mtu,omitempty"`
	Iommu             *bool              `json:"iommu,omitempty"`
	NumQueues         *int32             `json:"num_queues,omitempty"`
	QueueSize         *int32             `json:"queue_size,omitempty"`
	VhostUser         *bool              `json:"vhost_user,omitempty"`
	VhostSocket       *string            `json:"vhost_socket,omitempty"`
	VhostMode         *string            `json:"vhost_mode,omitempty"`
	Id                *string            `json:"id,omitempty"`
	PciSegment        *int32             `json:"pci_segment,omitempty"`
	RateLimiterConfig *RateLimiterConfig `json:"rate_limiter_config,omitempty"`
}

NetConfig struct for NetConfig

func NewNetConfig

func NewNetConfig() *NetConfig

NewNetConfig instantiates a new NetConfig 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

func NewNetConfigWithDefaults

func NewNetConfigWithDefaults() *NetConfig

NewNetConfigWithDefaults instantiates a new NetConfig 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

func (*NetConfig) GetHostMac

func (o *NetConfig) GetHostMac() string

GetHostMac returns the HostMac field value if set, zero value otherwise.

func (*NetConfig) GetHostMacOk

func (o *NetConfig) GetHostMacOk() (*string, bool)

GetHostMacOk returns a tuple with the HostMac field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetId

func (o *NetConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*NetConfig) GetIdOk

func (o *NetConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetIommu

func (o *NetConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*NetConfig) GetIommuOk

func (o *NetConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetIp

func (o *NetConfig) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*NetConfig) GetIpOk

func (o *NetConfig) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetMac

func (o *NetConfig) GetMac() string

GetMac returns the Mac field value if set, zero value otherwise.

func (*NetConfig) GetMacOk

func (o *NetConfig) GetMacOk() (*string, bool)

GetMacOk returns a tuple with the Mac field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetMask

func (o *NetConfig) GetMask() string

GetMask returns the Mask field value if set, zero value otherwise.

func (*NetConfig) GetMaskOk

func (o *NetConfig) GetMaskOk() (*string, bool)

GetMaskOk returns a tuple with the Mask field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetMtu

func (o *NetConfig) GetMtu() int32

GetMtu returns the Mtu field value if set, zero value otherwise.

func (*NetConfig) GetMtuOk

func (o *NetConfig) GetMtuOk() (*int32, bool)

GetMtuOk returns a tuple with the Mtu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetNumQueues

func (o *NetConfig) GetNumQueues() int32

GetNumQueues returns the NumQueues field value if set, zero value otherwise.

func (*NetConfig) GetNumQueuesOk

func (o *NetConfig) GetNumQueuesOk() (*int32, bool)

GetNumQueuesOk returns a tuple with the NumQueues field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetPciSegment

func (o *NetConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*NetConfig) GetPciSegmentOk

func (o *NetConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetQueueSize

func (o *NetConfig) GetQueueSize() int32

GetQueueSize returns the QueueSize field value if set, zero value otherwise.

func (*NetConfig) GetQueueSizeOk

func (o *NetConfig) GetQueueSizeOk() (*int32, bool)

GetQueueSizeOk returns a tuple with the QueueSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetRateLimiterConfig

func (o *NetConfig) GetRateLimiterConfig() RateLimiterConfig

GetRateLimiterConfig returns the RateLimiterConfig field value if set, zero value otherwise.

func (*NetConfig) GetRateLimiterConfigOk

func (o *NetConfig) GetRateLimiterConfigOk() (*RateLimiterConfig, bool)

GetRateLimiterConfigOk returns a tuple with the RateLimiterConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetTap

func (o *NetConfig) GetTap() string

GetTap returns the Tap field value if set, zero value otherwise.

func (*NetConfig) GetTapOk

func (o *NetConfig) GetTapOk() (*string, bool)

GetTapOk returns a tuple with the Tap field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetVhostMode

func (o *NetConfig) GetVhostMode() string

GetVhostMode returns the VhostMode field value if set, zero value otherwise.

func (*NetConfig) GetVhostModeOk

func (o *NetConfig) GetVhostModeOk() (*string, bool)

GetVhostModeOk returns a tuple with the VhostMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetVhostSocket

func (o *NetConfig) GetVhostSocket() string

GetVhostSocket returns the VhostSocket field value if set, zero value otherwise.

func (*NetConfig) GetVhostSocketOk

func (o *NetConfig) GetVhostSocketOk() (*string, bool)

GetVhostSocketOk returns a tuple with the VhostSocket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) GetVhostUser

func (o *NetConfig) GetVhostUser() bool

GetVhostUser returns the VhostUser field value if set, zero value otherwise.

func (*NetConfig) GetVhostUserOk

func (o *NetConfig) GetVhostUserOk() (*bool, bool)

GetVhostUserOk returns a tuple with the VhostUser field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetConfig) HasHostMac

func (o *NetConfig) HasHostMac() bool

HasHostMac returns a boolean if a field has been set.

func (*NetConfig) HasId

func (o *NetConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*NetConfig) HasIommu

func (o *NetConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*NetConfig) HasIp

func (o *NetConfig) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*NetConfig) HasMac

func (o *NetConfig) HasMac() bool

HasMac returns a boolean if a field has been set.

func (*NetConfig) HasMask

func (o *NetConfig) HasMask() bool

HasMask returns a boolean if a field has been set.

func (*NetConfig) HasMtu

func (o *NetConfig) HasMtu() bool

HasMtu returns a boolean if a field has been set.

func (*NetConfig) HasNumQueues

func (o *NetConfig) HasNumQueues() bool

HasNumQueues returns a boolean if a field has been set.

func (*NetConfig) HasPciSegment

func (o *NetConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (*NetConfig) HasQueueSize

func (o *NetConfig) HasQueueSize() bool

HasQueueSize returns a boolean if a field has been set.

func (*NetConfig) HasRateLimiterConfig

func (o *NetConfig) HasRateLimiterConfig() bool

HasRateLimiterConfig returns a boolean if a field has been set.

func (*NetConfig) HasTap

func (o *NetConfig) HasTap() bool

HasTap returns a boolean if a field has been set.

func (*NetConfig) HasVhostMode

func (o *NetConfig) HasVhostMode() bool

HasVhostMode returns a boolean if a field has been set.

func (*NetConfig) HasVhostSocket

func (o *NetConfig) HasVhostSocket() bool

HasVhostSocket returns a boolean if a field has been set.

func (*NetConfig) HasVhostUser

func (o *NetConfig) HasVhostUser() bool

HasVhostUser returns a boolean if a field has been set.

func (NetConfig) MarshalJSON

func (o NetConfig) MarshalJSON() ([]byte, error)

func (*NetConfig) SetHostMac

func (o *NetConfig) SetHostMac(v string)

SetHostMac gets a reference to the given string and assigns it to the HostMac field.

func (*NetConfig) SetId

func (o *NetConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*NetConfig) SetIommu

func (o *NetConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*NetConfig) SetIp

func (o *NetConfig) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*NetConfig) SetMac

func (o *NetConfig) SetMac(v string)

SetMac gets a reference to the given string and assigns it to the Mac field.

func (*NetConfig) SetMask

func (o *NetConfig) SetMask(v string)

SetMask gets a reference to the given string and assigns it to the Mask field.

func (*NetConfig) SetMtu

func (o *NetConfig) SetMtu(v int32)

SetMtu gets a reference to the given int32 and assigns it to the Mtu field.

func (*NetConfig) SetNumQueues

func (o *NetConfig) SetNumQueues(v int32)

SetNumQueues gets a reference to the given int32 and assigns it to the NumQueues field.

func (*NetConfig) SetPciSegment

func (o *NetConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

func (*NetConfig) SetQueueSize

func (o *NetConfig) SetQueueSize(v int32)

SetQueueSize gets a reference to the given int32 and assigns it to the QueueSize field.

func (*NetConfig) SetRateLimiterConfig

func (o *NetConfig) SetRateLimiterConfig(v RateLimiterConfig)

SetRateLimiterConfig gets a reference to the given RateLimiterConfig and assigns it to the RateLimiterConfig field.

func (*NetConfig) SetTap

func (o *NetConfig) SetTap(v string)

SetTap gets a reference to the given string and assigns it to the Tap field.

func (*NetConfig) SetVhostMode

func (o *NetConfig) SetVhostMode(v string)

SetVhostMode gets a reference to the given string and assigns it to the VhostMode field.

func (*NetConfig) SetVhostSocket

func (o *NetConfig) SetVhostSocket(v string)

SetVhostSocket gets a reference to the given string and assigns it to the VhostSocket field.

func (*NetConfig) SetVhostUser

func (o *NetConfig) SetVhostUser(v bool)

SetVhostUser gets a reference to the given bool and assigns it to the VhostUser field.

type NullableBalloonConfig

type NullableBalloonConfig struct {
	// contains filtered or unexported fields
}

func NewNullableBalloonConfig

func NewNullableBalloonConfig(val *BalloonConfig) *NullableBalloonConfig

func (NullableBalloonConfig) Get

func (NullableBalloonConfig) IsSet

func (v NullableBalloonConfig) IsSet() bool

func (NullableBalloonConfig) MarshalJSON

func (v NullableBalloonConfig) MarshalJSON() ([]byte, error)

func (*NullableBalloonConfig) Set

func (v *NullableBalloonConfig) Set(val *BalloonConfig)

func (*NullableBalloonConfig) UnmarshalJSON

func (v *NullableBalloonConfig) UnmarshalJSON(src []byte) error

func (*NullableBalloonConfig) Unset

func (v *NullableBalloonConfig) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableConsoleConfig

type NullableConsoleConfig struct {
	// contains filtered or unexported fields
}

func NewNullableConsoleConfig

func NewNullableConsoleConfig(val *ConsoleConfig) *NullableConsoleConfig

func (NullableConsoleConfig) Get

func (NullableConsoleConfig) IsSet

func (v NullableConsoleConfig) IsSet() bool

func (NullableConsoleConfig) MarshalJSON

func (v NullableConsoleConfig) MarshalJSON() ([]byte, error)

func (*NullableConsoleConfig) Set

func (v *NullableConsoleConfig) Set(val *ConsoleConfig)

func (*NullableConsoleConfig) UnmarshalJSON

func (v *NullableConsoleConfig) UnmarshalJSON(src []byte) error

func (*NullableConsoleConfig) Unset

func (v *NullableConsoleConfig) Unset()

type NullableCpuAffinity

type NullableCpuAffinity struct {
	// contains filtered or unexported fields
}

func NewNullableCpuAffinity

func NewNullableCpuAffinity(val *CpuAffinity) *NullableCpuAffinity

func (NullableCpuAffinity) Get

func (NullableCpuAffinity) IsSet

func (v NullableCpuAffinity) IsSet() bool

func (NullableCpuAffinity) MarshalJSON

func (v NullableCpuAffinity) MarshalJSON() ([]byte, error)

func (*NullableCpuAffinity) Set

func (v *NullableCpuAffinity) Set(val *CpuAffinity)

func (*NullableCpuAffinity) UnmarshalJSON

func (v *NullableCpuAffinity) UnmarshalJSON(src []byte) error

func (*NullableCpuAffinity) Unset

func (v *NullableCpuAffinity) Unset()

type NullableCpuFeatures

type NullableCpuFeatures struct {
	// contains filtered or unexported fields
}

func NewNullableCpuFeatures

func NewNullableCpuFeatures(val *CpuFeatures) *NullableCpuFeatures

func (NullableCpuFeatures) Get

func (NullableCpuFeatures) IsSet

func (v NullableCpuFeatures) IsSet() bool

func (NullableCpuFeatures) MarshalJSON

func (v NullableCpuFeatures) MarshalJSON() ([]byte, error)

func (*NullableCpuFeatures) Set

func (v *NullableCpuFeatures) Set(val *CpuFeatures)

func (*NullableCpuFeatures) UnmarshalJSON

func (v *NullableCpuFeatures) UnmarshalJSON(src []byte) error

func (*NullableCpuFeatures) Unset

func (v *NullableCpuFeatures) Unset()

type NullableCpuTopology

type NullableCpuTopology struct {
	// contains filtered or unexported fields
}

func NewNullableCpuTopology

func NewNullableCpuTopology(val *CpuTopology) *NullableCpuTopology

func (NullableCpuTopology) Get

func (NullableCpuTopology) IsSet

func (v NullableCpuTopology) IsSet() bool

func (NullableCpuTopology) MarshalJSON

func (v NullableCpuTopology) MarshalJSON() ([]byte, error)

func (*NullableCpuTopology) Set

func (v *NullableCpuTopology) Set(val *CpuTopology)

func (*NullableCpuTopology) UnmarshalJSON

func (v *NullableCpuTopology) UnmarshalJSON(src []byte) error

func (*NullableCpuTopology) Unset

func (v *NullableCpuTopology) Unset()

type NullableCpusConfig

type NullableCpusConfig struct {
	// contains filtered or unexported fields
}

func NewNullableCpusConfig

func NewNullableCpusConfig(val *CpusConfig) *NullableCpusConfig

func (NullableCpusConfig) Get

func (v NullableCpusConfig) Get() *CpusConfig

func (NullableCpusConfig) IsSet

func (v NullableCpusConfig) IsSet() bool

func (NullableCpusConfig) MarshalJSON

func (v NullableCpusConfig) MarshalJSON() ([]byte, error)

func (*NullableCpusConfig) Set

func (v *NullableCpusConfig) Set(val *CpusConfig)

func (*NullableCpusConfig) UnmarshalJSON

func (v *NullableCpusConfig) UnmarshalJSON(src []byte) error

func (*NullableCpusConfig) Unset

func (v *NullableCpusConfig) Unset()

type NullableDeviceConfig

type NullableDeviceConfig struct {
	// contains filtered or unexported fields
}

func NewNullableDeviceConfig

func NewNullableDeviceConfig(val *DeviceConfig) *NullableDeviceConfig

func (NullableDeviceConfig) Get

func (NullableDeviceConfig) IsSet

func (v NullableDeviceConfig) IsSet() bool

func (NullableDeviceConfig) MarshalJSON

func (v NullableDeviceConfig) MarshalJSON() ([]byte, error)

func (*NullableDeviceConfig) Set

func (v *NullableDeviceConfig) Set(val *DeviceConfig)

func (*NullableDeviceConfig) UnmarshalJSON

func (v *NullableDeviceConfig) UnmarshalJSON(src []byte) error

func (*NullableDeviceConfig) Unset

func (v *NullableDeviceConfig) Unset()

type NullableDeviceNode

type NullableDeviceNode struct {
	// contains filtered or unexported fields
}

func NewNullableDeviceNode

func NewNullableDeviceNode(val *DeviceNode) *NullableDeviceNode

func (NullableDeviceNode) Get

func (v NullableDeviceNode) Get() *DeviceNode

func (NullableDeviceNode) IsSet

func (v NullableDeviceNode) IsSet() bool

func (NullableDeviceNode) MarshalJSON

func (v NullableDeviceNode) MarshalJSON() ([]byte, error)

func (*NullableDeviceNode) Set

func (v *NullableDeviceNode) Set(val *DeviceNode)

func (*NullableDeviceNode) UnmarshalJSON

func (v *NullableDeviceNode) UnmarshalJSON(src []byte) error

func (*NullableDeviceNode) Unset

func (v *NullableDeviceNode) Unset()

type NullableDiskConfig

type NullableDiskConfig struct {
	// contains filtered or unexported fields
}

func NewNullableDiskConfig

func NewNullableDiskConfig(val *DiskConfig) *NullableDiskConfig

func (NullableDiskConfig) Get

func (v NullableDiskConfig) Get() *DiskConfig

func (NullableDiskConfig) IsSet

func (v NullableDiskConfig) IsSet() bool

func (NullableDiskConfig) MarshalJSON

func (v NullableDiskConfig) MarshalJSON() ([]byte, error)

func (*NullableDiskConfig) Set

func (v *NullableDiskConfig) Set(val *DiskConfig)

func (*NullableDiskConfig) UnmarshalJSON

func (v *NullableDiskConfig) UnmarshalJSON(src []byte) error

func (*NullableDiskConfig) Unset

func (v *NullableDiskConfig) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableFsConfig

type NullableFsConfig struct {
	// contains filtered or unexported fields
}

func NewNullableFsConfig

func NewNullableFsConfig(val *FsConfig) *NullableFsConfig

func (NullableFsConfig) Get

func (v NullableFsConfig) Get() *FsConfig

func (NullableFsConfig) IsSet

func (v NullableFsConfig) IsSet() bool

func (NullableFsConfig) MarshalJSON

func (v NullableFsConfig) MarshalJSON() ([]byte, error)

func (*NullableFsConfig) Set

func (v *NullableFsConfig) Set(val *FsConfig)

func (*NullableFsConfig) UnmarshalJSON

func (v *NullableFsConfig) UnmarshalJSON(src []byte) error

func (*NullableFsConfig) Unset

func (v *NullableFsConfig) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableMemoryConfig

type NullableMemoryConfig struct {
	// contains filtered or unexported fields
}

func NewNullableMemoryConfig

func NewNullableMemoryConfig(val *MemoryConfig) *NullableMemoryConfig

func (NullableMemoryConfig) Get

func (NullableMemoryConfig) IsSet

func (v NullableMemoryConfig) IsSet() bool

func (NullableMemoryConfig) MarshalJSON

func (v NullableMemoryConfig) MarshalJSON() ([]byte, error)

func (*NullableMemoryConfig) Set

func (v *NullableMemoryConfig) Set(val *MemoryConfig)

func (*NullableMemoryConfig) UnmarshalJSON

func (v *NullableMemoryConfig) UnmarshalJSON(src []byte) error

func (*NullableMemoryConfig) Unset

func (v *NullableMemoryConfig) Unset()

type NullableMemoryZoneConfig

type NullableMemoryZoneConfig struct {
	// contains filtered or unexported fields
}

func NewNullableMemoryZoneConfig

func NewNullableMemoryZoneConfig(val *MemoryZoneConfig) *NullableMemoryZoneConfig

func (NullableMemoryZoneConfig) Get

func (NullableMemoryZoneConfig) IsSet

func (v NullableMemoryZoneConfig) IsSet() bool

func (NullableMemoryZoneConfig) MarshalJSON

func (v NullableMemoryZoneConfig) MarshalJSON() ([]byte, error)

func (*NullableMemoryZoneConfig) Set

func (*NullableMemoryZoneConfig) UnmarshalJSON

func (v *NullableMemoryZoneConfig) UnmarshalJSON(src []byte) error

func (*NullableMemoryZoneConfig) Unset

func (v *NullableMemoryZoneConfig) Unset()

type NullableNetConfig

type NullableNetConfig struct {
	// contains filtered or unexported fields
}

func NewNullableNetConfig

func NewNullableNetConfig(val *NetConfig) *NullableNetConfig

func (NullableNetConfig) Get

func (v NullableNetConfig) Get() *NetConfig

func (NullableNetConfig) IsSet

func (v NullableNetConfig) IsSet() bool

func (NullableNetConfig) MarshalJSON

func (v NullableNetConfig) MarshalJSON() ([]byte, error)

func (*NullableNetConfig) Set

func (v *NullableNetConfig) Set(val *NetConfig)

func (*NullableNetConfig) UnmarshalJSON

func (v *NullableNetConfig) UnmarshalJSON(src []byte) error

func (*NullableNetConfig) Unset

func (v *NullableNetConfig) Unset()

type NullableNumaConfig

type NullableNumaConfig struct {
	// contains filtered or unexported fields
}

func NewNullableNumaConfig

func NewNullableNumaConfig(val *NumaConfig) *NullableNumaConfig

func (NullableNumaConfig) Get

func (v NullableNumaConfig) Get() *NumaConfig

func (NullableNumaConfig) IsSet

func (v NullableNumaConfig) IsSet() bool

func (NullableNumaConfig) MarshalJSON

func (v NullableNumaConfig) MarshalJSON() ([]byte, error)

func (*NullableNumaConfig) Set

func (v *NullableNumaConfig) Set(val *NumaConfig)

func (*NullableNumaConfig) UnmarshalJSON

func (v *NullableNumaConfig) UnmarshalJSON(src []byte) error

func (*NullableNumaConfig) Unset

func (v *NullableNumaConfig) Unset()

type NullableNumaDistance

type NullableNumaDistance struct {
	// contains filtered or unexported fields
}

func NewNullableNumaDistance

func NewNullableNumaDistance(val *NumaDistance) *NullableNumaDistance

func (NullableNumaDistance) Get

func (NullableNumaDistance) IsSet

func (v NullableNumaDistance) IsSet() bool

func (NullableNumaDistance) MarshalJSON

func (v NullableNumaDistance) MarshalJSON() ([]byte, error)

func (*NullableNumaDistance) Set

func (v *NullableNumaDistance) Set(val *NumaDistance)

func (*NullableNumaDistance) UnmarshalJSON

func (v *NullableNumaDistance) UnmarshalJSON(src []byte) error

func (*NullableNumaDistance) Unset

func (v *NullableNumaDistance) Unset()

type NullablePayloadConfig

type NullablePayloadConfig struct {
	// contains filtered or unexported fields
}

func NewNullablePayloadConfig

func NewNullablePayloadConfig(val *PayloadConfig) *NullablePayloadConfig

func (NullablePayloadConfig) Get

func (NullablePayloadConfig) IsSet

func (v NullablePayloadConfig) IsSet() bool

func (NullablePayloadConfig) MarshalJSON

func (v NullablePayloadConfig) MarshalJSON() ([]byte, error)

func (*NullablePayloadConfig) Set

func (v *NullablePayloadConfig) Set(val *PayloadConfig)

func (*NullablePayloadConfig) UnmarshalJSON

func (v *NullablePayloadConfig) UnmarshalJSON(src []byte) error

func (*NullablePayloadConfig) Unset

func (v *NullablePayloadConfig) Unset()

type NullablePciDeviceInfo

type NullablePciDeviceInfo struct {
	// contains filtered or unexported fields
}

func NewNullablePciDeviceInfo

func NewNullablePciDeviceInfo(val *PciDeviceInfo) *NullablePciDeviceInfo

func (NullablePciDeviceInfo) Get

func (NullablePciDeviceInfo) IsSet

func (v NullablePciDeviceInfo) IsSet() bool

func (NullablePciDeviceInfo) MarshalJSON

func (v NullablePciDeviceInfo) MarshalJSON() ([]byte, error)

func (*NullablePciDeviceInfo) Set

func (v *NullablePciDeviceInfo) Set(val *PciDeviceInfo)

func (*NullablePciDeviceInfo) UnmarshalJSON

func (v *NullablePciDeviceInfo) UnmarshalJSON(src []byte) error

func (*NullablePciDeviceInfo) Unset

func (v *NullablePciDeviceInfo) Unset()

type NullablePlatformConfig

type NullablePlatformConfig struct {
	// contains filtered or unexported fields
}

func NewNullablePlatformConfig

func NewNullablePlatformConfig(val *PlatformConfig) *NullablePlatformConfig

func (NullablePlatformConfig) Get

func (NullablePlatformConfig) IsSet

func (v NullablePlatformConfig) IsSet() bool

func (NullablePlatformConfig) MarshalJSON

func (v NullablePlatformConfig) MarshalJSON() ([]byte, error)

func (*NullablePlatformConfig) Set

func (*NullablePlatformConfig) UnmarshalJSON

func (v *NullablePlatformConfig) UnmarshalJSON(src []byte) error

func (*NullablePlatformConfig) Unset

func (v *NullablePlatformConfig) Unset()

type NullablePmemConfig

type NullablePmemConfig struct {
	// contains filtered or unexported fields
}

func NewNullablePmemConfig

func NewNullablePmemConfig(val *PmemConfig) *NullablePmemConfig

func (NullablePmemConfig) Get

func (v NullablePmemConfig) Get() *PmemConfig

func (NullablePmemConfig) IsSet

func (v NullablePmemConfig) IsSet() bool

func (NullablePmemConfig) MarshalJSON

func (v NullablePmemConfig) MarshalJSON() ([]byte, error)

func (*NullablePmemConfig) Set

func (v *NullablePmemConfig) Set(val *PmemConfig)

func (*NullablePmemConfig) UnmarshalJSON

func (v *NullablePmemConfig) UnmarshalJSON(src []byte) error

func (*NullablePmemConfig) Unset

func (v *NullablePmemConfig) Unset()

type NullableRateLimiterConfig

type NullableRateLimiterConfig struct {
	// contains filtered or unexported fields
}

func NewNullableRateLimiterConfig

func NewNullableRateLimiterConfig(val *RateLimiterConfig) *NullableRateLimiterConfig

func (NullableRateLimiterConfig) Get

func (NullableRateLimiterConfig) IsSet

func (v NullableRateLimiterConfig) IsSet() bool

func (NullableRateLimiterConfig) MarshalJSON

func (v NullableRateLimiterConfig) MarshalJSON() ([]byte, error)

func (*NullableRateLimiterConfig) Set

func (*NullableRateLimiterConfig) UnmarshalJSON

func (v *NullableRateLimiterConfig) UnmarshalJSON(src []byte) error

func (*NullableRateLimiterConfig) Unset

func (v *NullableRateLimiterConfig) Unset()

type NullableReceiveMigrationData

type NullableReceiveMigrationData struct {
	// contains filtered or unexported fields
}

func NewNullableReceiveMigrationData

func NewNullableReceiveMigrationData(val *ReceiveMigrationData) *NullableReceiveMigrationData

func (NullableReceiveMigrationData) Get

func (NullableReceiveMigrationData) IsSet

func (NullableReceiveMigrationData) MarshalJSON

func (v NullableReceiveMigrationData) MarshalJSON() ([]byte, error)

func (*NullableReceiveMigrationData) Set

func (*NullableReceiveMigrationData) UnmarshalJSON

func (v *NullableReceiveMigrationData) UnmarshalJSON(src []byte) error

func (*NullableReceiveMigrationData) Unset

func (v *NullableReceiveMigrationData) Unset()

type NullableRestoreConfig

type NullableRestoreConfig struct {
	// contains filtered or unexported fields
}

func NewNullableRestoreConfig

func NewNullableRestoreConfig(val *RestoreConfig) *NullableRestoreConfig

func (NullableRestoreConfig) Get

func (NullableRestoreConfig) IsSet

func (v NullableRestoreConfig) IsSet() bool

func (NullableRestoreConfig) MarshalJSON

func (v NullableRestoreConfig) MarshalJSON() ([]byte, error)

func (*NullableRestoreConfig) Set

func (v *NullableRestoreConfig) Set(val *RestoreConfig)

func (*NullableRestoreConfig) UnmarshalJSON

func (v *NullableRestoreConfig) UnmarshalJSON(src []byte) error

func (*NullableRestoreConfig) Unset

func (v *NullableRestoreConfig) Unset()

type NullableRngConfig

type NullableRngConfig struct {
	// contains filtered or unexported fields
}

func NewNullableRngConfig

func NewNullableRngConfig(val *RngConfig) *NullableRngConfig

func (NullableRngConfig) Get

func (v NullableRngConfig) Get() *RngConfig

func (NullableRngConfig) IsSet

func (v NullableRngConfig) IsSet() bool

func (NullableRngConfig) MarshalJSON

func (v NullableRngConfig) MarshalJSON() ([]byte, error)

func (*NullableRngConfig) Set

func (v *NullableRngConfig) Set(val *RngConfig)

func (*NullableRngConfig) UnmarshalJSON

func (v *NullableRngConfig) UnmarshalJSON(src []byte) error

func (*NullableRngConfig) Unset

func (v *NullableRngConfig) Unset()

type NullableSendMigrationData

type NullableSendMigrationData struct {
	// contains filtered or unexported fields
}

func NewNullableSendMigrationData

func NewNullableSendMigrationData(val *SendMigrationData) *NullableSendMigrationData

func (NullableSendMigrationData) Get

func (NullableSendMigrationData) IsSet

func (v NullableSendMigrationData) IsSet() bool

func (NullableSendMigrationData) MarshalJSON

func (v NullableSendMigrationData) MarshalJSON() ([]byte, error)

func (*NullableSendMigrationData) Set

func (*NullableSendMigrationData) UnmarshalJSON

func (v *NullableSendMigrationData) UnmarshalJSON(src []byte) error

func (*NullableSendMigrationData) Unset

func (v *NullableSendMigrationData) Unset()

type NullableSgxEpcConfig

type NullableSgxEpcConfig struct {
	// contains filtered or unexported fields
}

func NewNullableSgxEpcConfig

func NewNullableSgxEpcConfig(val *SgxEpcConfig) *NullableSgxEpcConfig

func (NullableSgxEpcConfig) Get

func (NullableSgxEpcConfig) IsSet

func (v NullableSgxEpcConfig) IsSet() bool

func (NullableSgxEpcConfig) MarshalJSON

func (v NullableSgxEpcConfig) MarshalJSON() ([]byte, error)

func (*NullableSgxEpcConfig) Set

func (v *NullableSgxEpcConfig) Set(val *SgxEpcConfig)

func (*NullableSgxEpcConfig) UnmarshalJSON

func (v *NullableSgxEpcConfig) UnmarshalJSON(src []byte) error

func (*NullableSgxEpcConfig) Unset

func (v *NullableSgxEpcConfig) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTokenBucket

type NullableTokenBucket struct {
	// contains filtered or unexported fields
}

func NewNullableTokenBucket

func NewNullableTokenBucket(val *TokenBucket) *NullableTokenBucket

func (NullableTokenBucket) Get

func (NullableTokenBucket) IsSet

func (v NullableTokenBucket) IsSet() bool

func (NullableTokenBucket) MarshalJSON

func (v NullableTokenBucket) MarshalJSON() ([]byte, error)

func (*NullableTokenBucket) Set

func (v *NullableTokenBucket) Set(val *TokenBucket)

func (*NullableTokenBucket) UnmarshalJSON

func (v *NullableTokenBucket) UnmarshalJSON(src []byte) error

func (*NullableTokenBucket) Unset

func (v *NullableTokenBucket) Unset()

type NullableTpmConfig

type NullableTpmConfig struct {
	// contains filtered or unexported fields
}

func NewNullableTpmConfig

func NewNullableTpmConfig(val *TpmConfig) *NullableTpmConfig

func (NullableTpmConfig) Get

func (v NullableTpmConfig) Get() *TpmConfig

func (NullableTpmConfig) IsSet

func (v NullableTpmConfig) IsSet() bool

func (NullableTpmConfig) MarshalJSON

func (v NullableTpmConfig) MarshalJSON() ([]byte, error)

func (*NullableTpmConfig) Set

func (v *NullableTpmConfig) Set(val *TpmConfig)

func (*NullableTpmConfig) UnmarshalJSON

func (v *NullableTpmConfig) UnmarshalJSON(src []byte) error

func (*NullableTpmConfig) Unset

func (v *NullableTpmConfig) Unset()

type NullableVdpaConfig

type NullableVdpaConfig struct {
	// contains filtered or unexported fields
}

func NewNullableVdpaConfig

func NewNullableVdpaConfig(val *VdpaConfig) *NullableVdpaConfig

func (NullableVdpaConfig) Get

func (v NullableVdpaConfig) Get() *VdpaConfig

func (NullableVdpaConfig) IsSet

func (v NullableVdpaConfig) IsSet() bool

func (NullableVdpaConfig) MarshalJSON

func (v NullableVdpaConfig) MarshalJSON() ([]byte, error)

func (*NullableVdpaConfig) Set

func (v *NullableVdpaConfig) Set(val *VdpaConfig)

func (*NullableVdpaConfig) UnmarshalJSON

func (v *NullableVdpaConfig) UnmarshalJSON(src []byte) error

func (*NullableVdpaConfig) Unset

func (v *NullableVdpaConfig) Unset()

type NullableVmConfig

type NullableVmConfig struct {
	// contains filtered or unexported fields
}

func NewNullableVmConfig

func NewNullableVmConfig(val *VmConfig) *NullableVmConfig

func (NullableVmConfig) Get

func (v NullableVmConfig) Get() *VmConfig

func (NullableVmConfig) IsSet

func (v NullableVmConfig) IsSet() bool

func (NullableVmConfig) MarshalJSON

func (v NullableVmConfig) MarshalJSON() ([]byte, error)

func (*NullableVmConfig) Set

func (v *NullableVmConfig) Set(val *VmConfig)

func (*NullableVmConfig) UnmarshalJSON

func (v *NullableVmConfig) UnmarshalJSON(src []byte) error

func (*NullableVmConfig) Unset

func (v *NullableVmConfig) Unset()

type NullableVmCoredumpData

type NullableVmCoredumpData struct {
	// contains filtered or unexported fields
}

func NewNullableVmCoredumpData

func NewNullableVmCoredumpData(val *VmCoredumpData) *NullableVmCoredumpData

func (NullableVmCoredumpData) Get

func (NullableVmCoredumpData) IsSet

func (v NullableVmCoredumpData) IsSet() bool

func (NullableVmCoredumpData) MarshalJSON

func (v NullableVmCoredumpData) MarshalJSON() ([]byte, error)

func (*NullableVmCoredumpData) Set

func (*NullableVmCoredumpData) UnmarshalJSON

func (v *NullableVmCoredumpData) UnmarshalJSON(src []byte) error

func (*NullableVmCoredumpData) Unset

func (v *NullableVmCoredumpData) Unset()

type NullableVmInfo

type NullableVmInfo struct {
	// contains filtered or unexported fields
}

func NewNullableVmInfo

func NewNullableVmInfo(val *VmInfo) *NullableVmInfo

func (NullableVmInfo) Get

func (v NullableVmInfo) Get() *VmInfo

func (NullableVmInfo) IsSet

func (v NullableVmInfo) IsSet() bool

func (NullableVmInfo) MarshalJSON

func (v NullableVmInfo) MarshalJSON() ([]byte, error)

func (*NullableVmInfo) Set

func (v *NullableVmInfo) Set(val *VmInfo)

func (*NullableVmInfo) UnmarshalJSON

func (v *NullableVmInfo) UnmarshalJSON(src []byte) error

func (*NullableVmInfo) Unset

func (v *NullableVmInfo) Unset()

type NullableVmRemoveDevice

type NullableVmRemoveDevice struct {
	// contains filtered or unexported fields
}

func NewNullableVmRemoveDevice

func NewNullableVmRemoveDevice(val *VmRemoveDevice) *NullableVmRemoveDevice

func (NullableVmRemoveDevice) Get

func (NullableVmRemoveDevice) IsSet

func (v NullableVmRemoveDevice) IsSet() bool

func (NullableVmRemoveDevice) MarshalJSON

func (v NullableVmRemoveDevice) MarshalJSON() ([]byte, error)

func (*NullableVmRemoveDevice) Set

func (*NullableVmRemoveDevice) UnmarshalJSON

func (v *NullableVmRemoveDevice) UnmarshalJSON(src []byte) error

func (*NullableVmRemoveDevice) Unset

func (v *NullableVmRemoveDevice) Unset()

type NullableVmResize

type NullableVmResize struct {
	// contains filtered or unexported fields
}

func NewNullableVmResize

func NewNullableVmResize(val *VmResize) *NullableVmResize

func (NullableVmResize) Get

func (v NullableVmResize) Get() *VmResize

func (NullableVmResize) IsSet

func (v NullableVmResize) IsSet() bool

func (NullableVmResize) MarshalJSON

func (v NullableVmResize) MarshalJSON() ([]byte, error)

func (*NullableVmResize) Set

func (v *NullableVmResize) Set(val *VmResize)

func (*NullableVmResize) UnmarshalJSON

func (v *NullableVmResize) UnmarshalJSON(src []byte) error

func (*NullableVmResize) Unset

func (v *NullableVmResize) Unset()

type NullableVmResizeZone

type NullableVmResizeZone struct {
	// contains filtered or unexported fields
}

func NewNullableVmResizeZone

func NewNullableVmResizeZone(val *VmResizeZone) *NullableVmResizeZone

func (NullableVmResizeZone) Get

func (NullableVmResizeZone) IsSet

func (v NullableVmResizeZone) IsSet() bool

func (NullableVmResizeZone) MarshalJSON

func (v NullableVmResizeZone) MarshalJSON() ([]byte, error)

func (*NullableVmResizeZone) Set

func (v *NullableVmResizeZone) Set(val *VmResizeZone)

func (*NullableVmResizeZone) UnmarshalJSON

func (v *NullableVmResizeZone) UnmarshalJSON(src []byte) error

func (*NullableVmResizeZone) Unset

func (v *NullableVmResizeZone) Unset()

type NullableVmSnapshotConfig

type NullableVmSnapshotConfig struct {
	// contains filtered or unexported fields
}

func NewNullableVmSnapshotConfig

func NewNullableVmSnapshotConfig(val *VmSnapshotConfig) *NullableVmSnapshotConfig

func (NullableVmSnapshotConfig) Get

func (NullableVmSnapshotConfig) IsSet

func (v NullableVmSnapshotConfig) IsSet() bool

func (NullableVmSnapshotConfig) MarshalJSON

func (v NullableVmSnapshotConfig) MarshalJSON() ([]byte, error)

func (*NullableVmSnapshotConfig) Set

func (*NullableVmSnapshotConfig) UnmarshalJSON

func (v *NullableVmSnapshotConfig) UnmarshalJSON(src []byte) error

func (*NullableVmSnapshotConfig) Unset

func (v *NullableVmSnapshotConfig) Unset()

type NullableVmmPingResponse

type NullableVmmPingResponse struct {
	// contains filtered or unexported fields
}

func NewNullableVmmPingResponse

func NewNullableVmmPingResponse(val *VmmPingResponse) *NullableVmmPingResponse

func (NullableVmmPingResponse) Get

func (NullableVmmPingResponse) IsSet

func (v NullableVmmPingResponse) IsSet() bool

func (NullableVmmPingResponse) MarshalJSON

func (v NullableVmmPingResponse) MarshalJSON() ([]byte, error)

func (*NullableVmmPingResponse) Set

func (*NullableVmmPingResponse) UnmarshalJSON

func (v *NullableVmmPingResponse) UnmarshalJSON(src []byte) error

func (*NullableVmmPingResponse) Unset

func (v *NullableVmmPingResponse) Unset()

type NullableVsockConfig

type NullableVsockConfig struct {
	// contains filtered or unexported fields
}

func NewNullableVsockConfig

func NewNullableVsockConfig(val *VsockConfig) *NullableVsockConfig

func (NullableVsockConfig) Get

func (NullableVsockConfig) IsSet

func (v NullableVsockConfig) IsSet() bool

func (NullableVsockConfig) MarshalJSON

func (v NullableVsockConfig) MarshalJSON() ([]byte, error)

func (*NullableVsockConfig) Set

func (v *NullableVsockConfig) Set(val *VsockConfig)

func (*NullableVsockConfig) UnmarshalJSON

func (v *NullableVsockConfig) UnmarshalJSON(src []byte) error

func (*NullableVsockConfig) Unset

func (v *NullableVsockConfig) Unset()

type NumaConfig

type NumaConfig struct {
	GuestNumaId    int32           `json:"guest_numa_id"`
	Cpus           *[]int32        `json:"cpus,omitempty"`
	Distances      *[]NumaDistance `json:"distances,omitempty"`
	MemoryZones    *[]string       `json:"memory_zones,omitempty"`
	SgxEpcSections *[]string       `json:"sgx_epc_sections,omitempty"`
	PciSegments    *[]int32        `json:"pci_segments,omitempty"`
}

NumaConfig struct for NumaConfig

func NewNumaConfig

func NewNumaConfig(guestNumaId int32) *NumaConfig

NewNumaConfig instantiates a new NumaConfig 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

func NewNumaConfigWithDefaults

func NewNumaConfigWithDefaults() *NumaConfig

NewNumaConfigWithDefaults instantiates a new NumaConfig 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

func (*NumaConfig) GetCpus

func (o *NumaConfig) GetCpus() []int32

GetCpus returns the Cpus field value if set, zero value otherwise.

func (*NumaConfig) GetCpusOk

func (o *NumaConfig) GetCpusOk() (*[]int32, bool)

GetCpusOk returns a tuple with the Cpus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NumaConfig) GetDistances

func (o *NumaConfig) GetDistances() []NumaDistance

GetDistances returns the Distances field value if set, zero value otherwise.

func (*NumaConfig) GetDistancesOk

func (o *NumaConfig) GetDistancesOk() (*[]NumaDistance, bool)

GetDistancesOk returns a tuple with the Distances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NumaConfig) GetGuestNumaId

func (o *NumaConfig) GetGuestNumaId() int32

GetGuestNumaId returns the GuestNumaId field value

func (*NumaConfig) GetGuestNumaIdOk

func (o *NumaConfig) GetGuestNumaIdOk() (*int32, bool)

GetGuestNumaIdOk returns a tuple with the GuestNumaId field value and a boolean to check if the value has been set.

func (*NumaConfig) GetMemoryZones

func (o *NumaConfig) GetMemoryZones() []string

GetMemoryZones returns the MemoryZones field value if set, zero value otherwise.

func (*NumaConfig) GetMemoryZonesOk

func (o *NumaConfig) GetMemoryZonesOk() (*[]string, bool)

GetMemoryZonesOk returns a tuple with the MemoryZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NumaConfig) GetPciSegments

func (o *NumaConfig) GetPciSegments() []int32

GetPciSegments returns the PciSegments field value if set, zero value otherwise.

func (*NumaConfig) GetPciSegmentsOk

func (o *NumaConfig) GetPciSegmentsOk() (*[]int32, bool)

GetPciSegmentsOk returns a tuple with the PciSegments field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NumaConfig) GetSgxEpcSections

func (o *NumaConfig) GetSgxEpcSections() []string

GetSgxEpcSections returns the SgxEpcSections field value if set, zero value otherwise.

func (*NumaConfig) GetSgxEpcSectionsOk

func (o *NumaConfig) GetSgxEpcSectionsOk() (*[]string, bool)

GetSgxEpcSectionsOk returns a tuple with the SgxEpcSections field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NumaConfig) HasCpus

func (o *NumaConfig) HasCpus() bool

HasCpus returns a boolean if a field has been set.

func (*NumaConfig) HasDistances

func (o *NumaConfig) HasDistances() bool

HasDistances returns a boolean if a field has been set.

func (*NumaConfig) HasMemoryZones

func (o *NumaConfig) HasMemoryZones() bool

HasMemoryZones returns a boolean if a field has been set.

func (*NumaConfig) HasPciSegments

func (o *NumaConfig) HasPciSegments() bool

HasPciSegments returns a boolean if a field has been set.

func (*NumaConfig) HasSgxEpcSections

func (o *NumaConfig) HasSgxEpcSections() bool

HasSgxEpcSections returns a boolean if a field has been set.

func (NumaConfig) MarshalJSON

func (o NumaConfig) MarshalJSON() ([]byte, error)

func (*NumaConfig) SetCpus

func (o *NumaConfig) SetCpus(v []int32)

SetCpus gets a reference to the given []int32 and assigns it to the Cpus field.

func (*NumaConfig) SetDistances

func (o *NumaConfig) SetDistances(v []NumaDistance)

SetDistances gets a reference to the given []NumaDistance and assigns it to the Distances field.

func (*NumaConfig) SetGuestNumaId

func (o *NumaConfig) SetGuestNumaId(v int32)

SetGuestNumaId sets field value

func (*NumaConfig) SetMemoryZones

func (o *NumaConfig) SetMemoryZones(v []string)

SetMemoryZones gets a reference to the given []string and assigns it to the MemoryZones field.

func (*NumaConfig) SetPciSegments

func (o *NumaConfig) SetPciSegments(v []int32)

SetPciSegments gets a reference to the given []int32 and assigns it to the PciSegments field.

func (*NumaConfig) SetSgxEpcSections

func (o *NumaConfig) SetSgxEpcSections(v []string)

SetSgxEpcSections gets a reference to the given []string and assigns it to the SgxEpcSections field.

type NumaDistance

type NumaDistance struct {
	Destination int32 `json:"destination"`
	Distance    int32 `json:"distance"`
}

NumaDistance struct for NumaDistance

func NewNumaDistance

func NewNumaDistance(destination int32, distance int32) *NumaDistance

NewNumaDistance instantiates a new NumaDistance 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

func NewNumaDistanceWithDefaults

func NewNumaDistanceWithDefaults() *NumaDistance

NewNumaDistanceWithDefaults instantiates a new NumaDistance 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

func (*NumaDistance) GetDestination

func (o *NumaDistance) GetDestination() int32

GetDestination returns the Destination field value

func (*NumaDistance) GetDestinationOk

func (o *NumaDistance) GetDestinationOk() (*int32, bool)

GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set.

func (*NumaDistance) GetDistance

func (o *NumaDistance) GetDistance() int32

GetDistance returns the Distance field value

func (*NumaDistance) GetDistanceOk

func (o *NumaDistance) GetDistanceOk() (*int32, bool)

GetDistanceOk returns a tuple with the Distance field value and a boolean to check if the value has been set.

func (NumaDistance) MarshalJSON

func (o NumaDistance) MarshalJSON() ([]byte, error)

func (*NumaDistance) SetDestination

func (o *NumaDistance) SetDestination(v int32)

SetDestination sets field value

func (*NumaDistance) SetDistance

func (o *NumaDistance) SetDistance(v int32)

SetDistance sets field value

type PayloadConfig

type PayloadConfig struct {
	Firmware  *string `json:"firmware,omitempty"`
	Kernel    *string `json:"kernel,omitempty"`
	Cmdline   *string `json:"cmdline,omitempty"`
	Initramfs *string `json:"initramfs,omitempty"`
}

PayloadConfig Payloads to boot in guest

func NewPayloadConfig

func NewPayloadConfig() *PayloadConfig

NewPayloadConfig instantiates a new PayloadConfig 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

func NewPayloadConfigWithDefaults

func NewPayloadConfigWithDefaults() *PayloadConfig

NewPayloadConfigWithDefaults instantiates a new PayloadConfig 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

func (*PayloadConfig) GetCmdline

func (o *PayloadConfig) GetCmdline() string

GetCmdline returns the Cmdline field value if set, zero value otherwise.

func (*PayloadConfig) GetCmdlineOk

func (o *PayloadConfig) GetCmdlineOk() (*string, bool)

GetCmdlineOk returns a tuple with the Cmdline field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PayloadConfig) GetFirmware

func (o *PayloadConfig) GetFirmware() string

GetFirmware returns the Firmware field value if set, zero value otherwise.

func (*PayloadConfig) GetFirmwareOk

func (o *PayloadConfig) GetFirmwareOk() (*string, bool)

GetFirmwareOk returns a tuple with the Firmware field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PayloadConfig) GetInitramfs

func (o *PayloadConfig) GetInitramfs() string

GetInitramfs returns the Initramfs field value if set, zero value otherwise.

func (*PayloadConfig) GetInitramfsOk

func (o *PayloadConfig) GetInitramfsOk() (*string, bool)

GetInitramfsOk returns a tuple with the Initramfs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PayloadConfig) GetKernel

func (o *PayloadConfig) GetKernel() string

GetKernel returns the Kernel field value if set, zero value otherwise.

func (*PayloadConfig) GetKernelOk

func (o *PayloadConfig) GetKernelOk() (*string, bool)

GetKernelOk returns a tuple with the Kernel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PayloadConfig) HasCmdline

func (o *PayloadConfig) HasCmdline() bool

HasCmdline returns a boolean if a field has been set.

func (*PayloadConfig) HasFirmware

func (o *PayloadConfig) HasFirmware() bool

HasFirmware returns a boolean if a field has been set.

func (*PayloadConfig) HasInitramfs

func (o *PayloadConfig) HasInitramfs() bool

HasInitramfs returns a boolean if a field has been set.

func (*PayloadConfig) HasKernel

func (o *PayloadConfig) HasKernel() bool

HasKernel returns a boolean if a field has been set.

func (PayloadConfig) MarshalJSON

func (o PayloadConfig) MarshalJSON() ([]byte, error)

func (*PayloadConfig) SetCmdline

func (o *PayloadConfig) SetCmdline(v string)

SetCmdline gets a reference to the given string and assigns it to the Cmdline field.

func (*PayloadConfig) SetFirmware

func (o *PayloadConfig) SetFirmware(v string)

SetFirmware gets a reference to the given string and assigns it to the Firmware field.

func (*PayloadConfig) SetInitramfs

func (o *PayloadConfig) SetInitramfs(v string)

SetInitramfs gets a reference to the given string and assigns it to the Initramfs field.

func (*PayloadConfig) SetKernel

func (o *PayloadConfig) SetKernel(v string)

SetKernel gets a reference to the given string and assigns it to the Kernel field.

type PciDeviceInfo

type PciDeviceInfo struct {
	Id  string `json:"id"`
	Bdf string `json:"bdf"`
}

PciDeviceInfo Information about a PCI device

func NewPciDeviceInfo

func NewPciDeviceInfo(id string, bdf string) *PciDeviceInfo

NewPciDeviceInfo instantiates a new PciDeviceInfo 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

func NewPciDeviceInfoWithDefaults

func NewPciDeviceInfoWithDefaults() *PciDeviceInfo

NewPciDeviceInfoWithDefaults instantiates a new PciDeviceInfo 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

func (*PciDeviceInfo) GetBdf

func (o *PciDeviceInfo) GetBdf() string

GetBdf returns the Bdf field value

func (*PciDeviceInfo) GetBdfOk

func (o *PciDeviceInfo) GetBdfOk() (*string, bool)

GetBdfOk returns a tuple with the Bdf field value and a boolean to check if the value has been set.

func (*PciDeviceInfo) GetId

func (o *PciDeviceInfo) GetId() string

GetId returns the Id field value

func (*PciDeviceInfo) GetIdOk

func (o *PciDeviceInfo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (PciDeviceInfo) MarshalJSON

func (o PciDeviceInfo) MarshalJSON() ([]byte, error)

func (*PciDeviceInfo) SetBdf

func (o *PciDeviceInfo) SetBdf(v string)

SetBdf sets field value

func (*PciDeviceInfo) SetId

func (o *PciDeviceInfo) SetId(v string)

SetId sets field value

type PlatformConfig

type PlatformConfig struct {
	NumPciSegments *int32    `json:"num_pci_segments,omitempty"`
	IommuSegments  *[]int32  `json:"iommu_segments,omitempty"`
	SerialNumber   *string   `json:"serial_number,omitempty"`
	Uuid           *string   `json:"uuid,omitempty"`
	OemStrings     *[]string `json:"oem_strings,omitempty"`
	Tdx            *bool     `json:"tdx,omitempty"`
}

PlatformConfig struct for PlatformConfig

func NewPlatformConfig

func NewPlatformConfig() *PlatformConfig

NewPlatformConfig instantiates a new PlatformConfig 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

func NewPlatformConfigWithDefaults

func NewPlatformConfigWithDefaults() *PlatformConfig

NewPlatformConfigWithDefaults instantiates a new PlatformConfig 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

func (*PlatformConfig) GetIommuSegments

func (o *PlatformConfig) GetIommuSegments() []int32

GetIommuSegments returns the IommuSegments field value if set, zero value otherwise.

func (*PlatformConfig) GetIommuSegmentsOk

func (o *PlatformConfig) GetIommuSegmentsOk() (*[]int32, bool)

GetIommuSegmentsOk returns a tuple with the IommuSegments field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) GetNumPciSegments

func (o *PlatformConfig) GetNumPciSegments() int32

GetNumPciSegments returns the NumPciSegments field value if set, zero value otherwise.

func (*PlatformConfig) GetNumPciSegmentsOk

func (o *PlatformConfig) GetNumPciSegmentsOk() (*int32, bool)

GetNumPciSegmentsOk returns a tuple with the NumPciSegments field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) GetOemStrings

func (o *PlatformConfig) GetOemStrings() []string

GetOemStrings returns the OemStrings field value if set, zero value otherwise.

func (*PlatformConfig) GetOemStringsOk

func (o *PlatformConfig) GetOemStringsOk() (*[]string, bool)

GetOemStringsOk returns a tuple with the OemStrings field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) GetSerialNumber

func (o *PlatformConfig) GetSerialNumber() string

GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.

func (*PlatformConfig) GetSerialNumberOk

func (o *PlatformConfig) GetSerialNumberOk() (*string, bool)

GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) GetTdx

func (o *PlatformConfig) GetTdx() bool

GetTdx returns the Tdx field value if set, zero value otherwise.

func (*PlatformConfig) GetTdxOk

func (o *PlatformConfig) GetTdxOk() (*bool, bool)

GetTdxOk returns a tuple with the Tdx field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) GetUuid

func (o *PlatformConfig) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*PlatformConfig) GetUuidOk

func (o *PlatformConfig) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlatformConfig) HasIommuSegments

func (o *PlatformConfig) HasIommuSegments() bool

HasIommuSegments returns a boolean if a field has been set.

func (*PlatformConfig) HasNumPciSegments

func (o *PlatformConfig) HasNumPciSegments() bool

HasNumPciSegments returns a boolean if a field has been set.

func (*PlatformConfig) HasOemStrings

func (o *PlatformConfig) HasOemStrings() bool

HasOemStrings returns a boolean if a field has been set.

func (*PlatformConfig) HasSerialNumber

func (o *PlatformConfig) HasSerialNumber() bool

HasSerialNumber returns a boolean if a field has been set.

func (*PlatformConfig) HasTdx

func (o *PlatformConfig) HasTdx() bool

HasTdx returns a boolean if a field has been set.

func (*PlatformConfig) HasUuid

func (o *PlatformConfig) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (PlatformConfig) MarshalJSON

func (o PlatformConfig) MarshalJSON() ([]byte, error)

func (*PlatformConfig) SetIommuSegments

func (o *PlatformConfig) SetIommuSegments(v []int32)

SetIommuSegments gets a reference to the given []int32 and assigns it to the IommuSegments field.

func (*PlatformConfig) SetNumPciSegments

func (o *PlatformConfig) SetNumPciSegments(v int32)

SetNumPciSegments gets a reference to the given int32 and assigns it to the NumPciSegments field.

func (*PlatformConfig) SetOemStrings

func (o *PlatformConfig) SetOemStrings(v []string)

SetOemStrings gets a reference to the given []string and assigns it to the OemStrings field.

func (*PlatformConfig) SetSerialNumber

func (o *PlatformConfig) SetSerialNumber(v string)

SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.

func (*PlatformConfig) SetTdx

func (o *PlatformConfig) SetTdx(v bool)

SetTdx gets a reference to the given bool and assigns it to the Tdx field.

func (*PlatformConfig) SetUuid

func (o *PlatformConfig) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type PmemConfig

type PmemConfig struct {
	File          string  `json:"file"`
	Size          *int64  `json:"size,omitempty"`
	Iommu         *bool   `json:"iommu,omitempty"`
	DiscardWrites *bool   `json:"discard_writes,omitempty"`
	PciSegment    *int32  `json:"pci_segment,omitempty"`
	Id            *string `json:"id,omitempty"`
}

PmemConfig struct for PmemConfig

func NewPmemConfig

func NewPmemConfig(file string) *PmemConfig

NewPmemConfig instantiates a new PmemConfig 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

func NewPmemConfigWithDefaults

func NewPmemConfigWithDefaults() *PmemConfig

NewPmemConfigWithDefaults instantiates a new PmemConfig 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

func (*PmemConfig) GetDiscardWrites

func (o *PmemConfig) GetDiscardWrites() bool

GetDiscardWrites returns the DiscardWrites field value if set, zero value otherwise.

func (*PmemConfig) GetDiscardWritesOk

func (o *PmemConfig) GetDiscardWritesOk() (*bool, bool)

GetDiscardWritesOk returns a tuple with the DiscardWrites field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PmemConfig) GetFile

func (o *PmemConfig) GetFile() string

GetFile returns the File field value

func (*PmemConfig) GetFileOk

func (o *PmemConfig) GetFileOk() (*string, bool)

GetFileOk returns a tuple with the File field value and a boolean to check if the value has been set.

func (*PmemConfig) GetId

func (o *PmemConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*PmemConfig) GetIdOk

func (o *PmemConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PmemConfig) GetIommu

func (o *PmemConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*PmemConfig) GetIommuOk

func (o *PmemConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PmemConfig) GetPciSegment

func (o *PmemConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*PmemConfig) GetPciSegmentOk

func (o *PmemConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PmemConfig) GetSize

func (o *PmemConfig) GetSize() int64

GetSize returns the Size field value if set, zero value otherwise.

func (*PmemConfig) GetSizeOk

func (o *PmemConfig) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PmemConfig) HasDiscardWrites

func (o *PmemConfig) HasDiscardWrites() bool

HasDiscardWrites returns a boolean if a field has been set.

func (*PmemConfig) HasId

func (o *PmemConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*PmemConfig) HasIommu

func (o *PmemConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*PmemConfig) HasPciSegment

func (o *PmemConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (*PmemConfig) HasSize

func (o *PmemConfig) HasSize() bool

HasSize returns a boolean if a field has been set.

func (PmemConfig) MarshalJSON

func (o PmemConfig) MarshalJSON() ([]byte, error)

func (*PmemConfig) SetDiscardWrites

func (o *PmemConfig) SetDiscardWrites(v bool)

SetDiscardWrites gets a reference to the given bool and assigns it to the DiscardWrites field.

func (*PmemConfig) SetFile

func (o *PmemConfig) SetFile(v string)

SetFile sets field value

func (*PmemConfig) SetId

func (o *PmemConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*PmemConfig) SetIommu

func (o *PmemConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*PmemConfig) SetPciSegment

func (o *PmemConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

func (*PmemConfig) SetSize

func (o *PmemConfig) SetSize(v int64)

SetSize gets a reference to the given int64 and assigns it to the Size field.

type RateLimiterConfig

type RateLimiterConfig struct {
	Bandwidth *TokenBucket `json:"bandwidth,omitempty"`
	Ops       *TokenBucket `json:"ops,omitempty"`
}

RateLimiterConfig Defines an IO rate limiter with independent bytes/s and ops/s limits. Limits are defined by configuring each of the _bandwidth_ and _ops_ token buckets.

func NewRateLimiterConfig

func NewRateLimiterConfig() *RateLimiterConfig

NewRateLimiterConfig instantiates a new RateLimiterConfig 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

func NewRateLimiterConfigWithDefaults

func NewRateLimiterConfigWithDefaults() *RateLimiterConfig

NewRateLimiterConfigWithDefaults instantiates a new RateLimiterConfig 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

func (*RateLimiterConfig) GetBandwidth

func (o *RateLimiterConfig) GetBandwidth() TokenBucket

GetBandwidth returns the Bandwidth field value if set, zero value otherwise.

func (*RateLimiterConfig) GetBandwidthOk

func (o *RateLimiterConfig) GetBandwidthOk() (*TokenBucket, bool)

GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RateLimiterConfig) GetOps

func (o *RateLimiterConfig) GetOps() TokenBucket

GetOps returns the Ops field value if set, zero value otherwise.

func (*RateLimiterConfig) GetOpsOk

func (o *RateLimiterConfig) GetOpsOk() (*TokenBucket, bool)

GetOpsOk returns a tuple with the Ops field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RateLimiterConfig) HasBandwidth

func (o *RateLimiterConfig) HasBandwidth() bool

HasBandwidth returns a boolean if a field has been set.

func (*RateLimiterConfig) HasOps

func (o *RateLimiterConfig) HasOps() bool

HasOps returns a boolean if a field has been set.

func (RateLimiterConfig) MarshalJSON

func (o RateLimiterConfig) MarshalJSON() ([]byte, error)

func (*RateLimiterConfig) SetBandwidth

func (o *RateLimiterConfig) SetBandwidth(v TokenBucket)

SetBandwidth gets a reference to the given TokenBucket and assigns it to the Bandwidth field.

func (*RateLimiterConfig) SetOps

func (o *RateLimiterConfig) SetOps(v TokenBucket)

SetOps gets a reference to the given TokenBucket and assigns it to the Ops field.

type ReceiveMigrationData

type ReceiveMigrationData struct {
	ReceiverUrl string `json:"receiver_url"`
}

ReceiveMigrationData struct for ReceiveMigrationData

func NewReceiveMigrationData

func NewReceiveMigrationData(receiverUrl string) *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

func 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

func (*ReceiveMigrationData) GetReceiverUrl

func (o *ReceiveMigrationData) GetReceiverUrl() string

GetReceiverUrl returns the ReceiverUrl field value

func (*ReceiveMigrationData) GetReceiverUrlOk

func (o *ReceiveMigrationData) GetReceiverUrlOk() (*string, bool)

GetReceiverUrlOk returns a tuple with the ReceiverUrl field value and a boolean to check if the value has been set.

func (ReceiveMigrationData) MarshalJSON

func (o ReceiveMigrationData) MarshalJSON() ([]byte, error)

func (*ReceiveMigrationData) SetReceiverUrl

func (o *ReceiveMigrationData) SetReceiverUrl(v string)

SetReceiverUrl sets field value

type RestoreConfig

type RestoreConfig struct {
	SourceUrl string `json:"source_url"`
	Prefault  *bool  `json:"prefault,omitempty"`
}

RestoreConfig struct for RestoreConfig

func NewRestoreConfig

func NewRestoreConfig(sourceUrl string) *RestoreConfig

NewRestoreConfig instantiates a new RestoreConfig 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

func NewRestoreConfigWithDefaults

func NewRestoreConfigWithDefaults() *RestoreConfig

NewRestoreConfigWithDefaults instantiates a new RestoreConfig 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

func (*RestoreConfig) GetPrefault

func (o *RestoreConfig) GetPrefault() bool

GetPrefault returns the Prefault field value if set, zero value otherwise.

func (*RestoreConfig) GetPrefaultOk

func (o *RestoreConfig) GetPrefaultOk() (*bool, bool)

GetPrefaultOk returns a tuple with the Prefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreConfig) GetSourceUrl

func (o *RestoreConfig) GetSourceUrl() string

GetSourceUrl returns the SourceUrl field value

func (*RestoreConfig) GetSourceUrlOk

func (o *RestoreConfig) GetSourceUrlOk() (*string, bool)

GetSourceUrlOk returns a tuple with the SourceUrl field value and a boolean to check if the value has been set.

func (*RestoreConfig) HasPrefault

func (o *RestoreConfig) HasPrefault() bool

HasPrefault returns a boolean if a field has been set.

func (RestoreConfig) MarshalJSON

func (o RestoreConfig) MarshalJSON() ([]byte, error)

func (*RestoreConfig) SetPrefault

func (o *RestoreConfig) SetPrefault(v bool)

SetPrefault gets a reference to the given bool and assigns it to the Prefault field.

func (*RestoreConfig) SetSourceUrl

func (o *RestoreConfig) SetSourceUrl(v string)

SetSourceUrl sets field value

type RngConfig

type RngConfig struct {
	Src   string `json:"src"`
	Iommu *bool  `json:"iommu,omitempty"`
}

RngConfig struct for RngConfig

func NewRngConfig

func NewRngConfig(src string) *RngConfig

NewRngConfig instantiates a new RngConfig 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

func NewRngConfigWithDefaults

func NewRngConfigWithDefaults() *RngConfig

NewRngConfigWithDefaults instantiates a new RngConfig 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

func (*RngConfig) GetIommu

func (o *RngConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*RngConfig) GetIommuOk

func (o *RngConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RngConfig) GetSrc

func (o *RngConfig) GetSrc() string

GetSrc returns the Src field value

func (*RngConfig) GetSrcOk

func (o *RngConfig) GetSrcOk() (*string, bool)

GetSrcOk returns a tuple with the Src field value and a boolean to check if the value has been set.

func (*RngConfig) HasIommu

func (o *RngConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (RngConfig) MarshalJSON

func (o RngConfig) MarshalJSON() ([]byte, error)

func (*RngConfig) SetIommu

func (o *RngConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*RngConfig) SetSrc

func (o *RngConfig) SetSrc(v string)

SetSrc sets field value

type SendMigrationData

type SendMigrationData struct {
	DestinationUrl string `json:"destination_url"`
	Local          *bool  `json:"local,omitempty"`
}

SendMigrationData struct for SendMigrationData

func NewSendMigrationData

func NewSendMigrationData(destinationUrl string) *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

func 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

func (*SendMigrationData) GetDestinationUrl

func (o *SendMigrationData) GetDestinationUrl() string

GetDestinationUrl returns the DestinationUrl field value

func (*SendMigrationData) GetDestinationUrlOk

func (o *SendMigrationData) GetDestinationUrlOk() (*string, bool)

GetDestinationUrlOk returns a tuple with the DestinationUrl field value and a boolean to check if the value has been set.

func (*SendMigrationData) GetLocal

func (o *SendMigrationData) GetLocal() bool

GetLocal returns the Local field value if set, zero value otherwise.

func (*SendMigrationData) GetLocalOk

func (o *SendMigrationData) GetLocalOk() (*bool, bool)

GetLocalOk returns a tuple with the Local field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SendMigrationData) HasLocal

func (o *SendMigrationData) HasLocal() bool

HasLocal returns a boolean if a field has been set.

func (SendMigrationData) MarshalJSON

func (o SendMigrationData) MarshalJSON() ([]byte, error)

func (*SendMigrationData) SetDestinationUrl

func (o *SendMigrationData) SetDestinationUrl(v string)

SetDestinationUrl sets field value

func (*SendMigrationData) SetLocal

func (o *SendMigrationData) SetLocal(v bool)

SetLocal gets a reference to the given bool and assigns it to the Local field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SgxEpcConfig

type SgxEpcConfig struct {
	Id       string `json:"id"`
	Size     int64  `json:"size"`
	Prefault *bool  `json:"prefault,omitempty"`
}

SgxEpcConfig struct for SgxEpcConfig

func NewSgxEpcConfig

func NewSgxEpcConfig(id string, size int64) *SgxEpcConfig

NewSgxEpcConfig instantiates a new SgxEpcConfig 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

func NewSgxEpcConfigWithDefaults

func NewSgxEpcConfigWithDefaults() *SgxEpcConfig

NewSgxEpcConfigWithDefaults instantiates a new SgxEpcConfig 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

func (*SgxEpcConfig) GetId

func (o *SgxEpcConfig) GetId() string

GetId returns the Id field value

func (*SgxEpcConfig) GetIdOk

func (o *SgxEpcConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*SgxEpcConfig) GetPrefault

func (o *SgxEpcConfig) GetPrefault() bool

GetPrefault returns the Prefault field value if set, zero value otherwise.

func (*SgxEpcConfig) GetPrefaultOk

func (o *SgxEpcConfig) GetPrefaultOk() (*bool, bool)

GetPrefaultOk returns a tuple with the Prefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SgxEpcConfig) GetSize

func (o *SgxEpcConfig) GetSize() int64

GetSize returns the Size field value

func (*SgxEpcConfig) GetSizeOk

func (o *SgxEpcConfig) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*SgxEpcConfig) HasPrefault

func (o *SgxEpcConfig) HasPrefault() bool

HasPrefault returns a boolean if a field has been set.

func (SgxEpcConfig) MarshalJSON

func (o SgxEpcConfig) MarshalJSON() ([]byte, error)

func (*SgxEpcConfig) SetId

func (o *SgxEpcConfig) SetId(v string)

SetId sets field value

func (*SgxEpcConfig) SetPrefault

func (o *SgxEpcConfig) SetPrefault(v bool)

SetPrefault gets a reference to the given bool and assigns it to the Prefault field.

func (*SgxEpcConfig) SetSize

func (o *SgxEpcConfig) SetSize(v int64)

SetSize sets field value

type TokenBucket

type TokenBucket struct {
	// The total number of tokens this bucket can hold.
	Size int64 `json:"size"`
	// The initial size of a token bucket.
	OneTimeBurst *int64 `json:"one_time_burst,omitempty"`
	// The amount of milliseconds it takes for the bucket to refill.
	RefillTime int64 `json:"refill_time"`
}

TokenBucket Defines a token bucket with a maximum capacity (_size_), an initial burst size (_one_time_burst_) and an interval for refilling purposes (_refill_time_). The refill-rate is derived from _size_ and _refill_time_, and it is the constant rate at which the tokens replenish. The refill process only starts happening after the initial burst budget is consumed. Consumption from the token bucket is unbounded in speed which allows for bursts bound in size by the amount of tokens available. Once the token bucket is empty, consumption speed is bound by the refill-rate.

func NewTokenBucket

func NewTokenBucket(size int64, refillTime int64) *TokenBucket

NewTokenBucket instantiates a new TokenBucket 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

func NewTokenBucketWithDefaults

func NewTokenBucketWithDefaults() *TokenBucket

NewTokenBucketWithDefaults instantiates a new TokenBucket 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

func (*TokenBucket) GetOneTimeBurst

func (o *TokenBucket) GetOneTimeBurst() int64

GetOneTimeBurst returns the OneTimeBurst field value if set, zero value otherwise.

func (*TokenBucket) GetOneTimeBurstOk

func (o *TokenBucket) GetOneTimeBurstOk() (*int64, bool)

GetOneTimeBurstOk returns a tuple with the OneTimeBurst field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokenBucket) GetRefillTime

func (o *TokenBucket) GetRefillTime() int64

GetRefillTime returns the RefillTime field value

func (*TokenBucket) GetRefillTimeOk

func (o *TokenBucket) GetRefillTimeOk() (*int64, bool)

GetRefillTimeOk returns a tuple with the RefillTime field value and a boolean to check if the value has been set.

func (*TokenBucket) GetSize

func (o *TokenBucket) GetSize() int64

GetSize returns the Size field value

func (*TokenBucket) GetSizeOk

func (o *TokenBucket) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*TokenBucket) HasOneTimeBurst

func (o *TokenBucket) HasOneTimeBurst() bool

HasOneTimeBurst returns a boolean if a field has been set.

func (TokenBucket) MarshalJSON

func (o TokenBucket) MarshalJSON() ([]byte, error)

func (*TokenBucket) SetOneTimeBurst

func (o *TokenBucket) SetOneTimeBurst(v int64)

SetOneTimeBurst gets a reference to the given int64 and assigns it to the OneTimeBurst field.

func (*TokenBucket) SetRefillTime

func (o *TokenBucket) SetRefillTime(v int64)

SetRefillTime sets field value

func (*TokenBucket) SetSize

func (o *TokenBucket) SetSize(v int64)

SetSize sets field value

type TpmConfig

type TpmConfig struct {
	Socket string `json:"socket"`
}

TpmConfig struct for TpmConfig

func NewTpmConfig

func NewTpmConfig(socket string) *TpmConfig

NewTpmConfig instantiates a new TpmConfig 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

func NewTpmConfigWithDefaults

func NewTpmConfigWithDefaults() *TpmConfig

NewTpmConfigWithDefaults instantiates a new TpmConfig 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

func (*TpmConfig) GetSocket

func (o *TpmConfig) GetSocket() string

GetSocket returns the Socket field value

func (*TpmConfig) GetSocketOk

func (o *TpmConfig) GetSocketOk() (*string, bool)

GetSocketOk returns a tuple with the Socket field value and a boolean to check if the value has been set.

func (TpmConfig) MarshalJSON

func (o TpmConfig) MarshalJSON() ([]byte, error)

func (*TpmConfig) SetSocket

func (o *TpmConfig) SetSocket(v string)

SetSocket sets field value

type VdpaConfig

type VdpaConfig struct {
	Path       string  `json:"path"`
	NumQueues  int32   `json:"num_queues"`
	Iommu      *bool   `json:"iommu,omitempty"`
	PciSegment *int32  `json:"pci_segment,omitempty"`
	Id         *string `json:"id,omitempty"`
}

VdpaConfig struct for VdpaConfig

func 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

func 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

func (*VdpaConfig) GetId

func (o *VdpaConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*VdpaConfig) GetIdOk

func (o *VdpaConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VdpaConfig) GetIommu

func (o *VdpaConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*VdpaConfig) GetIommuOk

func (o *VdpaConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VdpaConfig) GetNumQueues

func (o *VdpaConfig) GetNumQueues() int32

GetNumQueues returns the NumQueues field value

func (*VdpaConfig) GetNumQueuesOk

func (o *VdpaConfig) GetNumQueuesOk() (*int32, bool)

GetNumQueuesOk returns a tuple with the NumQueues field value and a boolean to check if the value has been set.

func (*VdpaConfig) GetPath

func (o *VdpaConfig) GetPath() string

GetPath returns the Path field value

func (*VdpaConfig) GetPathOk

func (o *VdpaConfig) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*VdpaConfig) GetPciSegment

func (o *VdpaConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*VdpaConfig) GetPciSegmentOk

func (o *VdpaConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VdpaConfig) HasId

func (o *VdpaConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*VdpaConfig) HasIommu

func (o *VdpaConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*VdpaConfig) HasPciSegment

func (o *VdpaConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (VdpaConfig) MarshalJSON

func (o VdpaConfig) MarshalJSON() ([]byte, error)

func (*VdpaConfig) SetId

func (o *VdpaConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*VdpaConfig) SetIommu

func (o *VdpaConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*VdpaConfig) SetNumQueues

func (o *VdpaConfig) SetNumQueues(v int32)

SetNumQueues sets field value

func (*VdpaConfig) SetPath

func (o *VdpaConfig) SetPath(v string)

SetPath sets field value

func (*VdpaConfig) SetPciSegment

func (o *VdpaConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

type VmConfig

type VmConfig struct {
	Cpus     *CpusConfig     `json:"cpus,omitempty"`
	Memory   *MemoryConfig   `json:"memory,omitempty"`
	Payload  PayloadConfig   `json:"payload"`
	Disks    *[]DiskConfig   `json:"disks,omitempty"`
	Net      *[]NetConfig    `json:"net,omitempty"`
	Rng      *RngConfig      `json:"rng,omitempty"`
	Balloon  *BalloonConfig  `json:"balloon,omitempty"`
	Fs       *[]FsConfig     `json:"fs,omitempty"`
	Pmem     *[]PmemConfig   `json:"pmem,omitempty"`
	Serial   *ConsoleConfig  `json:"serial,omitempty"`
	Console  *ConsoleConfig  `json:"console,omitempty"`
	Devices  *[]DeviceConfig `json:"devices,omitempty"`
	Vdpa     *[]VdpaConfig   `json:"vdpa,omitempty"`
	Vsock    *VsockConfig    `json:"vsock,omitempty"`
	SgxEpc   *[]SgxEpcConfig `json:"sgx_epc,omitempty"`
	Numa     *[]NumaConfig   `json:"numa,omitempty"`
	Iommu    *bool           `json:"iommu,omitempty"`
	Watchdog *bool           `json:"watchdog,omitempty"`
	Platform *PlatformConfig `json:"platform,omitempty"`
	Tpm      *TpmConfig      `json:"tpm,omitempty"`
}

VmConfig Virtual machine configuration

func 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

func 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

func (*VmConfig) GetBalloon

func (o *VmConfig) GetBalloon() BalloonConfig

GetBalloon returns the Balloon field value if set, zero value otherwise.

func (*VmConfig) GetBalloonOk

func (o *VmConfig) GetBalloonOk() (*BalloonConfig, bool)

GetBalloonOk returns a tuple with the Balloon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetConsole

func (o *VmConfig) GetConsole() ConsoleConfig

GetConsole returns the Console field value if set, zero value otherwise.

func (*VmConfig) GetConsoleOk

func (o *VmConfig) GetConsoleOk() (*ConsoleConfig, bool)

GetConsoleOk returns a tuple with the Console field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetCpus

func (o *VmConfig) GetCpus() CpusConfig

GetCpus returns the Cpus field value if set, zero value otherwise.

func (*VmConfig) GetCpusOk

func (o *VmConfig) GetCpusOk() (*CpusConfig, bool)

GetCpusOk returns a tuple with the Cpus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetDevices

func (o *VmConfig) GetDevices() []DeviceConfig

GetDevices returns the Devices field value if set, zero value otherwise.

func (*VmConfig) GetDevicesOk

func (o *VmConfig) GetDevicesOk() (*[]DeviceConfig, bool)

GetDevicesOk returns a tuple with the Devices field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetDisks

func (o *VmConfig) GetDisks() []DiskConfig

GetDisks returns the Disks field value if set, zero value otherwise.

func (*VmConfig) GetDisksOk

func (o *VmConfig) GetDisksOk() (*[]DiskConfig, bool)

GetDisksOk returns a tuple with the Disks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetFs

func (o *VmConfig) GetFs() []FsConfig

GetFs returns the Fs field value if set, zero value otherwise.

func (*VmConfig) GetFsOk

func (o *VmConfig) GetFsOk() (*[]FsConfig, bool)

GetFsOk returns a tuple with the Fs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetIommu

func (o *VmConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*VmConfig) GetIommuOk

func (o *VmConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetMemory

func (o *VmConfig) GetMemory() MemoryConfig

GetMemory returns the Memory field value if set, zero value otherwise.

func (*VmConfig) GetMemoryOk

func (o *VmConfig) GetMemoryOk() (*MemoryConfig, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetNet

func (o *VmConfig) GetNet() []NetConfig

GetNet returns the Net field value if set, zero value otherwise.

func (*VmConfig) GetNetOk

func (o *VmConfig) GetNetOk() (*[]NetConfig, bool)

GetNetOk returns a tuple with the Net field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetNuma

func (o *VmConfig) GetNuma() []NumaConfig

GetNuma returns the Numa field value if set, zero value otherwise.

func (*VmConfig) GetNumaOk

func (o *VmConfig) GetNumaOk() (*[]NumaConfig, bool)

GetNumaOk returns a tuple with the Numa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetPayload

func (o *VmConfig) GetPayload() PayloadConfig

GetPayload returns the Payload field value

func (*VmConfig) GetPayloadOk

func (o *VmConfig) GetPayloadOk() (*PayloadConfig, bool)

GetPayloadOk returns a tuple with the Payload field value and a boolean to check if the value has been set.

func (*VmConfig) GetPlatform

func (o *VmConfig) GetPlatform() PlatformConfig

GetPlatform returns the Platform field value if set, zero value otherwise.

func (*VmConfig) GetPlatformOk

func (o *VmConfig) GetPlatformOk() (*PlatformConfig, bool)

GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetPmem

func (o *VmConfig) GetPmem() []PmemConfig

GetPmem returns the Pmem field value if set, zero value otherwise.

func (*VmConfig) GetPmemOk

func (o *VmConfig) GetPmemOk() (*[]PmemConfig, bool)

GetPmemOk returns a tuple with the Pmem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetRng

func (o *VmConfig) GetRng() RngConfig

GetRng returns the Rng field value if set, zero value otherwise.

func (*VmConfig) GetRngOk

func (o *VmConfig) GetRngOk() (*RngConfig, bool)

GetRngOk returns a tuple with the Rng field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetSerial

func (o *VmConfig) GetSerial() ConsoleConfig

GetSerial returns the Serial field value if set, zero value otherwise.

func (*VmConfig) GetSerialOk

func (o *VmConfig) GetSerialOk() (*ConsoleConfig, bool)

GetSerialOk returns a tuple with the Serial field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetSgxEpc

func (o *VmConfig) GetSgxEpc() []SgxEpcConfig

GetSgxEpc returns the SgxEpc field value if set, zero value otherwise.

func (*VmConfig) GetSgxEpcOk

func (o *VmConfig) GetSgxEpcOk() (*[]SgxEpcConfig, bool)

GetSgxEpcOk returns a tuple with the SgxEpc field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetTpm

func (o *VmConfig) GetTpm() TpmConfig

GetTpm returns the Tpm field value if set, zero value otherwise.

func (*VmConfig) GetTpmOk

func (o *VmConfig) GetTpmOk() (*TpmConfig, bool)

GetTpmOk returns a tuple with the Tpm field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetVdpa

func (o *VmConfig) GetVdpa() []VdpaConfig

GetVdpa returns the Vdpa field value if set, zero value otherwise.

func (*VmConfig) GetVdpaOk

func (o *VmConfig) GetVdpaOk() (*[]VdpaConfig, bool)

GetVdpaOk returns a tuple with the Vdpa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetVsock

func (o *VmConfig) GetVsock() VsockConfig

GetVsock returns the Vsock field value if set, zero value otherwise.

func (*VmConfig) GetVsockOk

func (o *VmConfig) GetVsockOk() (*VsockConfig, bool)

GetVsockOk returns a tuple with the Vsock field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) GetWatchdog

func (o *VmConfig) GetWatchdog() bool

GetWatchdog returns the Watchdog field value if set, zero value otherwise.

func (*VmConfig) GetWatchdogOk

func (o *VmConfig) GetWatchdogOk() (*bool, bool)

GetWatchdogOk returns a tuple with the Watchdog field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmConfig) HasBalloon

func (o *VmConfig) HasBalloon() bool

HasBalloon returns a boolean if a field has been set.

func (*VmConfig) HasConsole

func (o *VmConfig) HasConsole() bool

HasConsole returns a boolean if a field has been set.

func (*VmConfig) HasCpus

func (o *VmConfig) HasCpus() bool

HasCpus returns a boolean if a field has been set.

func (*VmConfig) HasDevices

func (o *VmConfig) HasDevices() bool

HasDevices returns a boolean if a field has been set.

func (*VmConfig) HasDisks

func (o *VmConfig) HasDisks() bool

HasDisks returns a boolean if a field has been set.

func (*VmConfig) HasFs

func (o *VmConfig) HasFs() bool

HasFs returns a boolean if a field has been set.

func (*VmConfig) HasIommu

func (o *VmConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*VmConfig) HasMemory

func (o *VmConfig) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*VmConfig) HasNet

func (o *VmConfig) HasNet() bool

HasNet returns a boolean if a field has been set.

func (*VmConfig) HasNuma

func (o *VmConfig) HasNuma() bool

HasNuma returns a boolean if a field has been set.

func (*VmConfig) HasPlatform

func (o *VmConfig) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

func (*VmConfig) HasPmem

func (o *VmConfig) HasPmem() bool

HasPmem returns a boolean if a field has been set.

func (*VmConfig) HasRng

func (o *VmConfig) HasRng() bool

HasRng returns a boolean if a field has been set.

func (*VmConfig) HasSerial

func (o *VmConfig) HasSerial() bool

HasSerial returns a boolean if a field has been set.

func (*VmConfig) HasSgxEpc

func (o *VmConfig) HasSgxEpc() bool

HasSgxEpc returns a boolean if a field has been set.

func (*VmConfig) HasTpm

func (o *VmConfig) HasTpm() bool

HasTpm returns a boolean if a field has been set.

func (*VmConfig) HasVdpa

func (o *VmConfig) HasVdpa() bool

HasVdpa returns a boolean if a field has been set.

func (*VmConfig) HasVsock

func (o *VmConfig) HasVsock() bool

HasVsock returns a boolean if a field has been set.

func (*VmConfig) HasWatchdog

func (o *VmConfig) HasWatchdog() bool

HasWatchdog returns a boolean if a field has been set.

func (VmConfig) MarshalJSON

func (o VmConfig) MarshalJSON() ([]byte, error)

func (*VmConfig) SetBalloon

func (o *VmConfig) SetBalloon(v BalloonConfig)

SetBalloon gets a reference to the given BalloonConfig and assigns it to the Balloon field.

func (*VmConfig) SetConsole

func (o *VmConfig) SetConsole(v ConsoleConfig)

SetConsole gets a reference to the given ConsoleConfig and assigns it to the Console field.

func (*VmConfig) SetCpus

func (o *VmConfig) SetCpus(v CpusConfig)

SetCpus gets a reference to the given CpusConfig and assigns it to the Cpus field.

func (*VmConfig) SetDevices

func (o *VmConfig) SetDevices(v []DeviceConfig)

SetDevices gets a reference to the given []DeviceConfig and assigns it to the Devices field.

func (*VmConfig) SetDisks

func (o *VmConfig) SetDisks(v []DiskConfig)

SetDisks gets a reference to the given []DiskConfig and assigns it to the Disks field.

func (*VmConfig) SetFs

func (o *VmConfig) SetFs(v []FsConfig)

SetFs gets a reference to the given []FsConfig and assigns it to the Fs field.

func (*VmConfig) SetIommu

func (o *VmConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*VmConfig) SetMemory

func (o *VmConfig) SetMemory(v MemoryConfig)

SetMemory gets a reference to the given MemoryConfig and assigns it to the Memory field.

func (*VmConfig) SetNet

func (o *VmConfig) SetNet(v []NetConfig)

SetNet gets a reference to the given []NetConfig and assigns it to the Net field.

func (*VmConfig) SetNuma

func (o *VmConfig) SetNuma(v []NumaConfig)

SetNuma gets a reference to the given []NumaConfig and assigns it to the Numa field.

func (*VmConfig) SetPayload

func (o *VmConfig) SetPayload(v PayloadConfig)

SetPayload sets field value

func (*VmConfig) SetPlatform

func (o *VmConfig) SetPlatform(v PlatformConfig)

SetPlatform gets a reference to the given PlatformConfig and assigns it to the Platform field.

func (*VmConfig) SetPmem

func (o *VmConfig) SetPmem(v []PmemConfig)

SetPmem gets a reference to the given []PmemConfig and assigns it to the Pmem field.

func (*VmConfig) SetRng

func (o *VmConfig) SetRng(v RngConfig)

SetRng gets a reference to the given RngConfig and assigns it to the Rng field.

func (*VmConfig) SetSerial

func (o *VmConfig) SetSerial(v ConsoleConfig)

SetSerial gets a reference to the given ConsoleConfig and assigns it to the Serial field.

func (*VmConfig) SetSgxEpc

func (o *VmConfig) SetSgxEpc(v []SgxEpcConfig)

SetSgxEpc gets a reference to the given []SgxEpcConfig and assigns it to the SgxEpc field.

func (*VmConfig) SetTpm

func (o *VmConfig) SetTpm(v TpmConfig)

SetTpm gets a reference to the given TpmConfig and assigns it to the Tpm field.

func (*VmConfig) SetVdpa

func (o *VmConfig) SetVdpa(v []VdpaConfig)

SetVdpa gets a reference to the given []VdpaConfig and assigns it to the Vdpa field.

func (*VmConfig) SetVsock

func (o *VmConfig) SetVsock(v VsockConfig)

SetVsock gets a reference to the given VsockConfig and assigns it to the Vsock field.

func (*VmConfig) SetWatchdog

func (o *VmConfig) SetWatchdog(v bool)

SetWatchdog gets a reference to the given bool and assigns it to the Watchdog field.

type VmCoredumpData

type VmCoredumpData struct {
	DestinationUrl *string `json:"destination_url,omitempty"`
}

VmCoredumpData struct for VmCoredumpData

func NewVmCoredumpData

func NewVmCoredumpData() *VmCoredumpData

NewVmCoredumpData instantiates a new VmCoredumpData 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

func NewVmCoredumpDataWithDefaults

func NewVmCoredumpDataWithDefaults() *VmCoredumpData

NewVmCoredumpDataWithDefaults instantiates a new VmCoredumpData 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

func (*VmCoredumpData) GetDestinationUrl

func (o *VmCoredumpData) GetDestinationUrl() string

GetDestinationUrl returns the DestinationUrl field value if set, zero value otherwise.

func (*VmCoredumpData) GetDestinationUrlOk

func (o *VmCoredumpData) GetDestinationUrlOk() (*string, bool)

GetDestinationUrlOk returns a tuple with the DestinationUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmCoredumpData) HasDestinationUrl

func (o *VmCoredumpData) HasDestinationUrl() bool

HasDestinationUrl returns a boolean if a field has been set.

func (VmCoredumpData) MarshalJSON

func (o VmCoredumpData) MarshalJSON() ([]byte, error)

func (*VmCoredumpData) SetDestinationUrl

func (o *VmCoredumpData) SetDestinationUrl(v string)

SetDestinationUrl gets a reference to the given string and assigns it to the DestinationUrl field.

type VmInfo

type VmInfo struct {
	Config           VmConfig               `json:"config"`
	State            string                 `json:"state"`
	MemoryActualSize *int64                 `json:"memory_actual_size,omitempty"`
	DeviceTree       *map[string]DeviceNode `json:"device_tree,omitempty"`
}

VmInfo Virtual Machine information

func NewVmInfo

func NewVmInfo(config VmConfig, state string) *VmInfo

NewVmInfo instantiates a new VmInfo 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

func NewVmInfoWithDefaults

func NewVmInfoWithDefaults() *VmInfo

NewVmInfoWithDefaults instantiates a new VmInfo 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

func (*VmInfo) GetConfig

func (o *VmInfo) GetConfig() VmConfig

GetConfig returns the Config field value

func (*VmInfo) GetConfigOk

func (o *VmInfo) GetConfigOk() (*VmConfig, bool)

GetConfigOk returns a tuple with the Config field value and a boolean to check if the value has been set.

func (*VmInfo) GetDeviceTree

func (o *VmInfo) GetDeviceTree() map[string]DeviceNode

GetDeviceTree returns the DeviceTree field value if set, zero value otherwise.

func (*VmInfo) GetDeviceTreeOk

func (o *VmInfo) GetDeviceTreeOk() (*map[string]DeviceNode, bool)

GetDeviceTreeOk returns a tuple with the DeviceTree field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmInfo) GetMemoryActualSize

func (o *VmInfo) GetMemoryActualSize() int64

GetMemoryActualSize returns the MemoryActualSize field value if set, zero value otherwise.

func (*VmInfo) GetMemoryActualSizeOk

func (o *VmInfo) GetMemoryActualSizeOk() (*int64, bool)

GetMemoryActualSizeOk returns a tuple with the MemoryActualSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmInfo) GetState

func (o *VmInfo) GetState() string

GetState returns the State field value

func (*VmInfo) GetStateOk

func (o *VmInfo) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*VmInfo) HasDeviceTree

func (o *VmInfo) HasDeviceTree() bool

HasDeviceTree returns a boolean if a field has been set.

func (*VmInfo) HasMemoryActualSize

func (o *VmInfo) HasMemoryActualSize() bool

HasMemoryActualSize returns a boolean if a field has been set.

func (VmInfo) MarshalJSON

func (o VmInfo) MarshalJSON() ([]byte, error)

func (*VmInfo) SetConfig

func (o *VmInfo) SetConfig(v VmConfig)

SetConfig sets field value

func (*VmInfo) SetDeviceTree

func (o *VmInfo) SetDeviceTree(v map[string]DeviceNode)

SetDeviceTree gets a reference to the given map[string]DeviceNode and assigns it to the DeviceTree field.

func (*VmInfo) SetMemoryActualSize

func (o *VmInfo) SetMemoryActualSize(v int64)

SetMemoryActualSize gets a reference to the given int64 and assigns it to the MemoryActualSize field.

func (*VmInfo) SetState

func (o *VmInfo) SetState(v string)

SetState sets field value

type VmRemoveDevice

type VmRemoveDevice struct {
	Id *string `json:"id,omitempty"`
}

VmRemoveDevice struct for VmRemoveDevice

func NewVmRemoveDevice

func NewVmRemoveDevice() *VmRemoveDevice

NewVmRemoveDevice instantiates a new VmRemoveDevice 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

func NewVmRemoveDeviceWithDefaults

func NewVmRemoveDeviceWithDefaults() *VmRemoveDevice

NewVmRemoveDeviceWithDefaults instantiates a new VmRemoveDevice 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

func (*VmRemoveDevice) GetId

func (o *VmRemoveDevice) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*VmRemoveDevice) GetIdOk

func (o *VmRemoveDevice) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmRemoveDevice) HasId

func (o *VmRemoveDevice) HasId() bool

HasId returns a boolean if a field has been set.

func (VmRemoveDevice) MarshalJSON

func (o VmRemoveDevice) MarshalJSON() ([]byte, error)

func (*VmRemoveDevice) SetId

func (o *VmRemoveDevice) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

type VmResize

type VmResize struct {
	DesiredVcpus *int32 `json:"desired_vcpus,omitempty"`
	// desired memory ram in bytes
	DesiredRam *int64 `json:"desired_ram,omitempty"`
	// desired balloon size in bytes
	DesiredBalloon *int64 `json:"desired_balloon,omitempty"`
}

VmResize struct for VmResize

func NewVmResize

func NewVmResize() *VmResize

NewVmResize instantiates a new VmResize 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

func NewVmResizeWithDefaults

func NewVmResizeWithDefaults() *VmResize

NewVmResizeWithDefaults instantiates a new VmResize 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

func (*VmResize) GetDesiredBalloon

func (o *VmResize) GetDesiredBalloon() int64

GetDesiredBalloon returns the DesiredBalloon field value if set, zero value otherwise.

func (*VmResize) GetDesiredBalloonOk

func (o *VmResize) GetDesiredBalloonOk() (*int64, bool)

GetDesiredBalloonOk returns a tuple with the DesiredBalloon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmResize) GetDesiredRam

func (o *VmResize) GetDesiredRam() int64

GetDesiredRam returns the DesiredRam field value if set, zero value otherwise.

func (*VmResize) GetDesiredRamOk

func (o *VmResize) GetDesiredRamOk() (*int64, bool)

GetDesiredRamOk returns a tuple with the DesiredRam field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmResize) GetDesiredVcpus

func (o *VmResize) GetDesiredVcpus() int32

GetDesiredVcpus returns the DesiredVcpus field value if set, zero value otherwise.

func (*VmResize) GetDesiredVcpusOk

func (o *VmResize) GetDesiredVcpusOk() (*int32, bool)

GetDesiredVcpusOk returns a tuple with the DesiredVcpus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmResize) HasDesiredBalloon

func (o *VmResize) HasDesiredBalloon() bool

HasDesiredBalloon returns a boolean if a field has been set.

func (*VmResize) HasDesiredRam

func (o *VmResize) HasDesiredRam() bool

HasDesiredRam returns a boolean if a field has been set.

func (*VmResize) HasDesiredVcpus

func (o *VmResize) HasDesiredVcpus() bool

HasDesiredVcpus returns a boolean if a field has been set.

func (VmResize) MarshalJSON

func (o VmResize) MarshalJSON() ([]byte, error)

func (*VmResize) SetDesiredBalloon

func (o *VmResize) SetDesiredBalloon(v int64)

SetDesiredBalloon gets a reference to the given int64 and assigns it to the DesiredBalloon field.

func (*VmResize) SetDesiredRam

func (o *VmResize) SetDesiredRam(v int64)

SetDesiredRam gets a reference to the given int64 and assigns it to the DesiredRam field.

func (*VmResize) SetDesiredVcpus

func (o *VmResize) SetDesiredVcpus(v int32)

SetDesiredVcpus gets a reference to the given int32 and assigns it to the DesiredVcpus field.

type VmResizeZone

type VmResizeZone struct {
	Id *string `json:"id,omitempty"`
	// desired memory zone size in bytes
	DesiredRam *int64 `json:"desired_ram,omitempty"`
}

VmResizeZone struct for VmResizeZone

func NewVmResizeZone

func NewVmResizeZone() *VmResizeZone

NewVmResizeZone instantiates a new VmResizeZone 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

func NewVmResizeZoneWithDefaults

func NewVmResizeZoneWithDefaults() *VmResizeZone

NewVmResizeZoneWithDefaults instantiates a new VmResizeZone 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

func (*VmResizeZone) GetDesiredRam

func (o *VmResizeZone) GetDesiredRam() int64

GetDesiredRam returns the DesiredRam field value if set, zero value otherwise.

func (*VmResizeZone) GetDesiredRamOk

func (o *VmResizeZone) GetDesiredRamOk() (*int64, bool)

GetDesiredRamOk returns a tuple with the DesiredRam field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmResizeZone) GetId

func (o *VmResizeZone) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*VmResizeZone) GetIdOk

func (o *VmResizeZone) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmResizeZone) HasDesiredRam

func (o *VmResizeZone) HasDesiredRam() bool

HasDesiredRam returns a boolean if a field has been set.

func (*VmResizeZone) HasId

func (o *VmResizeZone) HasId() bool

HasId returns a boolean if a field has been set.

func (VmResizeZone) MarshalJSON

func (o VmResizeZone) MarshalJSON() ([]byte, error)

func (*VmResizeZone) SetDesiredRam

func (o *VmResizeZone) SetDesiredRam(v int64)

SetDesiredRam gets a reference to the given int64 and assigns it to the DesiredRam field.

func (*VmResizeZone) SetId

func (o *VmResizeZone) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

type VmSnapshotConfig

type VmSnapshotConfig struct {
	DestinationUrl *string `json:"destination_url,omitempty"`
}

VmSnapshotConfig struct for VmSnapshotConfig

func NewVmSnapshotConfig

func NewVmSnapshotConfig() *VmSnapshotConfig

NewVmSnapshotConfig instantiates a new VmSnapshotConfig 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

func NewVmSnapshotConfigWithDefaults

func NewVmSnapshotConfigWithDefaults() *VmSnapshotConfig

NewVmSnapshotConfigWithDefaults instantiates a new VmSnapshotConfig 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

func (*VmSnapshotConfig) GetDestinationUrl

func (o *VmSnapshotConfig) GetDestinationUrl() string

GetDestinationUrl returns the DestinationUrl field value if set, zero value otherwise.

func (*VmSnapshotConfig) GetDestinationUrlOk

func (o *VmSnapshotConfig) GetDestinationUrlOk() (*string, bool)

GetDestinationUrlOk returns a tuple with the DestinationUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmSnapshotConfig) HasDestinationUrl

func (o *VmSnapshotConfig) HasDestinationUrl() bool

HasDestinationUrl returns a boolean if a field has been set.

func (VmSnapshotConfig) MarshalJSON

func (o VmSnapshotConfig) MarshalJSON() ([]byte, error)

func (*VmSnapshotConfig) SetDestinationUrl

func (o *VmSnapshotConfig) SetDestinationUrl(v string)

SetDestinationUrl gets a reference to the given string and assigns it to the DestinationUrl field.

type VmmPingResponse

type VmmPingResponse struct {
	BuildVersion *string   `json:"build_version,omitempty"`
	Version      string    `json:"version"`
	Pid          *int64    `json:"pid,omitempty"`
	Features     *[]string `json:"features,omitempty"`
}

VmmPingResponse Virtual Machine Monitor information

func NewVmmPingResponse

func NewVmmPingResponse(version string) *VmmPingResponse

NewVmmPingResponse instantiates a new VmmPingResponse 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

func NewVmmPingResponseWithDefaults

func NewVmmPingResponseWithDefaults() *VmmPingResponse

NewVmmPingResponseWithDefaults instantiates a new VmmPingResponse 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

func (*VmmPingResponse) GetBuildVersion

func (o *VmmPingResponse) GetBuildVersion() string

GetBuildVersion returns the BuildVersion field value if set, zero value otherwise.

func (*VmmPingResponse) GetBuildVersionOk

func (o *VmmPingResponse) GetBuildVersionOk() (*string, bool)

GetBuildVersionOk returns a tuple with the BuildVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmmPingResponse) GetFeatures

func (o *VmmPingResponse) GetFeatures() []string

GetFeatures returns the Features field value if set, zero value otherwise.

func (*VmmPingResponse) GetFeaturesOk

func (o *VmmPingResponse) GetFeaturesOk() (*[]string, bool)

GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmmPingResponse) GetPid

func (o *VmmPingResponse) GetPid() int64

GetPid returns the Pid field value if set, zero value otherwise.

func (*VmmPingResponse) GetPidOk

func (o *VmmPingResponse) GetPidOk() (*int64, bool)

GetPidOk returns a tuple with the Pid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VmmPingResponse) GetVersion

func (o *VmmPingResponse) GetVersion() string

GetVersion returns the Version field value

func (*VmmPingResponse) GetVersionOk

func (o *VmmPingResponse) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*VmmPingResponse) HasBuildVersion

func (o *VmmPingResponse) HasBuildVersion() bool

HasBuildVersion returns a boolean if a field has been set.

func (*VmmPingResponse) HasFeatures

func (o *VmmPingResponse) HasFeatures() bool

HasFeatures returns a boolean if a field has been set.

func (*VmmPingResponse) HasPid

func (o *VmmPingResponse) HasPid() bool

HasPid returns a boolean if a field has been set.

func (VmmPingResponse) MarshalJSON

func (o VmmPingResponse) MarshalJSON() ([]byte, error)

func (*VmmPingResponse) SetBuildVersion

func (o *VmmPingResponse) SetBuildVersion(v string)

SetBuildVersion gets a reference to the given string and assigns it to the BuildVersion field.

func (*VmmPingResponse) SetFeatures

func (o *VmmPingResponse) SetFeatures(v []string)

SetFeatures gets a reference to the given []string and assigns it to the Features field.

func (*VmmPingResponse) SetPid

func (o *VmmPingResponse) SetPid(v int64)

SetPid gets a reference to the given int64 and assigns it to the Pid field.

func (*VmmPingResponse) SetVersion

func (o *VmmPingResponse) SetVersion(v string)

SetVersion sets field value

type VsockConfig

type VsockConfig struct {
	// Guest Vsock CID
	Cid int64 `json:"cid"`
	// Path to UNIX domain socket, used to proxy vsock connections.
	Socket     string  `json:"socket"`
	Iommu      *bool   `json:"iommu,omitempty"`
	PciSegment *int32  `json:"pci_segment,omitempty"`
	Id         *string `json:"id,omitempty"`
}

VsockConfig struct for VsockConfig

func NewVsockConfig

func NewVsockConfig(cid int64, socket string) *VsockConfig

NewVsockConfig instantiates a new VsockConfig 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

func NewVsockConfigWithDefaults

func NewVsockConfigWithDefaults() *VsockConfig

NewVsockConfigWithDefaults instantiates a new VsockConfig 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

func (*VsockConfig) GetCid

func (o *VsockConfig) GetCid() int64

GetCid returns the Cid field value

func (*VsockConfig) GetCidOk

func (o *VsockConfig) GetCidOk() (*int64, bool)

GetCidOk returns a tuple with the Cid field value and a boolean to check if the value has been set.

func (*VsockConfig) GetId

func (o *VsockConfig) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*VsockConfig) GetIdOk

func (o *VsockConfig) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VsockConfig) GetIommu

func (o *VsockConfig) GetIommu() bool

GetIommu returns the Iommu field value if set, zero value otherwise.

func (*VsockConfig) GetIommuOk

func (o *VsockConfig) GetIommuOk() (*bool, bool)

GetIommuOk returns a tuple with the Iommu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VsockConfig) GetPciSegment

func (o *VsockConfig) GetPciSegment() int32

GetPciSegment returns the PciSegment field value if set, zero value otherwise.

func (*VsockConfig) GetPciSegmentOk

func (o *VsockConfig) GetPciSegmentOk() (*int32, bool)

GetPciSegmentOk returns a tuple with the PciSegment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VsockConfig) GetSocket

func (o *VsockConfig) GetSocket() string

GetSocket returns the Socket field value

func (*VsockConfig) GetSocketOk

func (o *VsockConfig) GetSocketOk() (*string, bool)

GetSocketOk returns a tuple with the Socket field value and a boolean to check if the value has been set.

func (*VsockConfig) HasId

func (o *VsockConfig) HasId() bool

HasId returns a boolean if a field has been set.

func (*VsockConfig) HasIommu

func (o *VsockConfig) HasIommu() bool

HasIommu returns a boolean if a field has been set.

func (*VsockConfig) HasPciSegment

func (o *VsockConfig) HasPciSegment() bool

HasPciSegment returns a boolean if a field has been set.

func (VsockConfig) MarshalJSON

func (o VsockConfig) MarshalJSON() ([]byte, error)

func (*VsockConfig) SetCid

func (o *VsockConfig) SetCid(v int64)

SetCid sets field value

func (*VsockConfig) SetId

func (o *VsockConfig) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*VsockConfig) SetIommu

func (o *VsockConfig) SetIommu(v bool)

SetIommu gets a reference to the given bool and assigns it to the Iommu field.

func (*VsockConfig) SetPciSegment

func (o *VsockConfig) SetPciSegment(v int32)

SetPciSegment gets a reference to the given int32 and assigns it to the PciSegment field.

func (*VsockConfig) SetSocket

func (o *VsockConfig) SetSocket(v string)

SetSocket sets field value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL