mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
runtime: clh: Re-generate the client code
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>
This commit is contained in:
parent
8f9f087e35
commit
dfd0c9fa9a
@ -485,6 +485,7 @@ components:
|
||||
iommu: false
|
||||
queue_size: 5
|
||||
vhost_socket: vhost_socket
|
||||
serial: serial
|
||||
vhost_user: false
|
||||
direct: false
|
||||
rate_limiter_config:
|
||||
@ -504,6 +505,7 @@ components:
|
||||
iommu: false
|
||||
queue_size: 5
|
||||
vhost_socket: vhost_socket
|
||||
serial: serial
|
||||
vhost_user: false
|
||||
direct: false
|
||||
rate_limiter_config:
|
||||
@ -847,6 +849,7 @@ components:
|
||||
iommu: false
|
||||
queue_size: 5
|
||||
vhost_socket: vhost_socket
|
||||
serial: serial
|
||||
vhost_user: false
|
||||
direct: false
|
||||
rate_limiter_config:
|
||||
@ -866,6 +869,7 @@ components:
|
||||
iommu: false
|
||||
queue_size: 5
|
||||
vhost_socket: vhost_socket
|
||||
serial: serial
|
||||
vhost_user: false
|
||||
direct: false
|
||||
rate_limiter_config:
|
||||
@ -1429,6 +1433,7 @@ components:
|
||||
iommu: false
|
||||
queue_size: 5
|
||||
vhost_socket: vhost_socket
|
||||
serial: serial
|
||||
vhost_user: false
|
||||
direct: false
|
||||
rate_limiter_config:
|
||||
@ -1471,6 +1476,8 @@ components:
|
||||
type: integer
|
||||
id:
|
||||
type: string
|
||||
serial:
|
||||
type: string
|
||||
required:
|
||||
- path
|
||||
type: object
|
||||
|
@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
||||
**RateLimiterConfig** | Pointer to [**RateLimiterConfig**](RateLimiterConfig.md) | | [optional]
|
||||
**PciSegment** | Pointer to **int32** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**Serial** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
@ -305,6 +306,31 @@ SetId sets Id field to given value.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -27,6 +27,7 @@ type DiskConfig struct {
|
||||
RateLimiterConfig *RateLimiterConfig `json:"rate_limiter_config,omitempty"`
|
||||
PciSegment *int32 `json:"pci_segment,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
Serial *string `json:"serial,omitempty"`
|
||||
}
|
||||
|
||||
// NewDiskConfig instantiates a new DiskConfig object
|
||||
@ -415,6 +416,38 @@ func (o *DiskConfig) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetSerial returns the Serial field value if set, zero value otherwise.
|
||||
func (o *DiskConfig) GetSerial() string {
|
||||
if o == nil || o.Serial == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Serial
|
||||
}
|
||||
|
||||
// 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 (o *DiskConfig) GetSerialOk() (*string, bool) {
|
||||
if o == nil || o.Serial == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Serial, true
|
||||
}
|
||||
|
||||
// HasSerial returns a boolean if a field has been set.
|
||||
func (o *DiskConfig) HasSerial() bool {
|
||||
if o != nil && o.Serial != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSerial gets a reference to the given string and assigns it to the Serial field.
|
||||
func (o *DiskConfig) SetSerial(v string) {
|
||||
o.Serial = &v
|
||||
}
|
||||
|
||||
func (o DiskConfig) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
@ -450,6 +483,9 @@ func (o DiskConfig) MarshalJSON() ([]byte, error) {
|
||||
if o.Id != nil {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if o.Serial != nil {
|
||||
toSerialize["serial"] = o.Serial
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
|
@ -820,6 +820,8 @@ components:
|
||||
format: int16
|
||||
id:
|
||||
type: string
|
||||
serial:
|
||||
type: string
|
||||
|
||||
NetConfig:
|
||||
type: object
|
||||
|
Loading…
Reference in New Issue
Block a user