This patch re-generates the client code for Cloud Hypervisor v35.0. Note: The client code of cloud-hypervisor's OpenAPI is automatically generated by openapi-generator. Fixes: #8057 Signed-off-by: Bo Chen <chen.bo@intel.com>
8.4 KiB
DiskConfig
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Path | string | ||
| Readonly | Pointer to bool | [optional] [default to false] | |
| Direct | Pointer to bool | [optional] [default to false] | |
| Iommu | Pointer to bool | [optional] [default to false] | |
| NumQueues | Pointer to int32 | [optional] [default to 1] | |
| QueueSize | Pointer to int32 | [optional] [default to 128] | |
| VhostUser | Pointer to bool | [optional] [default to false] | |
| VhostSocket | Pointer to string | [optional] | |
| RateLimiterConfig | Pointer to RateLimiterConfig | [optional] | |
| PciSegment | Pointer to int32 | [optional] | |
| Id | Pointer to string | [optional] | |
| Serial | Pointer to string | [optional] |
Methods
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
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
GetPath
func (o *DiskConfig) GetPath() string
GetPath returns the Path field if non-nil, zero value otherwise.
GetPathOk
func (o *DiskConfig) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPath
func (o *DiskConfig) SetPath(v string)
SetPath sets Path field to given value.
GetReadonly
func (o *DiskConfig) GetReadonly() bool
GetReadonly returns the Readonly field if non-nil, zero value otherwise.
GetReadonlyOk
func (o *DiskConfig) GetReadonlyOk() (*bool, bool)
GetReadonlyOk returns a tuple with the Readonly field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetReadonly
func (o *DiskConfig) SetReadonly(v bool)
SetReadonly sets Readonly field to given value.
HasReadonly
func (o *DiskConfig) HasReadonly() bool
HasReadonly returns a boolean if a field has been set.
GetDirect
func (o *DiskConfig) GetDirect() bool
GetDirect returns the Direct field if non-nil, zero value otherwise.
GetDirectOk
func (o *DiskConfig) GetDirectOk() (*bool, bool)
GetDirectOk returns a tuple with the Direct field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDirect
func (o *DiskConfig) SetDirect(v bool)
SetDirect sets Direct field to given value.
HasDirect
func (o *DiskConfig) HasDirect() bool
HasDirect returns a boolean if a field has been set.
GetIommu
func (o *DiskConfig) GetIommu() bool
GetIommu returns the Iommu field if non-nil, zero value otherwise.
GetIommuOk
func (o *DiskConfig) GetIommuOk() (*bool, bool)
GetIommuOk returns a tuple with the Iommu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetIommu
func (o *DiskConfig) SetIommu(v bool)
SetIommu sets Iommu field to given value.
HasIommu
func (o *DiskConfig) HasIommu() bool
HasIommu returns a boolean if a field has been set.
GetNumQueues
func (o *DiskConfig) GetNumQueues() int32
GetNumQueues returns the NumQueues field if non-nil, zero value otherwise.
GetNumQueuesOk
func (o *DiskConfig) GetNumQueuesOk() (*int32, bool)
GetNumQueuesOk returns a tuple with the NumQueues field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetNumQueues
func (o *DiskConfig) SetNumQueues(v int32)
SetNumQueues sets NumQueues field to given value.
HasNumQueues
func (o *DiskConfig) HasNumQueues() bool
HasNumQueues returns a boolean if a field has been set.
GetQueueSize
func (o *DiskConfig) GetQueueSize() int32
GetQueueSize returns the QueueSize field if non-nil, zero value otherwise.
GetQueueSizeOk
func (o *DiskConfig) GetQueueSizeOk() (*int32, bool)
GetQueueSizeOk returns a tuple with the QueueSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetQueueSize
func (o *DiskConfig) SetQueueSize(v int32)
SetQueueSize sets QueueSize field to given value.
HasQueueSize
func (o *DiskConfig) HasQueueSize() bool
HasQueueSize returns a boolean if a field has been set.
GetVhostUser
func (o *DiskConfig) GetVhostUser() bool
GetVhostUser returns the VhostUser field if non-nil, zero value otherwise.
GetVhostUserOk
func (o *DiskConfig) GetVhostUserOk() (*bool, bool)
GetVhostUserOk returns a tuple with the VhostUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVhostUser
func (o *DiskConfig) SetVhostUser(v bool)
SetVhostUser sets VhostUser field to given value.
HasVhostUser
func (o *DiskConfig) HasVhostUser() bool
HasVhostUser returns a boolean if a field has been set.
GetVhostSocket
func (o *DiskConfig) GetVhostSocket() string
GetVhostSocket returns the VhostSocket field if non-nil, zero value otherwise.
GetVhostSocketOk
func (o *DiskConfig) GetVhostSocketOk() (*string, bool)
GetVhostSocketOk returns a tuple with the VhostSocket field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVhostSocket
func (o *DiskConfig) SetVhostSocket(v string)
SetVhostSocket sets VhostSocket field to given value.
HasVhostSocket
func (o *DiskConfig) HasVhostSocket() bool
HasVhostSocket returns a boolean if a field has been set.
GetRateLimiterConfig
func (o *DiskConfig) GetRateLimiterConfig() RateLimiterConfig
GetRateLimiterConfig returns the RateLimiterConfig field if non-nil, zero value otherwise.
GetRateLimiterConfigOk
func (o *DiskConfig) GetRateLimiterConfigOk() (*RateLimiterConfig, bool)
GetRateLimiterConfigOk returns a tuple with the RateLimiterConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRateLimiterConfig
func (o *DiskConfig) SetRateLimiterConfig(v RateLimiterConfig)
SetRateLimiterConfig sets RateLimiterConfig field to given value.
HasRateLimiterConfig
func (o *DiskConfig) HasRateLimiterConfig() bool
HasRateLimiterConfig returns a boolean if a field has been set.
GetPciSegment
func (o *DiskConfig) GetPciSegment() int32
GetPciSegment returns the PciSegment field if non-nil, zero value otherwise.
GetPciSegmentOk
func (o *DiskConfig) GetPciSegmentOk() (*int32, bool)
GetPciSegmentOk returns a tuple with the PciSegment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPciSegment
func (o *DiskConfig) SetPciSegment(v int32)
SetPciSegment sets PciSegment field to given value.
HasPciSegment
func (o *DiskConfig) HasPciSegment() bool
HasPciSegment returns a boolean if a field has been set.
GetId
func (o *DiskConfig) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *DiskConfig) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *DiskConfig) SetId(v string)
SetId sets Id field to given value.
HasId
func (o *DiskConfig) HasId() bool
HasId returns a boolean if a field has been set.
GetSerial
func (o *DiskConfig) GetSerial() string
GetSerial returns the Serial field if non-nil, zero value otherwise.
GetSerialOk
func (o *DiskConfig) GetSerialOk() (*string, bool)
GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSerial
func (o *DiskConfig) SetSerial(v string)
SetSerial sets Serial field to given value.
HasSerial
func (o *DiskConfig) HasSerial() bool
HasSerial returns a boolean if a field has been set.