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 v32.0. Note: The client code of cloud-hypervisor's OpenAPI is automatically generated by openapi-generator. Fixes: #6632 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
cfee99c577
commit
35c3d7b4bc
@ -415,10 +415,17 @@ components:
|
|||||||
VmmPingResponse:
|
VmmPingResponse:
|
||||||
description: Virtual Machine Monitor information
|
description: Virtual Machine Monitor information
|
||||||
example:
|
example:
|
||||||
|
build_version: build_version
|
||||||
|
pid: 0
|
||||||
version: version
|
version: version
|
||||||
properties:
|
properties:
|
||||||
|
build_version:
|
||||||
|
type: string
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
|
pid:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
required:
|
required:
|
||||||
- version
|
- version
|
||||||
type: object
|
type: object
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**BuildVersion** | Pointer to **string** | | [optional]
|
||||||
**Version** | **string** | |
|
**Version** | **string** | |
|
||||||
|
**Pid** | Pointer to **int64** | | [optional]
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
@ -25,6 +27,31 @@ NewVmmPingResponseWithDefaults instantiates a new VmmPingResponse object
|
|||||||
This constructor will only assign default values to properties that have it defined,
|
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
|
but it doesn't guarantee that properties required by API are set
|
||||||
|
|
||||||
|
### GetBuildVersion
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) GetBuildVersion() string`
|
||||||
|
|
||||||
|
GetBuildVersion returns the BuildVersion field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetBuildVersionOk
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) GetBuildVersionOk() (*string, bool)`
|
||||||
|
|
||||||
|
GetBuildVersionOk returns a tuple with the BuildVersion field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetBuildVersion
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) SetBuildVersion(v string)`
|
||||||
|
|
||||||
|
SetBuildVersion sets BuildVersion field to given value.
|
||||||
|
|
||||||
|
### HasBuildVersion
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) HasBuildVersion() bool`
|
||||||
|
|
||||||
|
HasBuildVersion returns a boolean if a field has been set.
|
||||||
|
|
||||||
### GetVersion
|
### GetVersion
|
||||||
|
|
||||||
`func (o *VmmPingResponse) GetVersion() string`
|
`func (o *VmmPingResponse) GetVersion() string`
|
||||||
@ -45,6 +72,31 @@ and a boolean to check if the value has been set.
|
|||||||
SetVersion sets Version field to given value.
|
SetVersion sets Version field to given value.
|
||||||
|
|
||||||
|
|
||||||
|
### GetPid
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) GetPid() int64`
|
||||||
|
|
||||||
|
GetPid returns the Pid field if non-nil, zero value otherwise.
|
||||||
|
|
||||||
|
### GetPidOk
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) GetPidOk() (*int64, bool)`
|
||||||
|
|
||||||
|
GetPidOk returns a tuple with the Pid field if it's non-nil, zero value otherwise
|
||||||
|
and a boolean to check if the value has been set.
|
||||||
|
|
||||||
|
### SetPid
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) SetPid(v int64)`
|
||||||
|
|
||||||
|
SetPid sets Pid field to given value.
|
||||||
|
|
||||||
|
### HasPid
|
||||||
|
|
||||||
|
`func (o *VmmPingResponse) HasPid() bool`
|
||||||
|
|
||||||
|
HasPid 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)
|
||||||
|
|
||||||
|
@ -16,7 +16,9 @@ import (
|
|||||||
|
|
||||||
// VmmPingResponse Virtual Machine Monitor information
|
// VmmPingResponse Virtual Machine Monitor information
|
||||||
type VmmPingResponse struct {
|
type VmmPingResponse struct {
|
||||||
Version string `json:"version"`
|
BuildVersion *string `json:"build_version,omitempty"`
|
||||||
|
Version string `json:"version"`
|
||||||
|
Pid *int64 `json:"pid,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewVmmPingResponse instantiates a new VmmPingResponse object
|
// NewVmmPingResponse instantiates a new VmmPingResponse object
|
||||||
@ -37,6 +39,38 @@ func NewVmmPingResponseWithDefaults() *VmmPingResponse {
|
|||||||
return &this
|
return &this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetBuildVersion returns the BuildVersion field value if set, zero value otherwise.
|
||||||
|
func (o *VmmPingResponse) GetBuildVersion() string {
|
||||||
|
if o == nil || o.BuildVersion == nil {
|
||||||
|
var ret string
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.BuildVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 (o *VmmPingResponse) GetBuildVersionOk() (*string, bool) {
|
||||||
|
if o == nil || o.BuildVersion == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.BuildVersion, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasBuildVersion returns a boolean if a field has been set.
|
||||||
|
func (o *VmmPingResponse) HasBuildVersion() bool {
|
||||||
|
if o != nil && o.BuildVersion != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetBuildVersion gets a reference to the given string and assigns it to the BuildVersion field.
|
||||||
|
func (o *VmmPingResponse) SetBuildVersion(v string) {
|
||||||
|
o.BuildVersion = &v
|
||||||
|
}
|
||||||
|
|
||||||
// GetVersion returns the Version field value
|
// GetVersion returns the Version field value
|
||||||
func (o *VmmPingResponse) GetVersion() string {
|
func (o *VmmPingResponse) GetVersion() string {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
@ -61,11 +95,49 @@ func (o *VmmPingResponse) SetVersion(v string) {
|
|||||||
o.Version = v
|
o.Version = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetPid returns the Pid field value if set, zero value otherwise.
|
||||||
|
func (o *VmmPingResponse) GetPid() int64 {
|
||||||
|
if o == nil || o.Pid == nil {
|
||||||
|
var ret int64
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
return *o.Pid
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 (o *VmmPingResponse) GetPidOk() (*int64, bool) {
|
||||||
|
if o == nil || o.Pid == nil {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return o.Pid, true
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasPid returns a boolean if a field has been set.
|
||||||
|
func (o *VmmPingResponse) HasPid() bool {
|
||||||
|
if o != nil && o.Pid != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetPid gets a reference to the given int64 and assigns it to the Pid field.
|
||||||
|
func (o *VmmPingResponse) SetPid(v int64) {
|
||||||
|
o.Pid = &v
|
||||||
|
}
|
||||||
|
|
||||||
func (o VmmPingResponse) MarshalJSON() ([]byte, error) {
|
func (o VmmPingResponse) MarshalJSON() ([]byte, error) {
|
||||||
toSerialize := map[string]interface{}{}
|
toSerialize := map[string]interface{}{}
|
||||||
|
if o.BuildVersion != nil {
|
||||||
|
toSerialize["build_version"] = o.BuildVersion
|
||||||
|
}
|
||||||
if true {
|
if true {
|
||||||
toSerialize["version"] = o.Version
|
toSerialize["version"] = o.Version
|
||||||
}
|
}
|
||||||
|
if o.Pid != nil {
|
||||||
|
toSerialize["pid"] = o.Pid
|
||||||
|
}
|
||||||
return json.Marshal(toSerialize)
|
return json.Marshal(toSerialize)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -438,8 +438,13 @@ components:
|
|||||||
- version
|
- version
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
build_version:
|
||||||
|
type: string
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
|
pid:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
description: Virtual Machine Monitor information
|
description: Virtual Machine Monitor information
|
||||||
|
|
||||||
VmInfo:
|
VmInfo:
|
||||||
|
Loading…
Reference in New Issue
Block a user