mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
virtcontainers: clh: Re-generate the client code
This patch re-generates the client code for Cloud Hypervisor v19.0. Note: The client code of cloud-hypervisor's (CLH) OpenAPI is automatically generated by openapi-generator [1-2]. [1] https://github.com/OpenAPITools/openapi-generator [2] https://github.com/kata-containers/kata-containers/blob/main/src/runtime/virtcontainers/pkg/cloud-hypervisor/README.md Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
8296754e07
commit
8030b6caf0
@ -358,6 +358,7 @@ components:
|
|||||||
hugepages: false
|
hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 4
|
hugepage_size: 4
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
size: 9
|
size: 9
|
||||||
hotplugged_size: 2
|
hotplugged_size: 2
|
||||||
@ -365,6 +366,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -375,6 +377,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -663,6 +666,7 @@ components:
|
|||||||
hugepages: false
|
hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 4
|
hugepage_size: 4
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
size: 9
|
size: 9
|
||||||
hotplugged_size: 2
|
hotplugged_size: 2
|
||||||
@ -670,6 +674,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -680,6 +685,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -983,6 +989,7 @@ components:
|
|||||||
hugepages: false
|
hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -1019,6 +1026,9 @@ components:
|
|||||||
hotplugged_size:
|
hotplugged_size:
|
||||||
format: int64
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
|
prefault:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
- size
|
- size
|
||||||
@ -1028,6 +1038,7 @@ components:
|
|||||||
hugepages: false
|
hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 4
|
hugepage_size: 4
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
size: 9
|
size: 9
|
||||||
hotplugged_size: 2
|
hotplugged_size: 2
|
||||||
@ -1035,6 +1046,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -1045,6 +1057,7 @@ components:
|
|||||||
- hugepages: false
|
- hugepages: false
|
||||||
shared: false
|
shared: false
|
||||||
hugepage_size: 1
|
hugepage_size: 1
|
||||||
|
prefault: false
|
||||||
mergeable: false
|
mergeable: false
|
||||||
file: file
|
file: file
|
||||||
size: 7
|
size: 7
|
||||||
@ -1079,6 +1092,9 @@ components:
|
|||||||
hugepage_size:
|
hugepage_size:
|
||||||
format: int64
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
|
prefault:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
zones:
|
zones:
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/MemoryZoneConfig'
|
$ref: '#/components/schemas/MemoryZoneConfig'
|
||||||
|
@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|||||||
**Shared** | Pointer to **bool** | | [optional] [default to false]
|
**Shared** | Pointer to **bool** | | [optional] [default to false]
|
||||||
**Hugepages** | Pointer to **bool** | | [optional] [default to false]
|
**Hugepages** | Pointer to **bool** | | [optional] [default to false]
|
||||||
**HugepageSize** | Pointer to **int64** | | [optional]
|
**HugepageSize** | Pointer to **int64** | | [optional]
|
||||||
|
**Prefault** | Pointer to **bool** | | [optional] [default to false]
|
||||||
**Zones** | Pointer to [**[]MemoryZoneConfig**](MemoryZoneConfig.md) | | [optional]
|
**Zones** | Pointer to [**[]MemoryZoneConfig**](MemoryZoneConfig.md) | | [optional]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
@ -228,6 +229,31 @@ SetHugepageSize sets HugepageSize field to given value.
|
|||||||
|
|
||||||
HasHugepageSize returns a boolean if a field has been set.
|
HasHugepageSize returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
### GetPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryConfig) GetPrefault() bool`
|
||||||
|
|
||||||
|
GetPrefault returns the Prefault field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetPrefaultOk
|
||||||
|
|
||||||
|
`func (o *MemoryConfig) GetPrefaultOk() (*bool, bool)`
|
||||||
|
|
||||||
|
GetPrefaultOk returns a tuple with the Prefault field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryConfig) SetPrefault(v bool)`
|
||||||
|
|
||||||
|
SetPrefault sets Prefault field to given value.
|
||||||
|
|
||||||
|
### HasPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryConfig) HasPrefault() bool`
|
||||||
|
|
||||||
|
HasPrefault returns a boolean if a field has been set.
|
||||||
|
|
||||||
### GetZones
|
### GetZones
|
||||||
|
|
||||||
`func (o *MemoryConfig) GetZones() []MemoryZoneConfig`
|
`func (o *MemoryConfig) GetZones() []MemoryZoneConfig`
|
||||||
|
@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|||||||
**HostNumaNode** | Pointer to **int32** | | [optional]
|
**HostNumaNode** | Pointer to **int32** | | [optional]
|
||||||
**HotplugSize** | Pointer to **int64** | | [optional]
|
**HotplugSize** | Pointer to **int64** | | [optional]
|
||||||
**HotpluggedSize** | Pointer to **int64** | | [optional]
|
**HotpluggedSize** | Pointer to **int64** | | [optional]
|
||||||
|
**Prefault** | Pointer to **bool** | | [optional] [default to false]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@ -274,6 +275,31 @@ SetHotpluggedSize sets HotpluggedSize field to given value.
|
|||||||
|
|
||||||
HasHotpluggedSize returns a boolean if a field has been set.
|
HasHotpluggedSize returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
### GetPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryZoneConfig) GetPrefault() bool`
|
||||||
|
|
||||||
|
GetPrefault returns the Prefault field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetPrefaultOk
|
||||||
|
|
||||||
|
`func (o *MemoryZoneConfig) GetPrefaultOk() (*bool, bool)`
|
||||||
|
|
||||||
|
GetPrefaultOk returns a tuple with the Prefault field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryZoneConfig) SetPrefault(v bool)`
|
||||||
|
|
||||||
|
SetPrefault sets Prefault field to given value.
|
||||||
|
|
||||||
|
### HasPrefault
|
||||||
|
|
||||||
|
`func (o *MemoryZoneConfig) HasPrefault() bool`
|
||||||
|
|
||||||
|
HasPrefault returns a boolean if a field has been set.
|
||||||
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ type MemoryConfig struct {
|
|||||||
Shared *bool `json:"shared,omitempty"`
|
Shared *bool `json:"shared,omitempty"`
|
||||||
Hugepages *bool `json:"hugepages,omitempty"`
|
Hugepages *bool `json:"hugepages,omitempty"`
|
||||||
HugepageSize *int64 `json:"hugepage_size,omitempty"`
|
HugepageSize *int64 `json:"hugepage_size,omitempty"`
|
||||||
|
Prefault *bool `json:"prefault,omitempty"`
|
||||||
Zones *[]MemoryZoneConfig `json:"zones,omitempty"`
|
Zones *[]MemoryZoneConfig `json:"zones,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,6 +43,8 @@ func NewMemoryConfig(size int64) *MemoryConfig {
|
|||||||
this.Shared = &shared
|
this.Shared = &shared
|
||||||
var hugepages bool = false
|
var hugepages bool = false
|
||||||
this.Hugepages = &hugepages
|
this.Hugepages = &hugepages
|
||||||
|
var prefault bool = false
|
||||||
|
this.Prefault = &prefault
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,6 +61,8 @@ func NewMemoryConfigWithDefaults() *MemoryConfig {
|
|||||||
this.Shared = &shared
|
this.Shared = &shared
|
||||||
var hugepages bool = false
|
var hugepages bool = false
|
||||||
this.Hugepages = &hugepages
|
this.Hugepages = &hugepages
|
||||||
|
var prefault bool = false
|
||||||
|
this.Prefault = &prefault
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,6 +314,38 @@ func (o *MemoryConfig) SetHugepageSize(v int64) {
|
|||||||
o.HugepageSize = &v
|
o.HugepageSize = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetPrefault returns the Prefault field value if set, zero value otherwise.
|
||||||
|
func (o *MemoryConfig) GetPrefault() bool {
|
||||||
|
if o == nil || o.Prefault == nil {
|
||||||
|
var ret bool
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Prefault
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 (o *MemoryConfig) GetPrefaultOk() (*bool, bool) {
|
||||||
|
if o == nil || o.Prefault == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Prefault, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasPrefault returns a boolean if a field has been set.
|
||||||
|
func (o *MemoryConfig) HasPrefault() bool {
|
||||||
|
if o != nil && o.Prefault != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetPrefault gets a reference to the given bool and assigns it to the Prefault field.
|
||||||
|
func (o *MemoryConfig) SetPrefault(v bool) {
|
||||||
|
o.Prefault = &v
|
||||||
|
}
|
||||||
|
|
||||||
// GetZones returns the Zones field value if set, zero value otherwise.
|
// GetZones returns the Zones field value if set, zero value otherwise.
|
||||||
func (o *MemoryConfig) GetZones() []MemoryZoneConfig {
|
func (o *MemoryConfig) GetZones() []MemoryZoneConfig {
|
||||||
if o == nil || o.Zones == nil {
|
if o == nil || o.Zones == nil {
|
||||||
@ -367,6 +404,9 @@ func (o MemoryConfig) MarshalJSON() ([]byte, error) {
|
|||||||
if o.HugepageSize != nil {
|
if o.HugepageSize != nil {
|
||||||
toSerialize["hugepage_size"] = o.HugepageSize
|
toSerialize["hugepage_size"] = o.HugepageSize
|
||||||
}
|
}
|
||||||
|
if o.Prefault != nil {
|
||||||
|
toSerialize["prefault"] = o.Prefault
|
||||||
|
}
|
||||||
if o.Zones != nil {
|
if o.Zones != nil {
|
||||||
toSerialize["zones"] = o.Zones
|
toSerialize["zones"] = o.Zones
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ type MemoryZoneConfig struct {
|
|||||||
HostNumaNode *int32 `json:"host_numa_node,omitempty"`
|
HostNumaNode *int32 `json:"host_numa_node,omitempty"`
|
||||||
HotplugSize *int64 `json:"hotplug_size,omitempty"`
|
HotplugSize *int64 `json:"hotplug_size,omitempty"`
|
||||||
HotpluggedSize *int64 `json:"hotplugged_size,omitempty"`
|
HotpluggedSize *int64 `json:"hotplugged_size,omitempty"`
|
||||||
|
Prefault *bool `json:"prefault,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMemoryZoneConfig instantiates a new MemoryZoneConfig object
|
// NewMemoryZoneConfig instantiates a new MemoryZoneConfig object
|
||||||
@ -42,6 +43,8 @@ func NewMemoryZoneConfig(id string, size int64) *MemoryZoneConfig {
|
|||||||
this.Shared = &shared
|
this.Shared = &shared
|
||||||
var hugepages bool = false
|
var hugepages bool = false
|
||||||
this.Hugepages = &hugepages
|
this.Hugepages = &hugepages
|
||||||
|
var prefault bool = false
|
||||||
|
this.Prefault = &prefault
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,6 +59,8 @@ func NewMemoryZoneConfigWithDefaults() *MemoryZoneConfig {
|
|||||||
this.Shared = &shared
|
this.Shared = &shared
|
||||||
var hugepages bool = false
|
var hugepages bool = false
|
||||||
this.Hugepages = &hugepages
|
this.Hugepages = &hugepages
|
||||||
|
var prefault bool = false
|
||||||
|
this.Prefault = &prefault
|
||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -363,6 +368,38 @@ func (o *MemoryZoneConfig) SetHotpluggedSize(v int64) {
|
|||||||
o.HotpluggedSize = &v
|
o.HotpluggedSize = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetPrefault returns the Prefault field value if set, zero value otherwise.
|
||||||
|
func (o *MemoryZoneConfig) GetPrefault() bool {
|
||||||
|
if o == nil || o.Prefault == nil {
|
||||||
|
var ret bool
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Prefault
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 (o *MemoryZoneConfig) GetPrefaultOk() (*bool, bool) {
|
||||||
|
if o == nil || o.Prefault == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Prefault, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasPrefault returns a boolean if a field has been set.
|
||||||
|
func (o *MemoryZoneConfig) HasPrefault() bool {
|
||||||
|
if o != nil && o.Prefault != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetPrefault gets a reference to the given bool and assigns it to the Prefault field.
|
||||||
|
func (o *MemoryZoneConfig) SetPrefault(v bool) {
|
||||||
|
o.Prefault = &v
|
||||||
|
}
|
||||||
|
|
||||||
func (o MemoryZoneConfig) MarshalJSON() ([]byte, error) {
|
func (o MemoryZoneConfig) MarshalJSON() ([]byte, error) {
|
||||||
toSerialize := map[string]interface{}{}
|
toSerialize := map[string]interface{}{}
|
||||||
if true {
|
if true {
|
||||||
@ -395,6 +432,9 @@ func (o MemoryZoneConfig) MarshalJSON() ([]byte, error) {
|
|||||||
if o.HotpluggedSize != nil {
|
if o.HotpluggedSize != nil {
|
||||||
toSerialize["hotplugged_size"] = o.HotpluggedSize
|
toSerialize["hotplugged_size"] = o.HotpluggedSize
|
||||||
}
|
}
|
||||||
|
if o.Prefault != nil {
|
||||||
|
toSerialize["prefault"] = o.Prefault
|
||||||
|
}
|
||||||
return json.Marshal(toSerialize)
|
return json.Marshal(toSerialize)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -546,6 +546,9 @@ components:
|
|||||||
hotplugged_size:
|
hotplugged_size:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
prefault:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
MemoryConfig:
|
MemoryConfig:
|
||||||
required:
|
required:
|
||||||
@ -577,6 +580,9 @@ components:
|
|||||||
hugepage_size:
|
hugepage_size:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
prefault:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
zones:
|
zones:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
Loading…
Reference in New Issue
Block a user