mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
versions: Update firecracker version to 1.4.0
This patch upgrades Firecracker version from v1.1.0 to v1.4.0. * Generate swagger models for v1.4.0 (from `firecracker.yaml`) - The version of go-swagger used is v0.30.0 * The firecracker v1.4.0 includes the following changes. - Added * Added support for custom CPU templates allowing users to adjust vCPU features exposed to the guest via CPUID, MSRs and ARM registers. * Introduced V1N1 static CPU template for ARM to represent Neoverse V1 CPU as Neoverse N1. * Added support for the virtio-rng entropy device. The device is optional. A single device can be enabled per VM using the /entropy endpoint. * Added a cpu-template-helper tool for assisting with creating and managing custom CPU templates. - Changed * Set FDP_EXCPTN_ONLY bit (CPUID.7h.0:EBX[6]) and ZERO_FCS_FDS bit (CPUID.7h.0:EBX[13]) in Intel's CPUID normalization process. - Fixed * Fixed feature flags in T2S CPU template on Intel Ice Lake. * Fixed CPUID leaf 0xb to be exposed to guests running on AMD host. * Fixed a performance regression in the jailer logic for closing open file descriptors. * A race condition that has been identified between the API thread and the VMM thread due to a misconfiguration of the api_event_fd. * Fixed CPUID leaf 0x1 to disable perfmon and debug feature on x86 host. * Fixed passing through cache information from host in CPUID leaf 0x80000006. * Fixed the T2S CPU template to set the RRSBA bit of the IA32_ARCH_CAPABILITIES MSR to 1 in accordance with an Intel microcode update. * Fixed the T2CL CPU template to pass through the RSBA and RRSBA bits of the IA32_ARCH_CAPABILITIES MSR from the host in accordance with an Intel microcode update. * Fixed passing through cache information from host in CPUID leaf 0x80000005. * Fixed the T2A CPU template to disable SVM (nested virtualization). * Fixed the T2A CPU template to set EferLmsleUnsupported bit (CPUID.80000008h:EBX[20]), which indicates that EFER[LMSLE] is not supported. Fixes: #7610 Signed-off-by: Manabu Sugimoto <Manabu.Sugimoto@sony.com>
This commit is contained in:
parent
7bf994827d
commit
cc922be5ec
@ -306,8 +306,7 @@ func (fc *firecracker) parseVersion(data string) (string, error) {
|
||||
var version string
|
||||
fields := strings.Split(lines[0], " ")
|
||||
if len(fields) > 1 {
|
||||
// The output format of `Firecracker --version` is as follows
|
||||
// Firecracker v0.23.1
|
||||
// The output format of `Firecracker --version` is as follows.
|
||||
version = strings.TrimPrefix(strings.TrimSpace(fields[1]), "v")
|
||||
return version, nil
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// CPUConfig The CPU configuration template defines a set of bit maps as modifiers of flags accessed by register to be disabled/enabled for the microvm.
|
||||
//
|
||||
// swagger:model CpuConfig
|
||||
type CPUConfig string
|
||||
|
||||
// Validate validates this Cpu config
|
||||
func (m CPUConfig) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this Cpu config based on context it is used
|
||||
func (m CPUConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
@ -14,7 +14,7 @@ import (
|
||||
"github.com/go-openapi/validate"
|
||||
)
|
||||
|
||||
// CPUTemplate The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type. Works only on Intel.
|
||||
// CPUTemplate The CPU Template defines a set of flags to be disabled from the microvm so that the features exposed to the guest are the same as in the selected instance type.
|
||||
//
|
||||
// swagger:model CpuTemplate
|
||||
type CPUTemplate string
|
||||
@ -36,6 +36,18 @@ const (
|
||||
// CPUTemplateT2 captures enum value "T2"
|
||||
CPUTemplateT2 CPUTemplate = "T2"
|
||||
|
||||
// CPUTemplateT2S captures enum value "T2S"
|
||||
CPUTemplateT2S CPUTemplate = "T2S"
|
||||
|
||||
// CPUTemplateT2CL captures enum value "T2CL"
|
||||
CPUTemplateT2CL CPUTemplate = "T2CL"
|
||||
|
||||
// CPUTemplateT2A captures enum value "T2A"
|
||||
CPUTemplateT2A CPUTemplate = "T2A"
|
||||
|
||||
// CPUTemplateV1N1 captures enum value "V1N1"
|
||||
CPUTemplateV1N1 CPUTemplate = "V1N1"
|
||||
|
||||
// CPUTemplateNone captures enum value "None"
|
||||
CPUTemplateNone CPUTemplate = "None"
|
||||
)
|
||||
@ -45,7 +57,7 @@ var cpuTemplateEnum []interface{}
|
||||
|
||||
func init() {
|
||||
var res []CPUTemplate
|
||||
if err := json.Unmarshal([]byte(`["C3","T2","None"]`), &res); err != nil {
|
||||
if err := json.Unmarshal([]byte(`["C3","T2","T2S","T2CL","T2A","V1N1","None"]`), &res); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, v := range res {
|
||||
|
@ -0,0 +1,104 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// EntropyDevice Defines an entropy device.
|
||||
//
|
||||
// swagger:model EntropyDevice
|
||||
type EntropyDevice struct {
|
||||
|
||||
// rate limiter
|
||||
RateLimiter *RateLimiter `json:"rate_limiter,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this entropy device
|
||||
func (m *EntropyDevice) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateRateLimiter(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EntropyDevice) validateRateLimiter(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.RateLimiter) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.RateLimiter != nil {
|
||||
if err := m.RateLimiter.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("rate_limiter")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("rate_limiter")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this entropy device based on the context it is used
|
||||
func (m *EntropyDevice) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateRateLimiter(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EntropyDevice) contextValidateRateLimiter(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.RateLimiter != nil {
|
||||
if err := m.RateLimiter.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("rate_limiter")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("rate_limiter")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *EntropyDevice) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *EntropyDevice) UnmarshalBinary(b []byte) error {
|
||||
var res EntropyDevice
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
@ -28,7 +28,7 @@ type Vsock struct {
|
||||
// Required: true
|
||||
UdsPath *string `json:"uds_path"`
|
||||
|
||||
// This parameter has been deprecated since v1.1.0.
|
||||
// This parameter has been deprecated since v1.0.0.
|
||||
VsockID string `json:"vsock_id,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -54,10 +54,12 @@ func NewCreateSnapshotParamsWithHTTPClient(client *http.Client) *CreateSnapshotP
|
||||
}
|
||||
}
|
||||
|
||||
/* CreateSnapshotParams contains all the parameters to send to the API endpoint
|
||||
for the create snapshot operation.
|
||||
/*
|
||||
CreateSnapshotParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the create snapshot operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type CreateSnapshotParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewCreateSnapshotNoContent() *CreateSnapshotNoContent {
|
||||
return &CreateSnapshotNoContent{}
|
||||
}
|
||||
|
||||
/* CreateSnapshotNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
CreateSnapshotNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Snapshot created
|
||||
*/
|
||||
type CreateSnapshotNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create snapshot no content response has a 2xx status code
|
||||
func (o *CreateSnapshotNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create snapshot no content response has a 3xx status code
|
||||
func (o *CreateSnapshotNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create snapshot no content response has a 4xx status code
|
||||
func (o *CreateSnapshotNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create snapshot no content response has a 5xx status code
|
||||
func (o *CreateSnapshotNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this create snapshot no content response a status code equal to that given
|
||||
func (o *CreateSnapshotNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewCreateSnapshotBadRequest() *CreateSnapshotBadRequest {
|
||||
return &CreateSnapshotBadRequest{}
|
||||
}
|
||||
|
||||
/* CreateSnapshotBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
CreateSnapshotBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Snapshot cannot be created due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type CreateSnapshotBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create snapshot bad request response has a 2xx status code
|
||||
func (o *CreateSnapshotBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create snapshot bad request response has a 3xx status code
|
||||
func (o *CreateSnapshotBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create snapshot bad request response has a 4xx status code
|
||||
func (o *CreateSnapshotBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create snapshot bad request response has a 5xx status code
|
||||
func (o *CreateSnapshotBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this create snapshot bad request response a status code equal to that given
|
||||
func (o *CreateSnapshotBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewCreateSnapshotDefault(code int) *CreateSnapshotDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* CreateSnapshotDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
CreateSnapshotDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *CreateSnapshotDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create snapshot default response has a 2xx status code
|
||||
func (o *CreateSnapshotDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create snapshot default response has a 3xx status code
|
||||
func (o *CreateSnapshotDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create snapshot default response has a 4xx status code
|
||||
func (o *CreateSnapshotDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create snapshot default response has a 5xx status code
|
||||
func (o *CreateSnapshotDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this create snapshot default response a status code equal to that given
|
||||
func (o *CreateSnapshotDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshot default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshot default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSnapshotDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewCreateSyncActionParamsWithHTTPClient(client *http.Client) *CreateSyncAct
|
||||
}
|
||||
}
|
||||
|
||||
/* CreateSyncActionParams contains all the parameters to send to the API endpoint
|
||||
for the create sync action operation.
|
||||
/*
|
||||
CreateSyncActionParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the create sync action operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type CreateSyncActionParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewCreateSyncActionNoContent() *CreateSyncActionNoContent {
|
||||
return &CreateSyncActionNoContent{}
|
||||
}
|
||||
|
||||
/* CreateSyncActionNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
CreateSyncActionNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
The update was successful
|
||||
*/
|
||||
type CreateSyncActionNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create sync action no content response has a 2xx status code
|
||||
func (o *CreateSyncActionNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create sync action no content response has a 3xx status code
|
||||
func (o *CreateSyncActionNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create sync action no content response has a 4xx status code
|
||||
func (o *CreateSyncActionNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create sync action no content response has a 5xx status code
|
||||
func (o *CreateSyncActionNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this create sync action no content response a status code equal to that given
|
||||
func (o *CreateSyncActionNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewCreateSyncActionBadRequest() *CreateSyncActionBadRequest {
|
||||
return &CreateSyncActionBadRequest{}
|
||||
}
|
||||
|
||||
/* CreateSyncActionBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
CreateSyncActionBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
The action cannot be executed due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type CreateSyncActionBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create sync action bad request response has a 2xx status code
|
||||
func (o *CreateSyncActionBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create sync action bad request response has a 3xx status code
|
||||
func (o *CreateSyncActionBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create sync action bad request response has a 4xx status code
|
||||
func (o *CreateSyncActionBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create sync action bad request response has a 5xx status code
|
||||
func (o *CreateSyncActionBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this create sync action bad request response a status code equal to that given
|
||||
func (o *CreateSyncActionBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewCreateSyncActionDefault(code int) *CreateSyncActionDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* CreateSyncActionDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
CreateSyncActionDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal Server Error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *CreateSyncActionDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this create sync action default response has a 2xx status code
|
||||
func (o *CreateSyncActionDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this create sync action default response has a 3xx status code
|
||||
func (o *CreateSyncActionDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this create sync action default response has a 4xx status code
|
||||
func (o *CreateSyncActionDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this create sync action default response has a 5xx status code
|
||||
func (o *CreateSyncActionDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this create sync action default response a status code equal to that given
|
||||
func (o *CreateSyncActionDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncAction default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /actions][%d] createSyncAction default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *CreateSyncActionDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewDescribeBalloonConfigParamsWithHTTPClient(client *http.Client) *Describe
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeBalloonConfigParams contains all the parameters to send to the API endpoint
|
||||
for the describe balloon config operation.
|
||||
/*
|
||||
DescribeBalloonConfigParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the describe balloon config operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DescribeBalloonConfigParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -52,7 +52,8 @@ func NewDescribeBalloonConfigOK() *DescribeBalloonConfigOK {
|
||||
return &DescribeBalloonConfigOK{}
|
||||
}
|
||||
|
||||
/* DescribeBalloonConfigOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DescribeBalloonConfigOK describes a response with status code 200, with default header values.
|
||||
|
||||
The balloon device configuration
|
||||
*/
|
||||
@ -60,9 +61,39 @@ type DescribeBalloonConfigOK struct {
|
||||
Payload *models.Balloon
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon config o k response has a 2xx status code
|
||||
func (o *DescribeBalloonConfigOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon config o k response has a 3xx status code
|
||||
func (o *DescribeBalloonConfigOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon config o k response has a 4xx status code
|
||||
func (o *DescribeBalloonConfigOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon config o k response has a 5xx status code
|
||||
func (o *DescribeBalloonConfigOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon config o k response a status code equal to that given
|
||||
func (o *DescribeBalloonConfigOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigOK) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigOK) String() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigOK) GetPayload() *models.Balloon {
|
||||
return o.Payload
|
||||
}
|
||||
@ -84,7 +115,8 @@ func NewDescribeBalloonConfigBadRequest() *DescribeBalloonConfigBadRequest {
|
||||
return &DescribeBalloonConfigBadRequest{}
|
||||
}
|
||||
|
||||
/* DescribeBalloonConfigBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
DescribeBalloonConfigBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Balloon device not configured.
|
||||
*/
|
||||
@ -92,9 +124,39 @@ type DescribeBalloonConfigBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon config bad request response has a 2xx status code
|
||||
func (o *DescribeBalloonConfigBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon config bad request response has a 3xx status code
|
||||
func (o *DescribeBalloonConfigBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon config bad request response has a 4xx status code
|
||||
func (o *DescribeBalloonConfigBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon config bad request response has a 5xx status code
|
||||
func (o *DescribeBalloonConfigBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon config bad request response a status code equal to that given
|
||||
func (o *DescribeBalloonConfigBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigBadRequest) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigBadRequest) String() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -118,7 +180,8 @@ func NewDescribeBalloonConfigDefault(code int) *DescribeBalloonConfigDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeBalloonConfigDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
DescribeBalloonConfigDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal Server Error
|
||||
*/
|
||||
@ -133,9 +196,39 @@ func (o *DescribeBalloonConfigDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon config default response has a 2xx status code
|
||||
func (o *DescribeBalloonConfigDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon config default response has a 3xx status code
|
||||
func (o *DescribeBalloonConfigDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon config default response has a 4xx status code
|
||||
func (o *DescribeBalloonConfigDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon config default response has a 5xx status code
|
||||
func (o *DescribeBalloonConfigDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon config default response a status code equal to that given
|
||||
func (o *DescribeBalloonConfigDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigDefault) String() string {
|
||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonConfigDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewDescribeBalloonStatsParamsWithHTTPClient(client *http.Client) *DescribeB
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeBalloonStatsParams contains all the parameters to send to the API endpoint
|
||||
for the describe balloon stats operation.
|
||||
/*
|
||||
DescribeBalloonStatsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the describe balloon stats operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DescribeBalloonStatsParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -52,7 +52,8 @@ func NewDescribeBalloonStatsOK() *DescribeBalloonStatsOK {
|
||||
return &DescribeBalloonStatsOK{}
|
||||
}
|
||||
|
||||
/* DescribeBalloonStatsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DescribeBalloonStatsOK describes a response with status code 200, with default header values.
|
||||
|
||||
The balloon device statistics
|
||||
*/
|
||||
@ -60,9 +61,39 @@ type DescribeBalloonStatsOK struct {
|
||||
Payload *models.BalloonStats
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon stats o k response has a 2xx status code
|
||||
func (o *DescribeBalloonStatsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon stats o k response has a 3xx status code
|
||||
func (o *DescribeBalloonStatsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon stats o k response has a 4xx status code
|
||||
func (o *DescribeBalloonStatsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon stats o k response has a 5xx status code
|
||||
func (o *DescribeBalloonStatsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon stats o k response a status code equal to that given
|
||||
func (o *DescribeBalloonStatsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsOK) String() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsOK) GetPayload() *models.BalloonStats {
|
||||
return o.Payload
|
||||
}
|
||||
@ -84,7 +115,8 @@ func NewDescribeBalloonStatsBadRequest() *DescribeBalloonStatsBadRequest {
|
||||
return &DescribeBalloonStatsBadRequest{}
|
||||
}
|
||||
|
||||
/* DescribeBalloonStatsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
DescribeBalloonStatsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
The balloon device statistics were not enabled when the device was configured.
|
||||
*/
|
||||
@ -92,9 +124,39 @@ type DescribeBalloonStatsBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon stats bad request response has a 2xx status code
|
||||
func (o *DescribeBalloonStatsBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon stats bad request response has a 3xx status code
|
||||
func (o *DescribeBalloonStatsBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon stats bad request response has a 4xx status code
|
||||
func (o *DescribeBalloonStatsBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon stats bad request response has a 5xx status code
|
||||
func (o *DescribeBalloonStatsBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon stats bad request response a status code equal to that given
|
||||
func (o *DescribeBalloonStatsBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsBadRequest) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsBadRequest) String() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -118,7 +180,8 @@ func NewDescribeBalloonStatsDefault(code int) *DescribeBalloonStatsDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeBalloonStatsDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
DescribeBalloonStatsDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal Server Error
|
||||
*/
|
||||
@ -133,9 +196,39 @@ func (o *DescribeBalloonStatsDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe balloon stats default response has a 2xx status code
|
||||
func (o *DescribeBalloonStatsDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe balloon stats default response has a 3xx status code
|
||||
func (o *DescribeBalloonStatsDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe balloon stats default response has a 4xx status code
|
||||
func (o *DescribeBalloonStatsDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe balloon stats default response has a 5xx status code
|
||||
func (o *DescribeBalloonStatsDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe balloon stats default response a status code equal to that given
|
||||
func (o *DescribeBalloonStatsDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStats default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsDefault) String() string {
|
||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStats default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeBalloonStatsDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewDescribeInstanceParamsWithHTTPClient(client *http.Client) *DescribeInsta
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeInstanceParams contains all the parameters to send to the API endpoint
|
||||
for the describe instance operation.
|
||||
/*
|
||||
DescribeInstanceParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the describe instance operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DescribeInstanceParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -46,7 +46,8 @@ func NewDescribeInstanceOK() *DescribeInstanceOK {
|
||||
return &DescribeInstanceOK{}
|
||||
}
|
||||
|
||||
/* DescribeInstanceOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DescribeInstanceOK describes a response with status code 200, with default header values.
|
||||
|
||||
The instance information
|
||||
*/
|
||||
@ -54,9 +55,39 @@ type DescribeInstanceOK struct {
|
||||
Payload *models.InstanceInfo
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe instance o k response has a 2xx status code
|
||||
func (o *DescribeInstanceOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe instance o k response has a 3xx status code
|
||||
func (o *DescribeInstanceOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe instance o k response has a 4xx status code
|
||||
func (o *DescribeInstanceOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe instance o k response has a 5xx status code
|
||||
func (o *DescribeInstanceOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe instance o k response a status code equal to that given
|
||||
func (o *DescribeInstanceOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceOK) Error() string {
|
||||
return fmt.Sprintf("[GET /][%d] describeInstanceOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceOK) String() string {
|
||||
return fmt.Sprintf("[GET /][%d] describeInstanceOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceOK) GetPayload() *models.InstanceInfo {
|
||||
return o.Payload
|
||||
}
|
||||
@ -80,7 +111,8 @@ func NewDescribeInstanceDefault(code int) *DescribeInstanceDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* DescribeInstanceDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
DescribeInstanceDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal Server Error
|
||||
*/
|
||||
@ -95,9 +127,39 @@ func (o *DescribeInstanceDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this describe instance default response has a 2xx status code
|
||||
func (o *DescribeInstanceDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this describe instance default response has a 3xx status code
|
||||
func (o *DescribeInstanceDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this describe instance default response has a 4xx status code
|
||||
func (o *DescribeInstanceDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this describe instance default response has a 5xx status code
|
||||
func (o *DescribeInstanceDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this describe instance default response a status code equal to that given
|
||||
func (o *DescribeInstanceDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /][%d] describeInstance default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceDefault) String() string {
|
||||
return fmt.Sprintf("[GET /][%d] describeInstance default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DescribeInstanceDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewGetExportVMConfigParamsWithHTTPClient(client *http.Client) *GetExportVMC
|
||||
}
|
||||
}
|
||||
|
||||
/* GetExportVMConfigParams contains all the parameters to send to the API endpoint
|
||||
for the get export Vm config operation.
|
||||
/*
|
||||
GetExportVMConfigParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get export Vm config operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetExportVMConfigParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -46,7 +46,8 @@ func NewGetExportVMConfigOK() *GetExportVMConfigOK {
|
||||
return &GetExportVMConfigOK{}
|
||||
}
|
||||
|
||||
/* GetExportVMConfigOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetExportVMConfigOK describes a response with status code 200, with default header values.
|
||||
|
||||
OK
|
||||
*/
|
||||
@ -54,9 +55,39 @@ type GetExportVMConfigOK struct {
|
||||
Payload *models.FullVMConfiguration
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get export Vm config o k response has a 2xx status code
|
||||
func (o *GetExportVMConfigOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get export Vm config o k response has a 3xx status code
|
||||
func (o *GetExportVMConfigOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get export Vm config o k response has a 4xx status code
|
||||
func (o *GetExportVMConfigOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get export Vm config o k response has a 5xx status code
|
||||
func (o *GetExportVMConfigOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get export Vm config o k response a status code equal to that given
|
||||
func (o *GetExportVMConfigOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigOK) Error() string {
|
||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfigOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigOK) String() string {
|
||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfigOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigOK) GetPayload() *models.FullVMConfiguration {
|
||||
return o.Payload
|
||||
}
|
||||
@ -80,7 +111,8 @@ func NewGetExportVMConfigDefault(code int) *GetExportVMConfigDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetExportVMConfigDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
GetExportVMConfigDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -95,9 +127,39 @@ func (o *GetExportVMConfigDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get export Vm config default response has a 2xx status code
|
||||
func (o *GetExportVMConfigDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get export Vm config default response has a 3xx status code
|
||||
func (o *GetExportVMConfigDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get export Vm config default response has a 4xx status code
|
||||
func (o *GetExportVMConfigDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get export Vm config default response has a 5xx status code
|
||||
func (o *GetExportVMConfigDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this get export Vm config default response a status code equal to that given
|
||||
func (o *GetExportVMConfigDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigDefault) String() string {
|
||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetExportVMConfigDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewGetFirecrackerVersionParamsWithHTTPClient(client *http.Client) *GetFirec
|
||||
}
|
||||
}
|
||||
|
||||
/* GetFirecrackerVersionParams contains all the parameters to send to the API endpoint
|
||||
for the get firecracker version operation.
|
||||
/*
|
||||
GetFirecrackerVersionParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get firecracker version operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetFirecrackerVersionParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -46,7 +46,8 @@ func NewGetFirecrackerVersionOK() *GetFirecrackerVersionOK {
|
||||
return &GetFirecrackerVersionOK{}
|
||||
}
|
||||
|
||||
/* GetFirecrackerVersionOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetFirecrackerVersionOK describes a response with status code 200, with default header values.
|
||||
|
||||
OK
|
||||
*/
|
||||
@ -54,9 +55,39 @@ type GetFirecrackerVersionOK struct {
|
||||
Payload *models.FirecrackerVersion
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get firecracker version o k response has a 2xx status code
|
||||
func (o *GetFirecrackerVersionOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get firecracker version o k response has a 3xx status code
|
||||
func (o *GetFirecrackerVersionOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get firecracker version o k response has a 4xx status code
|
||||
func (o *GetFirecrackerVersionOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get firecracker version o k response has a 5xx status code
|
||||
func (o *GetFirecrackerVersionOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get firecracker version o k response a status code equal to that given
|
||||
func (o *GetFirecrackerVersionOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionOK) Error() string {
|
||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersionOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionOK) String() string {
|
||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersionOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionOK) GetPayload() *models.FirecrackerVersion {
|
||||
return o.Payload
|
||||
}
|
||||
@ -80,7 +111,8 @@ func NewGetFirecrackerVersionDefault(code int) *GetFirecrackerVersionDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetFirecrackerVersionDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
GetFirecrackerVersionDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -95,9 +127,39 @@ func (o *GetFirecrackerVersionDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get firecracker version default response has a 2xx status code
|
||||
func (o *GetFirecrackerVersionDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get firecracker version default response has a 3xx status code
|
||||
func (o *GetFirecrackerVersionDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get firecracker version default response has a 4xx status code
|
||||
func (o *GetFirecrackerVersionDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get firecracker version default response has a 5xx status code
|
||||
func (o *GetFirecrackerVersionDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this get firecracker version default response a status code equal to that given
|
||||
func (o *GetFirecrackerVersionDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersion default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionDefault) String() string {
|
||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersion default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetFirecrackerVersionDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewGetMachineConfigurationParamsWithHTTPClient(client *http.Client) *GetMac
|
||||
}
|
||||
}
|
||||
|
||||
/* GetMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
for the get machine configuration operation.
|
||||
/*
|
||||
GetMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get machine configuration operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetMachineConfigurationParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -46,7 +46,8 @@ func NewGetMachineConfigurationOK() *GetMachineConfigurationOK {
|
||||
return &GetMachineConfigurationOK{}
|
||||
}
|
||||
|
||||
/* GetMachineConfigurationOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetMachineConfigurationOK describes a response with status code 200, with default header values.
|
||||
|
||||
OK
|
||||
*/
|
||||
@ -54,9 +55,39 @@ type GetMachineConfigurationOK struct {
|
||||
Payload *models.MachineConfiguration
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get machine configuration o k response has a 2xx status code
|
||||
func (o *GetMachineConfigurationOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get machine configuration o k response has a 3xx status code
|
||||
func (o *GetMachineConfigurationOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get machine configuration o k response has a 4xx status code
|
||||
func (o *GetMachineConfigurationOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get machine configuration o k response has a 5xx status code
|
||||
func (o *GetMachineConfigurationOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get machine configuration o k response a status code equal to that given
|
||||
func (o *GetMachineConfigurationOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationOK) Error() string {
|
||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfigurationOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationOK) String() string {
|
||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfigurationOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationOK) GetPayload() *models.MachineConfiguration {
|
||||
return o.Payload
|
||||
}
|
||||
@ -80,7 +111,8 @@ func NewGetMachineConfigurationDefault(code int) *GetMachineConfigurationDefault
|
||||
}
|
||||
}
|
||||
|
||||
/* GetMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
GetMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -95,9 +127,39 @@ func (o *GetMachineConfigurationDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get machine configuration default response has a 2xx status code
|
||||
func (o *GetMachineConfigurationDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get machine configuration default response has a 3xx status code
|
||||
func (o *GetMachineConfigurationDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get machine configuration default response has a 4xx status code
|
||||
func (o *GetMachineConfigurationDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get machine configuration default response has a 5xx status code
|
||||
func (o *GetMachineConfigurationDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this get machine configuration default response a status code equal to that given
|
||||
func (o *GetMachineConfigurationDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationDefault) String() string {
|
||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMachineConfigurationDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -52,10 +52,12 @@ func NewGetMmdsParamsWithHTTPClient(client *http.Client) *GetMmdsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetMmdsParams contains all the parameters to send to the API endpoint
|
||||
for the get mmds operation.
|
||||
/*
|
||||
GetMmdsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get mmds operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetMmdsParams struct {
|
||||
timeout time.Duration
|
||||
|
@ -52,7 +52,8 @@ func NewGetMmdsOK() *GetMmdsOK {
|
||||
return &GetMmdsOK{}
|
||||
}
|
||||
|
||||
/* GetMmdsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetMmdsOK describes a response with status code 200, with default header values.
|
||||
|
||||
The MMDS data store JSON.
|
||||
*/
|
||||
@ -60,9 +61,39 @@ type GetMmdsOK struct {
|
||||
Payload interface{}
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get mmds o k response has a 2xx status code
|
||||
func (o *GetMmdsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get mmds o k response has a 3xx status code
|
||||
func (o *GetMmdsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get mmds o k response has a 4xx status code
|
||||
func (o *GetMmdsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get mmds o k response has a 5xx status code
|
||||
func (o *GetMmdsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get mmds o k response a status code equal to that given
|
||||
func (o *GetMmdsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
func (o *GetMmdsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsOK) String() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsOK) GetPayload() interface{} {
|
||||
return o.Payload
|
||||
}
|
||||
@ -82,7 +113,8 @@ func NewGetMmdsNotFound() *GetMmdsNotFound {
|
||||
return &GetMmdsNotFound{}
|
||||
}
|
||||
|
||||
/* GetMmdsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetMmdsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
The MMDS data store content can not be found.
|
||||
*/
|
||||
@ -90,9 +122,39 @@ type GetMmdsNotFound struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get mmds not found response has a 2xx status code
|
||||
func (o *GetMmdsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get mmds not found response has a 3xx status code
|
||||
func (o *GetMmdsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get mmds not found response has a 4xx status code
|
||||
func (o *GetMmdsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get mmds not found response has a 5xx status code
|
||||
func (o *GetMmdsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get mmds not found response a status code equal to that given
|
||||
func (o *GetMmdsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
func (o *GetMmdsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsNotFound) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -116,7 +178,8 @@ func NewGetMmdsDefault(code int) *GetMmdsDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetMmdsDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
GetMmdsDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -131,9 +194,39 @@ func (o *GetMmdsDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get mmds default response has a 2xx status code
|
||||
func (o *GetMmdsDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get mmds default response has a 3xx status code
|
||||
func (o *GetMmdsDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get mmds default response has a 4xx status code
|
||||
func (o *GetMmdsDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get mmds default response has a 5xx status code
|
||||
func (o *GetMmdsDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this get mmds default response a status code equal to that given
|
||||
func (o *GetMmdsDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *GetMmdsDefault) Error() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsDefault) String() string {
|
||||
return fmt.Sprintf("[GET /mmds][%d] getMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetMmdsDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewLoadSnapshotParamsWithHTTPClient(client *http.Client) *LoadSnapshotParam
|
||||
}
|
||||
}
|
||||
|
||||
/* LoadSnapshotParams contains all the parameters to send to the API endpoint
|
||||
for the load snapshot operation.
|
||||
/*
|
||||
LoadSnapshotParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the load snapshot operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type LoadSnapshotParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewLoadSnapshotNoContent() *LoadSnapshotNoContent {
|
||||
return &LoadSnapshotNoContent{}
|
||||
}
|
||||
|
||||
/* LoadSnapshotNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
LoadSnapshotNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Snapshot loaded
|
||||
*/
|
||||
type LoadSnapshotNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this load snapshot no content response has a 2xx status code
|
||||
func (o *LoadSnapshotNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this load snapshot no content response has a 3xx status code
|
||||
func (o *LoadSnapshotNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this load snapshot no content response has a 4xx status code
|
||||
func (o *LoadSnapshotNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this load snapshot no content response has a 5xx status code
|
||||
func (o *LoadSnapshotNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this load snapshot no content response a status code equal to that given
|
||||
func (o *LoadSnapshotNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewLoadSnapshotBadRequest() *LoadSnapshotBadRequest {
|
||||
return &LoadSnapshotBadRequest{}
|
||||
}
|
||||
|
||||
/* LoadSnapshotBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
LoadSnapshotBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Snapshot cannot be loaded due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type LoadSnapshotBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this load snapshot bad request response has a 2xx status code
|
||||
func (o *LoadSnapshotBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this load snapshot bad request response has a 3xx status code
|
||||
func (o *LoadSnapshotBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this load snapshot bad request response has a 4xx status code
|
||||
func (o *LoadSnapshotBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this load snapshot bad request response has a 5xx status code
|
||||
func (o *LoadSnapshotBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this load snapshot bad request response a status code equal to that given
|
||||
func (o *LoadSnapshotBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewLoadSnapshotDefault(code int) *LoadSnapshotDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* LoadSnapshotDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
LoadSnapshotDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *LoadSnapshotDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this load snapshot default response has a 2xx status code
|
||||
func (o *LoadSnapshotDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this load snapshot default response has a 3xx status code
|
||||
func (o *LoadSnapshotDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this load snapshot default response has a 4xx status code
|
||||
func (o *LoadSnapshotDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this load snapshot default response has a 5xx status code
|
||||
func (o *LoadSnapshotDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this load snapshot default response a status code equal to that given
|
||||
func (o *LoadSnapshotDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshot default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshot default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *LoadSnapshotDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -64,6 +64,10 @@ type ClientService interface {
|
||||
|
||||
PutBalloon(params *PutBalloonParams, opts ...ClientOption) (*PutBalloonNoContent, error)
|
||||
|
||||
PutCPUConfiguration(params *PutCPUConfigurationParams, opts ...ClientOption) (*PutCPUConfigurationNoContent, error)
|
||||
|
||||
PutEntropyDevice(params *PutEntropyDeviceParams, opts ...ClientOption) (*PutEntropyDeviceNoContent, error)
|
||||
|
||||
PutGuestBootSource(params *PutGuestBootSourceParams, opts ...ClientOption) (*PutGuestBootSourceNoContent, error)
|
||||
|
||||
PutGuestDriveByID(params *PutGuestDriveByIDParams, opts ...ClientOption) (*PutGuestDriveByIDNoContent, error)
|
||||
@ -86,9 +90,9 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
CreateSnapshot creates a full or diff snapshot post boot only
|
||||
CreateSnapshot creates a full or diff snapshot post boot only
|
||||
|
||||
Creates a snapshot of the microVM state. The microVM should be in the `Paused` state.
|
||||
Creates a snapshot of the microVM state. The microVM should be in the `Paused` state.
|
||||
*/
|
||||
func (a *Client) CreateSnapshot(params *CreateSnapshotParams, opts ...ClientOption) (*CreateSnapshotNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -125,7 +129,7 @@ func (a *Client) CreateSnapshot(params *CreateSnapshotParams, opts ...ClientOpti
|
||||
}
|
||||
|
||||
/*
|
||||
CreateSyncAction creates a synchronous action
|
||||
CreateSyncAction creates a synchronous action
|
||||
*/
|
||||
func (a *Client) CreateSyncAction(params *CreateSyncActionParams, opts ...ClientOption) (*CreateSyncActionNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -162,7 +166,7 @@ func (a *Client) CreateSyncAction(params *CreateSyncActionParams, opts ...Client
|
||||
}
|
||||
|
||||
/*
|
||||
DescribeBalloonConfig returns the current balloon device configuration
|
||||
DescribeBalloonConfig returns the current balloon device configuration
|
||||
*/
|
||||
func (a *Client) DescribeBalloonConfig(params *DescribeBalloonConfigParams, opts ...ClientOption) (*DescribeBalloonConfigOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -199,7 +203,7 @@ func (a *Client) DescribeBalloonConfig(params *DescribeBalloonConfigParams, opts
|
||||
}
|
||||
|
||||
/*
|
||||
DescribeBalloonStats returns the latest balloon device statistics only if enabled pre boot
|
||||
DescribeBalloonStats returns the latest balloon device statistics only if enabled pre boot
|
||||
*/
|
||||
func (a *Client) DescribeBalloonStats(params *DescribeBalloonStatsParams, opts ...ClientOption) (*DescribeBalloonStatsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -236,7 +240,7 @@ func (a *Client) DescribeBalloonStats(params *DescribeBalloonStatsParams, opts .
|
||||
}
|
||||
|
||||
/*
|
||||
DescribeInstance returns general information about an instance
|
||||
DescribeInstance returns general information about an instance
|
||||
*/
|
||||
func (a *Client) DescribeInstance(params *DescribeInstanceParams, opts ...ClientOption) (*DescribeInstanceOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -273,9 +277,9 @@ func (a *Client) DescribeInstance(params *DescribeInstanceParams, opts ...Client
|
||||
}
|
||||
|
||||
/*
|
||||
GetExportVMConfig gets the full VM configuration
|
||||
GetExportVMConfig gets the full VM configuration
|
||||
|
||||
Gets configuration for all VM resources. If the VM is restored from a snapshot, the boot-source, machine-config.smt and machine-config.cpu_template will be empty.
|
||||
Gets configuration for all VM resources. If the VM is restored from a snapshot, the boot-source, machine-config.smt and machine-config.cpu_template will be empty.
|
||||
*/
|
||||
func (a *Client) GetExportVMConfig(params *GetExportVMConfigParams, opts ...ClientOption) (*GetExportVMConfigOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -312,7 +316,7 @@ func (a *Client) GetExportVMConfig(params *GetExportVMConfigParams, opts ...Clie
|
||||
}
|
||||
|
||||
/*
|
||||
GetFirecrackerVersion gets the firecracker version
|
||||
GetFirecrackerVersion gets the firecracker version
|
||||
*/
|
||||
func (a *Client) GetFirecrackerVersion(params *GetFirecrackerVersionParams, opts ...ClientOption) (*GetFirecrackerVersionOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -349,9 +353,9 @@ func (a *Client) GetFirecrackerVersion(params *GetFirecrackerVersionParams, opts
|
||||
}
|
||||
|
||||
/*
|
||||
GetMachineConfiguration gets the machine configuration of the VM
|
||||
GetMachineConfiguration gets the machine configuration of the VM
|
||||
|
||||
Gets the machine configuration of the VM. When called before the PUT operation, it will return the default values for the vCPU count (=1), memory size (=128 MiB). By default SMT is disabled and there is no CPU Template.
|
||||
Gets the machine configuration of the VM. When called before the PUT operation, it will return the default values for the vCPU count (=1), memory size (=128 MiB). By default SMT is disabled and there is no CPU Template.
|
||||
*/
|
||||
func (a *Client) GetMachineConfiguration(params *GetMachineConfigurationParams, opts ...ClientOption) (*GetMachineConfigurationOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -388,7 +392,7 @@ func (a *Client) GetMachineConfiguration(params *GetMachineConfigurationParams,
|
||||
}
|
||||
|
||||
/*
|
||||
GetMmds gets the m m d s data store
|
||||
GetMmds gets the m m d s data store
|
||||
*/
|
||||
func (a *Client) GetMmds(params *GetMmdsParams, opts ...ClientOption) (*GetMmdsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -425,9 +429,9 @@ func (a *Client) GetMmds(params *GetMmdsParams, opts ...ClientOption) (*GetMmdsO
|
||||
}
|
||||
|
||||
/*
|
||||
LoadSnapshot loads a snapshot pre boot only
|
||||
LoadSnapshot loads a snapshot pre boot only
|
||||
|
||||
Loads the microVM state from a snapshot. Only accepted on a fresh Firecracker process (before configuring any resource other than the Logger and Metrics).
|
||||
Loads the microVM state from a snapshot. Only accepted on a fresh Firecracker process (before configuring any resource other than the Logger and Metrics).
|
||||
*/
|
||||
func (a *Client) LoadSnapshot(params *LoadSnapshotParams, opts ...ClientOption) (*LoadSnapshotNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -464,9 +468,9 @@ func (a *Client) LoadSnapshot(params *LoadSnapshotParams, opts ...ClientOption)
|
||||
}
|
||||
|
||||
/*
|
||||
PatchBalloon updates a balloon device
|
||||
PatchBalloon updates a balloon device
|
||||
|
||||
Updates an existing balloon device, before or after machine startup. Will fail if update is not possible.
|
||||
Updates an existing balloon device, before or after machine startup. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PatchBalloon(params *PatchBalloonParams, opts ...ClientOption) (*PatchBalloonNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -503,9 +507,9 @@ func (a *Client) PatchBalloon(params *PatchBalloonParams, opts ...ClientOption)
|
||||
}
|
||||
|
||||
/*
|
||||
PatchBalloonStatsInterval updates a balloon device statistics polling interval
|
||||
PatchBalloonStatsInterval updates a balloon device statistics polling interval
|
||||
|
||||
Updates an existing balloon device statistics interval, before or after machine startup. Will fail if update is not possible.
|
||||
Updates an existing balloon device statistics interval, before or after machine startup. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PatchBalloonStatsInterval(params *PatchBalloonStatsIntervalParams, opts ...ClientOption) (*PatchBalloonStatsIntervalNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -542,9 +546,9 @@ func (a *Client) PatchBalloonStatsInterval(params *PatchBalloonStatsIntervalPara
|
||||
}
|
||||
|
||||
/*
|
||||
PatchGuestDriveByID updates the properties of a drive post boot only
|
||||
PatchGuestDriveByID updates the properties of a drive post boot only
|
||||
|
||||
Updates the properties of the drive with the ID specified by drive_id path parameter. Will fail if update is not possible.
|
||||
Updates the properties of the drive with the ID specified by drive_id path parameter. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PatchGuestDriveByID(params *PatchGuestDriveByIDParams, opts ...ClientOption) (*PatchGuestDriveByIDNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -581,9 +585,9 @@ func (a *Client) PatchGuestDriveByID(params *PatchGuestDriveByIDParams, opts ...
|
||||
}
|
||||
|
||||
/*
|
||||
PatchGuestNetworkInterfaceByID updates the rate limiters applied to a network interface post boot only
|
||||
PatchGuestNetworkInterfaceByID updates the rate limiters applied to a network interface post boot only
|
||||
|
||||
Updates the rate limiters applied to a network interface.
|
||||
Updates the rate limiters applied to a network interface.
|
||||
*/
|
||||
func (a *Client) PatchGuestNetworkInterfaceByID(params *PatchGuestNetworkInterfaceByIDParams, opts ...ClientOption) (*PatchGuestNetworkInterfaceByIDNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -620,9 +624,9 @@ func (a *Client) PatchGuestNetworkInterfaceByID(params *PatchGuestNetworkInterfa
|
||||
}
|
||||
|
||||
/*
|
||||
PatchMachineConfiguration partiallies updates the machine configuration of the VM pre boot only
|
||||
PatchMachineConfiguration partiallies updates the machine configuration of the VM pre boot only
|
||||
|
||||
Partially updates the Virtual Machine Configuration with the specified input. If any of the parameters has an incorrect value, the whole update fails.
|
||||
Partially updates the Virtual Machine Configuration with the specified input. If any of the parameters has an incorrect value, the whole update fails.
|
||||
*/
|
||||
func (a *Client) PatchMachineConfiguration(params *PatchMachineConfigurationParams, opts ...ClientOption) (*PatchMachineConfigurationNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -659,7 +663,7 @@ func (a *Client) PatchMachineConfiguration(params *PatchMachineConfigurationPara
|
||||
}
|
||||
|
||||
/*
|
||||
PatchMmds updates the m m d s data store
|
||||
PatchMmds updates the m m d s data store
|
||||
*/
|
||||
func (a *Client) PatchMmds(params *PatchMmdsParams, opts ...ClientOption) (*PatchMmdsNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -696,9 +700,9 @@ func (a *Client) PatchMmds(params *PatchMmdsParams, opts ...ClientOption) (*Patc
|
||||
}
|
||||
|
||||
/*
|
||||
PatchVM updates the micro VM state
|
||||
PatchVM updates the micro VM state
|
||||
|
||||
Sets the desired state (Paused or Resumed) for the microVM.
|
||||
Sets the desired state (Paused or Resumed) for the microVM.
|
||||
*/
|
||||
func (a *Client) PatchVM(params *PatchVMParams, opts ...ClientOption) (*PatchVMNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -735,9 +739,9 @@ func (a *Client) PatchVM(params *PatchVMParams, opts ...ClientOption) (*PatchVMN
|
||||
}
|
||||
|
||||
/*
|
||||
PutBalloon creates or updates a balloon device
|
||||
PutBalloon creates or updates a balloon device
|
||||
|
||||
Creates a new balloon device if one does not already exist, otherwise updates it, before machine startup. This will fail after machine startup. Will fail if update is not possible.
|
||||
Creates a new balloon device if one does not already exist, otherwise updates it, before machine startup. This will fail after machine startup. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PutBalloon(params *PutBalloonParams, opts ...ClientOption) (*PutBalloonNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -774,9 +778,87 @@ func (a *Client) PutBalloon(params *PutBalloonParams, opts ...ClientOption) (*Pu
|
||||
}
|
||||
|
||||
/*
|
||||
PutGuestBootSource creates or updates the boot source pre boot only
|
||||
PutCPUConfiguration configures CPU features flags for the v c p us of the guest VM pre boot only
|
||||
|
||||
Creates new boot source if one does not already exist, otherwise updates it. Will fail if update is not possible.
|
||||
Provides configuration to the Firecracker process to specify vCPU resource configuration prior to launching the guest machine.
|
||||
*/
|
||||
func (a *Client) PutCPUConfiguration(params *PutCPUConfigurationParams, opts ...ClientOption) (*PutCPUConfigurationNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPutCPUConfigurationParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "putCpuConfiguration",
|
||||
Method: "PUT",
|
||||
PathPattern: "/cpu-config",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &PutCPUConfigurationReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*PutCPUConfigurationNoContent)
|
||||
if ok {
|
||||
return success, nil
|
||||
}
|
||||
// unexpected success response
|
||||
unexpectedSuccess := result.(*PutCPUConfigurationDefault)
|
||||
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
|
||||
}
|
||||
|
||||
/*
|
||||
PutEntropyDevice creates an entropy device pre boot only
|
||||
|
||||
Enables an entropy device that provides high-quality random data to the guest.
|
||||
*/
|
||||
func (a *Client) PutEntropyDevice(params *PutEntropyDeviceParams, opts ...ClientOption) (*PutEntropyDeviceNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPutEntropyDeviceParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "putEntropyDevice",
|
||||
Method: "PUT",
|
||||
PathPattern: "/entropy",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &PutEntropyDeviceReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*PutEntropyDeviceNoContent)
|
||||
if ok {
|
||||
return success, nil
|
||||
}
|
||||
// unexpected success response
|
||||
unexpectedSuccess := result.(*PutEntropyDeviceDefault)
|
||||
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
|
||||
}
|
||||
|
||||
/*
|
||||
PutGuestBootSource creates or updates the boot source pre boot only
|
||||
|
||||
Creates new boot source if one does not already exist, otherwise updates it. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PutGuestBootSource(params *PutGuestBootSourceParams, opts ...ClientOption) (*PutGuestBootSourceNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -813,9 +895,9 @@ func (a *Client) PutGuestBootSource(params *PutGuestBootSourceParams, opts ...Cl
|
||||
}
|
||||
|
||||
/*
|
||||
PutGuestDriveByID creates or updates a drive pre boot only
|
||||
PutGuestDriveByID creates or updates a drive pre boot only
|
||||
|
||||
Creates new drive with ID specified by drive_id path parameter. If a drive with the specified ID already exists, updates its state based on new input. Will fail if update is not possible.
|
||||
Creates new drive with ID specified by drive_id path parameter. If a drive with the specified ID already exists, updates its state based on new input. Will fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PutGuestDriveByID(params *PutGuestDriveByIDParams, opts ...ClientOption) (*PutGuestDriveByIDNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -852,9 +934,9 @@ func (a *Client) PutGuestDriveByID(params *PutGuestDriveByIDParams, opts ...Clie
|
||||
}
|
||||
|
||||
/*
|
||||
PutGuestNetworkInterfaceByID creates a network interface pre boot only
|
||||
PutGuestNetworkInterfaceByID creates a network interface pre boot only
|
||||
|
||||
Creates new network interface with ID specified by iface_id path parameter.
|
||||
Creates new network interface with ID specified by iface_id path parameter.
|
||||
*/
|
||||
func (a *Client) PutGuestNetworkInterfaceByID(params *PutGuestNetworkInterfaceByIDParams, opts ...ClientOption) (*PutGuestNetworkInterfaceByIDNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -891,9 +973,9 @@ func (a *Client) PutGuestNetworkInterfaceByID(params *PutGuestNetworkInterfaceBy
|
||||
}
|
||||
|
||||
/*
|
||||
PutGuestVsock creates updates a vsock device pre boot only
|
||||
PutGuestVsock creates updates a vsock device pre boot only
|
||||
|
||||
The first call creates the device with the configuration specified in body. Subsequent calls will update the device configuration. May fail if update is not possible.
|
||||
The first call creates the device with the configuration specified in body. Subsequent calls will update the device configuration. May fail if update is not possible.
|
||||
*/
|
||||
func (a *Client) PutGuestVsock(params *PutGuestVsockParams, opts ...ClientOption) (*PutGuestVsockNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -930,7 +1012,7 @@ func (a *Client) PutGuestVsock(params *PutGuestVsockParams, opts ...ClientOption
|
||||
}
|
||||
|
||||
/*
|
||||
PutLogger initializes the logger by specifying a named pipe or a file for the logs output
|
||||
PutLogger initializes the logger by specifying a named pipe or a file for the logs output
|
||||
*/
|
||||
func (a *Client) PutLogger(params *PutLoggerParams, opts ...ClientOption) (*PutLoggerNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -967,9 +1049,9 @@ func (a *Client) PutLogger(params *PutLoggerParams, opts ...ClientOption) (*PutL
|
||||
}
|
||||
|
||||
/*
|
||||
PutMachineConfiguration updates the machine configuration of the VM pre boot only
|
||||
PutMachineConfiguration updates the machine configuration of the VM pre boot only
|
||||
|
||||
Updates the Virtual Machine Configuration with the specified input. Firecracker starts with default values for vCPU count (=1) and memory size (=128 MiB). The vCPU count is restricted to the [1, 32] range. With SMT enabled, the vCPU count is required to be either 1 or an even number in the range. otherwise there are no restrictions regarding the vCPU count. If any of the parameters has an incorrect value, the whole update fails. All parameters that are optional and are not specified are set to their default values (smt = false, track_dirty_pages = false, cpu_template = None).
|
||||
Updates the Virtual Machine Configuration with the specified input. Firecracker starts with default values for vCPU count (=1) and memory size (=128 MiB). The vCPU count is restricted to the [1, 32] range. With SMT enabled, the vCPU count is required to be either 1 or an even number in the range. otherwise there are no restrictions regarding the vCPU count. If any of the parameters has an incorrect value, the whole update fails. All parameters that are optional and are not specified are set to their default values (smt = false, track_dirty_pages = false, cpu_template = None).
|
||||
*/
|
||||
func (a *Client) PutMachineConfiguration(params *PutMachineConfigurationParams, opts ...ClientOption) (*PutMachineConfigurationNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -1006,7 +1088,7 @@ func (a *Client) PutMachineConfiguration(params *PutMachineConfigurationParams,
|
||||
}
|
||||
|
||||
/*
|
||||
PutMetrics initializes the metrics system by specifying a named pipe or a file for the metrics output
|
||||
PutMetrics initializes the metrics system by specifying a named pipe or a file for the metrics output
|
||||
*/
|
||||
func (a *Client) PutMetrics(params *PutMetricsParams, opts ...ClientOption) (*PutMetricsNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -1043,7 +1125,7 @@ func (a *Client) PutMetrics(params *PutMetricsParams, opts ...ClientOption) (*Pu
|
||||
}
|
||||
|
||||
/*
|
||||
PutMmds creates a m m d s microvm metadata service data store
|
||||
PutMmds creates a m m d s microvm metadata service data store
|
||||
*/
|
||||
func (a *Client) PutMmds(params *PutMmdsParams, opts ...ClientOption) (*PutMmdsNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@ -1080,9 +1162,9 @@ func (a *Client) PutMmds(params *PutMmdsParams, opts ...ClientOption) (*PutMmdsN
|
||||
}
|
||||
|
||||
/*
|
||||
PutMmdsConfig sets m m d s configuration pre boot only
|
||||
PutMmdsConfig sets m m d s configuration pre boot only
|
||||
|
||||
Configures MMDS version, IPv4 address used by the MMDS network stack and interfaces that allow MMDS requests.
|
||||
Configures MMDS version, IPv4 address used by the MMDS network stack and interfaces that allow MMDS requests.
|
||||
*/
|
||||
func (a *Client) PutMmdsConfig(params *PutMmdsConfigParams, opts ...ClientOption) (*PutMmdsConfigNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -54,10 +54,12 @@ func NewPatchBalloonParamsWithHTTPClient(client *http.Client) *PatchBalloonParam
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchBalloonParams contains all the parameters to send to the API endpoint
|
||||
for the patch balloon operation.
|
||||
/*
|
||||
PatchBalloonParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch balloon operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchBalloonParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchBalloonNoContent() *PatchBalloonNoContent {
|
||||
return &PatchBalloonNoContent{}
|
||||
}
|
||||
|
||||
/* PatchBalloonNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchBalloonNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Balloon device updated
|
||||
*/
|
||||
type PatchBalloonNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon no content response has a 2xx status code
|
||||
func (o *PatchBalloonNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon no content response has a 3xx status code
|
||||
func (o *PatchBalloonNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon no content response has a 4xx status code
|
||||
func (o *PatchBalloonNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon no content response has a 5xx status code
|
||||
func (o *PatchBalloonNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon no content response a status code equal to that given
|
||||
func (o *PatchBalloonNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchBalloonNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchBalloonBadRequest() *PatchBalloonBadRequest {
|
||||
return &PatchBalloonBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchBalloonBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchBalloonBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Balloon device cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchBalloonBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon bad request response has a 2xx status code
|
||||
func (o *PatchBalloonBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon bad request response has a 3xx status code
|
||||
func (o *PatchBalloonBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon bad request response has a 4xx status code
|
||||
func (o *PatchBalloonBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon bad request response has a 5xx status code
|
||||
func (o *PatchBalloonBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon bad request response a status code equal to that given
|
||||
func (o *PatchBalloonBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchBalloonBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchBalloonDefault(code int) *PatchBalloonDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchBalloonDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchBalloonDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchBalloonDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon default response has a 2xx status code
|
||||
func (o *PatchBalloonDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon default response has a 3xx status code
|
||||
func (o *PatchBalloonDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon default response has a 4xx status code
|
||||
func (o *PatchBalloonDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon default response has a 5xx status code
|
||||
func (o *PatchBalloonDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon default response a status code equal to that given
|
||||
func (o *PatchBalloonDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchBalloonDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloon default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloon default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchBalloonStatsIntervalParamsWithHTTPClient(client *http.Client) *Patc
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchBalloonStatsIntervalParams contains all the parameters to send to the API endpoint
|
||||
for the patch balloon stats interval operation.
|
||||
/*
|
||||
PatchBalloonStatsIntervalParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch balloon stats interval operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchBalloonStatsIntervalParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchBalloonStatsIntervalNoContent() *PatchBalloonStatsIntervalNoContent
|
||||
return &PatchBalloonStatsIntervalNoContent{}
|
||||
}
|
||||
|
||||
/* PatchBalloonStatsIntervalNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchBalloonStatsIntervalNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Balloon statistics interval updated
|
||||
*/
|
||||
type PatchBalloonStatsIntervalNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon stats interval no content response has a 2xx status code
|
||||
func (o *PatchBalloonStatsIntervalNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon stats interval no content response has a 3xx status code
|
||||
func (o *PatchBalloonStatsIntervalNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon stats interval no content response has a 4xx status code
|
||||
func (o *PatchBalloonStatsIntervalNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon stats interval no content response has a 5xx status code
|
||||
func (o *PatchBalloonStatsIntervalNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon stats interval no content response a status code equal to that given
|
||||
func (o *PatchBalloonStatsIntervalNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchBalloonStatsIntervalBadRequest() *PatchBalloonStatsIntervalBadReque
|
||||
return &PatchBalloonStatsIntervalBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchBalloonStatsIntervalBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchBalloonStatsIntervalBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Balloon statistics interval cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchBalloonStatsIntervalBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon stats interval bad request response has a 2xx status code
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon stats interval bad request response has a 3xx status code
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon stats interval bad request response has a 4xx status code
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon stats interval bad request response has a 5xx status code
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon stats interval bad request response a status code equal to that given
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchBalloonStatsIntervalDefault(code int) *PatchBalloonStatsIntervalDef
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchBalloonStatsIntervalDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchBalloonStatsIntervalDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchBalloonStatsIntervalDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch balloon stats interval default response has a 2xx status code
|
||||
func (o *PatchBalloonStatsIntervalDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch balloon stats interval default response has a 3xx status code
|
||||
func (o *PatchBalloonStatsIntervalDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch balloon stats interval default response has a 4xx status code
|
||||
func (o *PatchBalloonStatsIntervalDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch balloon stats interval default response has a 5xx status code
|
||||
func (o *PatchBalloonStatsIntervalDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch balloon stats interval default response a status code equal to that given
|
||||
func (o *PatchBalloonStatsIntervalDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsInterval default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsInterval default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchBalloonStatsIntervalDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchGuestDriveByIDParamsWithHTTPClient(client *http.Client) *PatchGuest
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||
for the patch guest drive by ID operation.
|
||||
/*
|
||||
PatchGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch guest drive by ID operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchGuestDriveByIDParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchGuestDriveByIDNoContent() *PatchGuestDriveByIDNoContent {
|
||||
return &PatchGuestDriveByIDNoContent{}
|
||||
}
|
||||
|
||||
/* PatchGuestDriveByIDNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchGuestDriveByIDNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Drive updated
|
||||
*/
|
||||
type PatchGuestDriveByIDNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest drive by Id no content response has a 2xx status code
|
||||
func (o *PatchGuestDriveByIDNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest drive by Id no content response has a 3xx status code
|
||||
func (o *PatchGuestDriveByIDNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest drive by Id no content response has a 4xx status code
|
||||
func (o *PatchGuestDriveByIDNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest drive by Id no content response has a 5xx status code
|
||||
func (o *PatchGuestDriveByIDNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest drive by Id no content response a status code equal to that given
|
||||
func (o *PatchGuestDriveByIDNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchGuestDriveByIDBadRequest() *PatchGuestDriveByIDBadRequest {
|
||||
return &PatchGuestDriveByIDBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchGuestDriveByIDBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchGuestDriveByIDBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Drive cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchGuestDriveByIDBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest drive by Id bad request response has a 2xx status code
|
||||
func (o *PatchGuestDriveByIDBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest drive by Id bad request response has a 3xx status code
|
||||
func (o *PatchGuestDriveByIDBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest drive by Id bad request response has a 4xx status code
|
||||
func (o *PatchGuestDriveByIDBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest drive by Id bad request response has a 5xx status code
|
||||
func (o *PatchGuestDriveByIDBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest drive by Id bad request response a status code equal to that given
|
||||
func (o *PatchGuestDriveByIDBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchGuestDriveByIDDefault(code int) *PatchGuestDriveByIDDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchGuestDriveByIDDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchGuestDriveByIDDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error.
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchGuestDriveByIDDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest drive by ID default response has a 2xx status code
|
||||
func (o *PatchGuestDriveByIDDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest drive by ID default response has a 3xx status code
|
||||
func (o *PatchGuestDriveByIDDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest drive by ID default response has a 4xx status code
|
||||
func (o *PatchGuestDriveByIDDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest drive by ID default response has a 5xx status code
|
||||
func (o *PatchGuestDriveByIDDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest drive by ID default response a status code equal to that given
|
||||
func (o *PatchGuestDriveByIDDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestDriveByIDDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchGuestNetworkInterfaceByIDParamsWithHTTPClient(client *http.Client)
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||
for the patch guest network interface by ID operation.
|
||||
/*
|
||||
PatchGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch guest network interface by ID operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchGuestNetworkInterfaceByIDParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchGuestNetworkInterfaceByIDNoContent() *PatchGuestNetworkInterfaceByI
|
||||
return &PatchGuestNetworkInterfaceByIDNoContent{}
|
||||
}
|
||||
|
||||
/* PatchGuestNetworkInterfaceByIDNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchGuestNetworkInterfaceByIDNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Network interface updated
|
||||
*/
|
||||
type PatchGuestNetworkInterfaceByIDNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest network interface by Id no content response has a 2xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest network interface by Id no content response has a 3xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest network interface by Id no content response has a 4xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest network interface by Id no content response has a 5xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest network interface by Id no content response a status code equal to that given
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchGuestNetworkInterfaceByIDBadRequest() *PatchGuestNetworkInterfaceBy
|
||||
return &PatchGuestNetworkInterfaceByIDBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchGuestNetworkInterfaceByIDBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchGuestNetworkInterfaceByIDBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Network interface cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchGuestNetworkInterfaceByIDBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest network interface by Id bad request response has a 2xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest network interface by Id bad request response has a 3xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest network interface by Id bad request response has a 4xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest network interface by Id bad request response has a 5xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest network interface by Id bad request response a status code equal to that given
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchGuestNetworkInterfaceByIDDefault(code int) *PatchGuestNetworkInterf
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchGuestNetworkInterfaceByIDDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchGuestNetworkInterfaceByIDDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchGuestNetworkInterfaceByIDDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch guest network interface by ID default response has a 2xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch guest network interface by ID default response has a 3xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch guest network interface by ID default response has a 4xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch guest network interface by ID default response has a 5xx status code
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch guest network interface by ID default response a status code equal to that given
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchMachineConfigurationParamsWithHTTPClient(client *http.Client) *Patc
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
for the patch machine configuration operation.
|
||||
/*
|
||||
PatchMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch machine configuration operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchMachineConfigurationParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchMachineConfigurationNoContent() *PatchMachineConfigurationNoContent
|
||||
return &PatchMachineConfigurationNoContent{}
|
||||
}
|
||||
|
||||
/* PatchMachineConfigurationNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchMachineConfigurationNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Machine Configuration created/updated
|
||||
*/
|
||||
type PatchMachineConfigurationNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch machine configuration no content response has a 2xx status code
|
||||
func (o *PatchMachineConfigurationNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch machine configuration no content response has a 3xx status code
|
||||
func (o *PatchMachineConfigurationNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch machine configuration no content response has a 4xx status code
|
||||
func (o *PatchMachineConfigurationNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch machine configuration no content response has a 5xx status code
|
||||
func (o *PatchMachineConfigurationNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch machine configuration no content response a status code equal to that given
|
||||
func (o *PatchMachineConfigurationNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchMachineConfigurationBadRequest() *PatchMachineConfigurationBadReque
|
||||
return &PatchMachineConfigurationBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchMachineConfigurationBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchMachineConfigurationBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Machine Configuration cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchMachineConfigurationBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch machine configuration bad request response has a 2xx status code
|
||||
func (o *PatchMachineConfigurationBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch machine configuration bad request response has a 3xx status code
|
||||
func (o *PatchMachineConfigurationBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch machine configuration bad request response has a 4xx status code
|
||||
func (o *PatchMachineConfigurationBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch machine configuration bad request response has a 5xx status code
|
||||
func (o *PatchMachineConfigurationBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch machine configuration bad request response a status code equal to that given
|
||||
func (o *PatchMachineConfigurationBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchMachineConfigurationDefault(code int) *PatchMachineConfigurationDef
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchMachineConfigurationDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch machine configuration default response has a 2xx status code
|
||||
func (o *PatchMachineConfigurationDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch machine configuration default response has a 3xx status code
|
||||
func (o *PatchMachineConfigurationDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch machine configuration default response has a 4xx status code
|
||||
func (o *PatchMachineConfigurationDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch machine configuration default response has a 5xx status code
|
||||
func (o *PatchMachineConfigurationDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch machine configuration default response a status code equal to that given
|
||||
func (o *PatchMachineConfigurationDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMachineConfigurationDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchMmdsParamsWithHTTPClient(client *http.Client) *PatchMmdsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchMmdsParams contains all the parameters to send to the API endpoint
|
||||
for the patch mmds operation.
|
||||
/*
|
||||
PatchMmdsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch mmds operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchMmdsParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchMmdsNoContent() *PatchMmdsNoContent {
|
||||
return &PatchMmdsNoContent{}
|
||||
}
|
||||
|
||||
/* PatchMmdsNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchMmdsNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
MMDS data store updated.
|
||||
*/
|
||||
type PatchMmdsNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch mmds no content response has a 2xx status code
|
||||
func (o *PatchMmdsNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch mmds no content response has a 3xx status code
|
||||
func (o *PatchMmdsNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch mmds no content response has a 4xx status code
|
||||
func (o *PatchMmdsNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch mmds no content response has a 5xx status code
|
||||
func (o *PatchMmdsNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch mmds no content response a status code equal to that given
|
||||
func (o *PatchMmdsNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchMmdsNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchMmdsBadRequest() *PatchMmdsBadRequest {
|
||||
return &PatchMmdsBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchMmdsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchMmdsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
MMDS data store cannot be updated due to bad input.
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchMmdsBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch mmds bad request response has a 2xx status code
|
||||
func (o *PatchMmdsBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch mmds bad request response has a 3xx status code
|
||||
func (o *PatchMmdsBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch mmds bad request response has a 4xx status code
|
||||
func (o *PatchMmdsBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch mmds bad request response has a 5xx status code
|
||||
func (o *PatchMmdsBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch mmds bad request response a status code equal to that given
|
||||
func (o *PatchMmdsBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchMmdsBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchMmdsDefault(code int) *PatchMmdsDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchMmdsDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchMmdsDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchMmdsDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch mmds default response has a 2xx status code
|
||||
func (o *PatchMmdsDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch mmds default response has a 3xx status code
|
||||
func (o *PatchMmdsDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch mmds default response has a 4xx status code
|
||||
func (o *PatchMmdsDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch mmds default response has a 5xx status code
|
||||
func (o *PatchMmdsDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch mmds default response a status code equal to that given
|
||||
func (o *PatchMmdsDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchMmdsDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchMmdsDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPatchVMParamsWithHTTPClient(client *http.Client) *PatchVMParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchVMParams contains all the parameters to send to the API endpoint
|
||||
for the patch Vm operation.
|
||||
/*
|
||||
PatchVMParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the patch Vm operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PatchVMParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPatchVMNoContent() *PatchVMNoContent {
|
||||
return &PatchVMNoContent{}
|
||||
}
|
||||
|
||||
/* PatchVMNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PatchVMNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Vm state updated
|
||||
*/
|
||||
type PatchVMNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch Vm no content response has a 2xx status code
|
||||
func (o *PatchVMNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch Vm no content response has a 3xx status code
|
||||
func (o *PatchVMNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch Vm no content response has a 4xx status code
|
||||
func (o *PatchVMNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch Vm no content response has a 5xx status code
|
||||
func (o *PatchVMNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch Vm no content response a status code equal to that given
|
||||
func (o *PatchVMNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PatchVMNoContent) Error() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchVMNoContent) String() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PatchVMNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPatchVMBadRequest() *PatchVMBadRequest {
|
||||
return &PatchVMBadRequest{}
|
||||
}
|
||||
|
||||
/* PatchVMBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PatchVMBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Vm state cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PatchVMBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch Vm bad request response has a 2xx status code
|
||||
func (o *PatchVMBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch Vm bad request response has a 3xx status code
|
||||
func (o *PatchVMBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch Vm bad request response has a 4xx status code
|
||||
func (o *PatchVMBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch Vm bad request response has a 5xx status code
|
||||
func (o *PatchVMBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch Vm bad request response a status code equal to that given
|
||||
func (o *PatchVMBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PatchVMBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchVMBadRequest) String() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchVMBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPatchVMDefault(code int) *PatchVMDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PatchVMDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PatchVMDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PatchVMDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this patch Vm default response has a 2xx status code
|
||||
func (o *PatchVMDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this patch Vm default response has a 3xx status code
|
||||
func (o *PatchVMDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this patch Vm default response has a 4xx status code
|
||||
func (o *PatchVMDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this patch Vm default response has a 5xx status code
|
||||
func (o *PatchVMDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this patch Vm default response a status code equal to that given
|
||||
func (o *PatchVMDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PatchVMDefault) Error() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVm default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchVMDefault) String() string {
|
||||
return fmt.Sprintf("[PATCH /vm][%d] patchVm default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PatchVMDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutBalloonParamsWithHTTPClient(client *http.Client) *PutBalloonParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutBalloonParams contains all the parameters to send to the API endpoint
|
||||
for the put balloon operation.
|
||||
/*
|
||||
PutBalloonParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put balloon operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutBalloonParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutBalloonNoContent() *PutBalloonNoContent {
|
||||
return &PutBalloonNoContent{}
|
||||
}
|
||||
|
||||
/* PutBalloonNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutBalloonNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Balloon device created/updated
|
||||
*/
|
||||
type PutBalloonNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put balloon no content response has a 2xx status code
|
||||
func (o *PutBalloonNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put balloon no content response has a 3xx status code
|
||||
func (o *PutBalloonNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put balloon no content response has a 4xx status code
|
||||
func (o *PutBalloonNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put balloon no content response has a 5xx status code
|
||||
func (o *PutBalloonNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put balloon no content response a status code equal to that given
|
||||
func (o *PutBalloonNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutBalloonNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutBalloonNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutBalloonNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutBalloonBadRequest() *PutBalloonBadRequest {
|
||||
return &PutBalloonBadRequest{}
|
||||
}
|
||||
|
||||
/* PutBalloonBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutBalloonBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Balloon device cannot be created/updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutBalloonBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put balloon bad request response has a 2xx status code
|
||||
func (o *PutBalloonBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put balloon bad request response has a 3xx status code
|
||||
func (o *PutBalloonBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put balloon bad request response has a 4xx status code
|
||||
func (o *PutBalloonBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put balloon bad request response has a 5xx status code
|
||||
func (o *PutBalloonBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put balloon bad request response a status code equal to that given
|
||||
func (o *PutBalloonBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutBalloonBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutBalloonBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutBalloonBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutBalloonDefault(code int) *PutBalloonDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutBalloonDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutBalloonDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutBalloonDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put balloon default response has a 2xx status code
|
||||
func (o *PutBalloonDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put balloon default response has a 3xx status code
|
||||
func (o *PutBalloonDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put balloon default response has a 4xx status code
|
||||
func (o *PutBalloonDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put balloon default response has a 5xx status code
|
||||
func (o *PutBalloonDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put balloon default response a status code equal to that given
|
||||
func (o *PutBalloonDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutBalloonDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloon default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutBalloonDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloon default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutBalloonDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -0,0 +1,153 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/firecracker/client/models"
|
||||
)
|
||||
|
||||
// NewPutCPUConfigurationParams creates a new PutCPUConfigurationParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewPutCPUConfigurationParams() *PutCPUConfigurationParams {
|
||||
return &PutCPUConfigurationParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationParamsWithTimeout creates a new PutCPUConfigurationParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPutCPUConfigurationParamsWithTimeout(timeout time.Duration) *PutCPUConfigurationParams {
|
||||
return &PutCPUConfigurationParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationParamsWithContext creates a new PutCPUConfigurationParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewPutCPUConfigurationParamsWithContext(ctx context.Context) *PutCPUConfigurationParams {
|
||||
return &PutCPUConfigurationParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationParamsWithHTTPClient creates a new PutCPUConfigurationParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPutCPUConfigurationParamsWithHTTPClient(client *http.Client) *PutCPUConfigurationParams {
|
||||
return &PutCPUConfigurationParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
PutCPUConfigurationParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the put Cpu configuration operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutCPUConfigurationParams struct {
|
||||
|
||||
/* Body.
|
||||
|
||||
CPU configuration request
|
||||
*/
|
||||
Body *models.CPUConfig
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the put Cpu configuration params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PutCPUConfigurationParams) WithDefaults() *PutCPUConfigurationParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the put Cpu configuration params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PutCPUConfigurationParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) WithTimeout(timeout time.Duration) *PutCPUConfigurationParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) WithContext(ctx context.Context) *PutCPUConfigurationParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) WithHTTPClient(client *http.Client) *PutCPUConfigurationParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithBody adds the body to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) WithBody(body *models.CPUConfig) *PutCPUConfigurationParams {
|
||||
o.SetBody(body)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetBody adds the body to the put Cpu configuration params
|
||||
func (o *PutCPUConfigurationParams) SetBody(body *models.CPUConfig) {
|
||||
o.Body = body
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *PutCPUConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
if o.Body != nil {
|
||||
if err := r.SetBodyParam(o.Body); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/firecracker/client/models"
|
||||
)
|
||||
|
||||
// PutCPUConfigurationReader is a Reader for the PutCPUConfiguration structure.
|
||||
type PutCPUConfigurationReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *PutCPUConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 204:
|
||||
result := NewPutCPUConfigurationNoContent()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 400:
|
||||
result := NewPutCPUConfigurationBadRequest()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
result := NewPutCPUConfigurationDefault(response.Code())
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if response.Code()/100 == 2 {
|
||||
return result, nil
|
||||
}
|
||||
return nil, result
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationNoContent creates a PutCPUConfigurationNoContent with default headers values
|
||||
func NewPutCPUConfigurationNoContent() *PutCPUConfigurationNoContent {
|
||||
return &PutCPUConfigurationNoContent{}
|
||||
}
|
||||
|
||||
/*
|
||||
PutCPUConfigurationNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
CPU configuration set successfully
|
||||
*/
|
||||
type PutCPUConfigurationNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put Cpu configuration no content response has a 2xx status code
|
||||
func (o *PutCPUConfigurationNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put Cpu configuration no content response has a 3xx status code
|
||||
func (o *PutCPUConfigurationNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put Cpu configuration no content response has a 4xx status code
|
||||
func (o *PutCPUConfigurationNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put Cpu configuration no content response has a 5xx status code
|
||||
func (o *PutCPUConfigurationNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put Cpu configuration no content response a status code equal to that given
|
||||
func (o *PutCPUConfigurationNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationBadRequest creates a PutCPUConfigurationBadRequest with default headers values
|
||||
func NewPutCPUConfigurationBadRequest() *PutCPUConfigurationBadRequest {
|
||||
return &PutCPUConfigurationBadRequest{}
|
||||
}
|
||||
|
||||
/*
|
||||
PutCPUConfigurationBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
CPU configuration cannot be updated due to invalid input format
|
||||
*/
|
||||
type PutCPUConfigurationBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put Cpu configuration bad request response has a 2xx status code
|
||||
func (o *PutCPUConfigurationBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put Cpu configuration bad request response has a 3xx status code
|
||||
func (o *PutCPUConfigurationBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put Cpu configuration bad request response has a 4xx status code
|
||||
func (o *PutCPUConfigurationBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put Cpu configuration bad request response has a 5xx status code
|
||||
func (o *PutCPUConfigurationBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put Cpu configuration bad request response a status code equal to that given
|
||||
func (o *PutCPUConfigurationBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPutCPUConfigurationDefault creates a PutCPUConfigurationDefault with default headers values
|
||||
func NewPutCPUConfigurationDefault(code int) *PutCPUConfigurationDefault {
|
||||
return &PutCPUConfigurationDefault{
|
||||
_statusCode: code,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
PutCPUConfigurationDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
type PutCPUConfigurationDefault struct {
|
||||
_statusCode int
|
||||
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// Code gets the status code for the put Cpu configuration default response
|
||||
func (o *PutCPUConfigurationDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put Cpu configuration default response has a 2xx status code
|
||||
func (o *PutCPUConfigurationDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put Cpu configuration default response has a 3xx status code
|
||||
func (o *PutCPUConfigurationDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put Cpu configuration default response has a 4xx status code
|
||||
func (o *PutCPUConfigurationDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put Cpu configuration default response has a 5xx status code
|
||||
func (o *PutCPUConfigurationDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put Cpu configuration default response a status code equal to that given
|
||||
func (o *PutCPUConfigurationDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /cpu-config][%d] putCpuConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PutCPUConfigurationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/firecracker/client/models"
|
||||
)
|
||||
|
||||
// NewPutEntropyDeviceParams creates a new PutEntropyDeviceParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewPutEntropyDeviceParams() *PutEntropyDeviceParams {
|
||||
return &PutEntropyDeviceParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutEntropyDeviceParamsWithTimeout creates a new PutEntropyDeviceParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPutEntropyDeviceParamsWithTimeout(timeout time.Duration) *PutEntropyDeviceParams {
|
||||
return &PutEntropyDeviceParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutEntropyDeviceParamsWithContext creates a new PutEntropyDeviceParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewPutEntropyDeviceParamsWithContext(ctx context.Context) *PutEntropyDeviceParams {
|
||||
return &PutEntropyDeviceParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutEntropyDeviceParamsWithHTTPClient creates a new PutEntropyDeviceParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPutEntropyDeviceParamsWithHTTPClient(client *http.Client) *PutEntropyDeviceParams {
|
||||
return &PutEntropyDeviceParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
PutEntropyDeviceParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the put entropy device operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutEntropyDeviceParams struct {
|
||||
|
||||
/* Body.
|
||||
|
||||
Guest entropy device properties
|
||||
*/
|
||||
Body *models.EntropyDevice
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the put entropy device params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PutEntropyDeviceParams) WithDefaults() *PutEntropyDeviceParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the put entropy device params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PutEntropyDeviceParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) WithTimeout(timeout time.Duration) *PutEntropyDeviceParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) WithContext(ctx context.Context) *PutEntropyDeviceParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) WithHTTPClient(client *http.Client) *PutEntropyDeviceParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithBody adds the body to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) WithBody(body *models.EntropyDevice) *PutEntropyDeviceParams {
|
||||
o.SetBody(body)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetBody adds the body to the put entropy device params
|
||||
func (o *PutEntropyDeviceParams) SetBody(body *models.EntropyDevice) {
|
||||
o.Body = body
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *PutEntropyDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
if o.Body != nil {
|
||||
if err := r.SetBodyParam(o.Body); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/firecracker/client/models"
|
||||
)
|
||||
|
||||
// PutEntropyDeviceReader is a Reader for the PutEntropyDevice structure.
|
||||
type PutEntropyDeviceReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *PutEntropyDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 204:
|
||||
result := NewPutEntropyDeviceNoContent()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
default:
|
||||
result := NewPutEntropyDeviceDefault(response.Code())
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if response.Code()/100 == 2 {
|
||||
return result, nil
|
||||
}
|
||||
return nil, result
|
||||
}
|
||||
}
|
||||
|
||||
// NewPutEntropyDeviceNoContent creates a PutEntropyDeviceNoContent with default headers values
|
||||
func NewPutEntropyDeviceNoContent() *PutEntropyDeviceNoContent {
|
||||
return &PutEntropyDeviceNoContent{}
|
||||
}
|
||||
|
||||
/*
|
||||
PutEntropyDeviceNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Entropy device created
|
||||
*/
|
||||
type PutEntropyDeviceNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put entropy device no content response has a 2xx status code
|
||||
func (o *PutEntropyDeviceNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put entropy device no content response has a 3xx status code
|
||||
func (o *PutEntropyDeviceNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put entropy device no content response has a 4xx status code
|
||||
func (o *PutEntropyDeviceNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put entropy device no content response has a 5xx status code
|
||||
func (o *PutEntropyDeviceNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put entropy device no content response a status code equal to that given
|
||||
func (o *PutEntropyDeviceNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /entropy][%d] putEntropyDeviceNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /entropy][%d] putEntropyDeviceNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPutEntropyDeviceDefault creates a PutEntropyDeviceDefault with default headers values
|
||||
func NewPutEntropyDeviceDefault(code int) *PutEntropyDeviceDefault {
|
||||
return &PutEntropyDeviceDefault{
|
||||
_statusCode: code,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
PutEntropyDeviceDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
type PutEntropyDeviceDefault struct {
|
||||
_statusCode int
|
||||
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// Code gets the status code for the put entropy device default response
|
||||
func (o *PutEntropyDeviceDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put entropy device default response has a 2xx status code
|
||||
func (o *PutEntropyDeviceDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put entropy device default response has a 3xx status code
|
||||
func (o *PutEntropyDeviceDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put entropy device default response has a 4xx status code
|
||||
func (o *PutEntropyDeviceDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put entropy device default response has a 5xx status code
|
||||
func (o *PutEntropyDeviceDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put entropy device default response a status code equal to that given
|
||||
func (o *PutEntropyDeviceDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /entropy][%d] putEntropyDevice default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /entropy][%d] putEntropyDevice default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PutEntropyDeviceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
@ -54,10 +54,12 @@ func NewPutGuestBootSourceParamsWithHTTPClient(client *http.Client) *PutGuestBoo
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestBootSourceParams contains all the parameters to send to the API endpoint
|
||||
for the put guest boot source operation.
|
||||
/*
|
||||
PutGuestBootSourceParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put guest boot source operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutGuestBootSourceParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutGuestBootSourceNoContent() *PutGuestBootSourceNoContent {
|
||||
return &PutGuestBootSourceNoContent{}
|
||||
}
|
||||
|
||||
/* PutGuestBootSourceNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutGuestBootSourceNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Boot source created/updated
|
||||
*/
|
||||
type PutGuestBootSourceNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest boot source no content response has a 2xx status code
|
||||
func (o *PutGuestBootSourceNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest boot source no content response has a 3xx status code
|
||||
func (o *PutGuestBootSourceNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest boot source no content response has a 4xx status code
|
||||
func (o *PutGuestBootSourceNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest boot source no content response has a 5xx status code
|
||||
func (o *PutGuestBootSourceNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest boot source no content response a status code equal to that given
|
||||
func (o *PutGuestBootSourceNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutGuestBootSourceBadRequest() *PutGuestBootSourceBadRequest {
|
||||
return &PutGuestBootSourceBadRequest{}
|
||||
}
|
||||
|
||||
/* PutGuestBootSourceBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutGuestBootSourceBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Boot source cannot be created due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutGuestBootSourceBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest boot source bad request response has a 2xx status code
|
||||
func (o *PutGuestBootSourceBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest boot source bad request response has a 3xx status code
|
||||
func (o *PutGuestBootSourceBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest boot source bad request response has a 4xx status code
|
||||
func (o *PutGuestBootSourceBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest boot source bad request response has a 5xx status code
|
||||
func (o *PutGuestBootSourceBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest boot source bad request response a status code equal to that given
|
||||
func (o *PutGuestBootSourceBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutGuestBootSourceDefault(code int) *PutGuestBootSourceDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestBootSourceDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutGuestBootSourceDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutGuestBootSourceDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest boot source default response has a 2xx status code
|
||||
func (o *PutGuestBootSourceDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest boot source default response has a 3xx status code
|
||||
func (o *PutGuestBootSourceDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest boot source default response has a 4xx status code
|
||||
func (o *PutGuestBootSourceDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest boot source default response has a 5xx status code
|
||||
func (o *PutGuestBootSourceDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest boot source default response a status code equal to that given
|
||||
func (o *PutGuestBootSourceDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSource default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSource default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestBootSourceDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutGuestDriveByIDParamsWithHTTPClient(client *http.Client) *PutGuestDriv
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||
for the put guest drive by ID operation.
|
||||
/*
|
||||
PutGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put guest drive by ID operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutGuestDriveByIDParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutGuestDriveByIDNoContent() *PutGuestDriveByIDNoContent {
|
||||
return &PutGuestDriveByIDNoContent{}
|
||||
}
|
||||
|
||||
/* PutGuestDriveByIDNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutGuestDriveByIDNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Drive created/updated
|
||||
*/
|
||||
type PutGuestDriveByIDNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest drive by Id no content response has a 2xx status code
|
||||
func (o *PutGuestDriveByIDNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest drive by Id no content response has a 3xx status code
|
||||
func (o *PutGuestDriveByIDNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest drive by Id no content response has a 4xx status code
|
||||
func (o *PutGuestDriveByIDNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest drive by Id no content response has a 5xx status code
|
||||
func (o *PutGuestDriveByIDNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest drive by Id no content response a status code equal to that given
|
||||
func (o *PutGuestDriveByIDNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutGuestDriveByIDBadRequest() *PutGuestDriveByIDBadRequest {
|
||||
return &PutGuestDriveByIDBadRequest{}
|
||||
}
|
||||
|
||||
/* PutGuestDriveByIDBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutGuestDriveByIDBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Drive cannot be created/updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutGuestDriveByIDBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest drive by Id bad request response has a 2xx status code
|
||||
func (o *PutGuestDriveByIDBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest drive by Id bad request response has a 3xx status code
|
||||
func (o *PutGuestDriveByIDBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest drive by Id bad request response has a 4xx status code
|
||||
func (o *PutGuestDriveByIDBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest drive by Id bad request response has a 5xx status code
|
||||
func (o *PutGuestDriveByIDBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest drive by Id bad request response a status code equal to that given
|
||||
func (o *PutGuestDriveByIDBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutGuestDriveByIDDefault(code int) *PutGuestDriveByIDDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestDriveByIDDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutGuestDriveByIDDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error.
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutGuestDriveByIDDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest drive by ID default response has a 2xx status code
|
||||
func (o *PutGuestDriveByIDDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest drive by ID default response has a 3xx status code
|
||||
func (o *PutGuestDriveByIDDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest drive by ID default response has a 4xx status code
|
||||
func (o *PutGuestDriveByIDDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest drive by ID default response has a 5xx status code
|
||||
func (o *PutGuestDriveByIDDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest drive by ID default response a status code equal to that given
|
||||
func (o *PutGuestDriveByIDDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestDriveByIDDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutGuestNetworkInterfaceByIDParamsWithHTTPClient(client *http.Client) *P
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||
for the put guest network interface by ID operation.
|
||||
/*
|
||||
PutGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put guest network interface by ID operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutGuestNetworkInterfaceByIDParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutGuestNetworkInterfaceByIDNoContent() *PutGuestNetworkInterfaceByIDNoC
|
||||
return &PutGuestNetworkInterfaceByIDNoContent{}
|
||||
}
|
||||
|
||||
/* PutGuestNetworkInterfaceByIDNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutGuestNetworkInterfaceByIDNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Network interface created/updated
|
||||
*/
|
||||
type PutGuestNetworkInterfaceByIDNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest network interface by Id no content response has a 2xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest network interface by Id no content response has a 3xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest network interface by Id no content response has a 4xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest network interface by Id no content response has a 5xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest network interface by Id no content response a status code equal to that given
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutGuestNetworkInterfaceByIDBadRequest() *PutGuestNetworkInterfaceByIDBa
|
||||
return &PutGuestNetworkInterfaceByIDBadRequest{}
|
||||
}
|
||||
|
||||
/* PutGuestNetworkInterfaceByIDBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutGuestNetworkInterfaceByIDBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Network interface cannot be created due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutGuestNetworkInterfaceByIDBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest network interface by Id bad request response has a 2xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest network interface by Id bad request response has a 3xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest network interface by Id bad request response has a 4xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest network interface by Id bad request response has a 5xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest network interface by Id bad request response a status code equal to that given
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutGuestNetworkInterfaceByIDDefault(code int) *PutGuestNetworkInterfaceB
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestNetworkInterfaceByIDDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutGuestNetworkInterfaceByIDDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutGuestNetworkInterfaceByIDDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest network interface by ID default response has a 2xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest network interface by ID default response has a 3xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest network interface by ID default response has a 4xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest network interface by ID default response has a 5xx status code
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest network interface by ID default response a status code equal to that given
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutGuestVsockParamsWithHTTPClient(client *http.Client) *PutGuestVsockPar
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestVsockParams contains all the parameters to send to the API endpoint
|
||||
for the put guest vsock operation.
|
||||
/*
|
||||
PutGuestVsockParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put guest vsock operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutGuestVsockParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutGuestVsockNoContent() *PutGuestVsockNoContent {
|
||||
return &PutGuestVsockNoContent{}
|
||||
}
|
||||
|
||||
/* PutGuestVsockNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutGuestVsockNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Vsock created/updated
|
||||
*/
|
||||
type PutGuestVsockNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest vsock no content response has a 2xx status code
|
||||
func (o *PutGuestVsockNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest vsock no content response has a 3xx status code
|
||||
func (o *PutGuestVsockNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest vsock no content response has a 4xx status code
|
||||
func (o *PutGuestVsockNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest vsock no content response has a 5xx status code
|
||||
func (o *PutGuestVsockNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest vsock no content response a status code equal to that given
|
||||
func (o *PutGuestVsockNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutGuestVsockBadRequest() *PutGuestVsockBadRequest {
|
||||
return &PutGuestVsockBadRequest{}
|
||||
}
|
||||
|
||||
/* PutGuestVsockBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutGuestVsockBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Vsock cannot be created due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutGuestVsockBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest vsock bad request response has a 2xx status code
|
||||
func (o *PutGuestVsockBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest vsock bad request response has a 3xx status code
|
||||
func (o *PutGuestVsockBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest vsock bad request response has a 4xx status code
|
||||
func (o *PutGuestVsockBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest vsock bad request response has a 5xx status code
|
||||
func (o *PutGuestVsockBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest vsock bad request response a status code equal to that given
|
||||
func (o *PutGuestVsockBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutGuestVsockDefault(code int) *PutGuestVsockDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutGuestVsockDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutGuestVsockDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutGuestVsockDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put guest vsock default response has a 2xx status code
|
||||
func (o *PutGuestVsockDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put guest vsock default response has a 3xx status code
|
||||
func (o *PutGuestVsockDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put guest vsock default response has a 4xx status code
|
||||
func (o *PutGuestVsockDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put guest vsock default response has a 5xx status code
|
||||
func (o *PutGuestVsockDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put guest vsock default response a status code equal to that given
|
||||
func (o *PutGuestVsockDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsock default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsock default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutGuestVsockDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutLoggerParamsWithHTTPClient(client *http.Client) *PutLoggerParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutLoggerParams contains all the parameters to send to the API endpoint
|
||||
for the put logger operation.
|
||||
/*
|
||||
PutLoggerParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put logger operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutLoggerParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutLoggerNoContent() *PutLoggerNoContent {
|
||||
return &PutLoggerNoContent{}
|
||||
}
|
||||
|
||||
/* PutLoggerNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutLoggerNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Logger created.
|
||||
*/
|
||||
type PutLoggerNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put logger no content response has a 2xx status code
|
||||
func (o *PutLoggerNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put logger no content response has a 3xx status code
|
||||
func (o *PutLoggerNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put logger no content response has a 4xx status code
|
||||
func (o *PutLoggerNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put logger no content response has a 5xx status code
|
||||
func (o *PutLoggerNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put logger no content response a status code equal to that given
|
||||
func (o *PutLoggerNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutLoggerNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutLoggerNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutLoggerNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutLoggerBadRequest() *PutLoggerBadRequest {
|
||||
return &PutLoggerBadRequest{}
|
||||
}
|
||||
|
||||
/* PutLoggerBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutLoggerBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Logger cannot be initialized due to bad input.
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutLoggerBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put logger bad request response has a 2xx status code
|
||||
func (o *PutLoggerBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put logger bad request response has a 3xx status code
|
||||
func (o *PutLoggerBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put logger bad request response has a 4xx status code
|
||||
func (o *PutLoggerBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put logger bad request response has a 5xx status code
|
||||
func (o *PutLoggerBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put logger bad request response a status code equal to that given
|
||||
func (o *PutLoggerBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutLoggerBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutLoggerBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutLoggerBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutLoggerDefault(code int) *PutLoggerDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutLoggerDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutLoggerDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error.
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutLoggerDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put logger default response has a 2xx status code
|
||||
func (o *PutLoggerDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put logger default response has a 3xx status code
|
||||
func (o *PutLoggerDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put logger default response has a 4xx status code
|
||||
func (o *PutLoggerDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put logger default response has a 5xx status code
|
||||
func (o *PutLoggerDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put logger default response a status code equal to that given
|
||||
func (o *PutLoggerDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutLoggerDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLogger default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutLoggerDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /logger][%d] putLogger default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutLoggerDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutMachineConfigurationParamsWithHTTPClient(client *http.Client) *PutMac
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
for the put machine configuration operation.
|
||||
/*
|
||||
PutMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put machine configuration operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutMachineConfigurationParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutMachineConfigurationNoContent() *PutMachineConfigurationNoContent {
|
||||
return &PutMachineConfigurationNoContent{}
|
||||
}
|
||||
|
||||
/* PutMachineConfigurationNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutMachineConfigurationNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Machine Configuration created/updated
|
||||
*/
|
||||
type PutMachineConfigurationNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put machine configuration no content response has a 2xx status code
|
||||
func (o *PutMachineConfigurationNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put machine configuration no content response has a 3xx status code
|
||||
func (o *PutMachineConfigurationNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put machine configuration no content response has a 4xx status code
|
||||
func (o *PutMachineConfigurationNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put machine configuration no content response has a 5xx status code
|
||||
func (o *PutMachineConfigurationNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put machine configuration no content response a status code equal to that given
|
||||
func (o *PutMachineConfigurationNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutMachineConfigurationBadRequest() *PutMachineConfigurationBadRequest {
|
||||
return &PutMachineConfigurationBadRequest{}
|
||||
}
|
||||
|
||||
/* PutMachineConfigurationBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutMachineConfigurationBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Machine Configuration cannot be updated due to bad input
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutMachineConfigurationBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put machine configuration bad request response has a 2xx status code
|
||||
func (o *PutMachineConfigurationBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put machine configuration bad request response has a 3xx status code
|
||||
func (o *PutMachineConfigurationBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put machine configuration bad request response has a 4xx status code
|
||||
func (o *PutMachineConfigurationBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put machine configuration bad request response has a 5xx status code
|
||||
func (o *PutMachineConfigurationBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put machine configuration bad request response a status code equal to that given
|
||||
func (o *PutMachineConfigurationBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutMachineConfigurationDefault(code int) *PutMachineConfigurationDefault
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutMachineConfigurationDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutMachineConfigurationDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put machine configuration default response has a 2xx status code
|
||||
func (o *PutMachineConfigurationDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put machine configuration default response has a 3xx status code
|
||||
func (o *PutMachineConfigurationDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put machine configuration default response has a 4xx status code
|
||||
func (o *PutMachineConfigurationDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put machine configuration default response has a 5xx status code
|
||||
func (o *PutMachineConfigurationDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put machine configuration default response a status code equal to that given
|
||||
func (o *PutMachineConfigurationDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfiguration default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMachineConfigurationDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutMetricsParamsWithHTTPClient(client *http.Client) *PutMetricsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMetricsParams contains all the parameters to send to the API endpoint
|
||||
for the put metrics operation.
|
||||
/*
|
||||
PutMetricsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put metrics operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutMetricsParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutMetricsNoContent() *PutMetricsNoContent {
|
||||
return &PutMetricsNoContent{}
|
||||
}
|
||||
|
||||
/* PutMetricsNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutMetricsNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
Metrics system created.
|
||||
*/
|
||||
type PutMetricsNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put metrics no content response has a 2xx status code
|
||||
func (o *PutMetricsNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put metrics no content response has a 3xx status code
|
||||
func (o *PutMetricsNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put metrics no content response has a 4xx status code
|
||||
func (o *PutMetricsNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put metrics no content response has a 5xx status code
|
||||
func (o *PutMetricsNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put metrics no content response a status code equal to that given
|
||||
func (o *PutMetricsNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutMetricsNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMetricsNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMetricsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,17 +103,48 @@ func NewPutMetricsBadRequest() *PutMetricsBadRequest {
|
||||
return &PutMetricsBadRequest{}
|
||||
}
|
||||
|
||||
/* PutMetricsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutMetricsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Metrics system cannot be initialized due to bad input.
|
||||
Metrics system cannot be initialized due to bad input request or metrics system already initialized.
|
||||
*/
|
||||
type PutMetricsBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put metrics bad request response has a 2xx status code
|
||||
func (o *PutMetricsBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put metrics bad request response has a 3xx status code
|
||||
func (o *PutMetricsBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put metrics bad request response has a 4xx status code
|
||||
func (o *PutMetricsBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put metrics bad request response has a 5xx status code
|
||||
func (o *PutMetricsBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put metrics bad request response a status code equal to that given
|
||||
func (o *PutMetricsBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutMetricsBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMetricsBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMetricsBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutMetricsDefault(code int) *PutMetricsDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMetricsDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutMetricsDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error.
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutMetricsDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put metrics default response has a 2xx status code
|
||||
func (o *PutMetricsDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put metrics default response has a 3xx status code
|
||||
func (o *PutMetricsDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put metrics default response has a 4xx status code
|
||||
func (o *PutMetricsDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put metrics default response has a 5xx status code
|
||||
func (o *PutMetricsDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put metrics default response a status code equal to that given
|
||||
func (o *PutMetricsDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutMetricsDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetrics default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMetricsDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /metrics][%d] putMetrics default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMetricsDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutMmdsConfigParamsWithHTTPClient(client *http.Client) *PutMmdsConfigPar
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMmdsConfigParams contains all the parameters to send to the API endpoint
|
||||
for the put mmds config operation.
|
||||
/*
|
||||
PutMmdsConfigParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put mmds config operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutMmdsConfigParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutMmdsConfigNoContent() *PutMmdsConfigNoContent {
|
||||
return &PutMmdsConfigNoContent{}
|
||||
}
|
||||
|
||||
/* PutMmdsConfigNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutMmdsConfigNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
MMDS configuration was created/updated.
|
||||
*/
|
||||
type PutMmdsConfigNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds config no content response has a 2xx status code
|
||||
func (o *PutMmdsConfigNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds config no content response has a 3xx status code
|
||||
func (o *PutMmdsConfigNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds config no content response has a 4xx status code
|
||||
func (o *PutMmdsConfigNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds config no content response has a 5xx status code
|
||||
func (o *PutMmdsConfigNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds config no content response a status code equal to that given
|
||||
func (o *PutMmdsConfigNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutMmdsConfigBadRequest() *PutMmdsConfigBadRequest {
|
||||
return &PutMmdsConfigBadRequest{}
|
||||
}
|
||||
|
||||
/* PutMmdsConfigBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutMmdsConfigBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
MMDS configuration cannot be updated due to bad input.
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutMmdsConfigBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds config bad request response has a 2xx status code
|
||||
func (o *PutMmdsConfigBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds config bad request response has a 3xx status code
|
||||
func (o *PutMmdsConfigBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds config bad request response has a 4xx status code
|
||||
func (o *PutMmdsConfigBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds config bad request response has a 5xx status code
|
||||
func (o *PutMmdsConfigBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds config bad request response a status code equal to that given
|
||||
func (o *PutMmdsConfigBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutMmdsConfigDefault(code int) *PutMmdsConfigDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMmdsConfigDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutMmdsConfigDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutMmdsConfigDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds config default response has a 2xx status code
|
||||
func (o *PutMmdsConfigDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds config default response has a 3xx status code
|
||||
func (o *PutMmdsConfigDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds config default response has a 4xx status code
|
||||
func (o *PutMmdsConfigDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds config default response has a 5xx status code
|
||||
func (o *PutMmdsConfigDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds config default response a status code equal to that given
|
||||
func (o *PutMmdsConfigDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfig default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsConfigDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -54,10 +54,12 @@ func NewPutMmdsParamsWithHTTPClient(client *http.Client) *PutMmdsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMmdsParams contains all the parameters to send to the API endpoint
|
||||
for the put mmds operation.
|
||||
/*
|
||||
PutMmdsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put mmds operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutMmdsParams struct {
|
||||
|
||||
|
@ -52,17 +52,47 @@ func NewPutMmdsNoContent() *PutMmdsNoContent {
|
||||
return &PutMmdsNoContent{}
|
||||
}
|
||||
|
||||
/* PutMmdsNoContent describes a response with status code 204, with default header values.
|
||||
/*
|
||||
PutMmdsNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
MMDS data store created/updated.
|
||||
*/
|
||||
type PutMmdsNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds no content response has a 2xx status code
|
||||
func (o *PutMmdsNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds no content response has a 3xx status code
|
||||
func (o *PutMmdsNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds no content response has a 4xx status code
|
||||
func (o *PutMmdsNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds no content response has a 5xx status code
|
||||
func (o *PutMmdsNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds no content response a status code equal to that given
|
||||
func (o *PutMmdsNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
func (o *PutMmdsNoContent) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMmdsNoContent) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *PutMmdsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
@ -73,7 +103,8 @@ func NewPutMmdsBadRequest() *PutMmdsBadRequest {
|
||||
return &PutMmdsBadRequest{}
|
||||
}
|
||||
|
||||
/* PutMmdsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PutMmdsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
MMDS data store cannot be created due to bad input.
|
||||
*/
|
||||
@ -81,9 +112,39 @@ type PutMmdsBadRequest struct {
|
||||
Payload *models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds bad request response has a 2xx status code
|
||||
func (o *PutMmdsBadRequest) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds bad request response has a 3xx status code
|
||||
func (o *PutMmdsBadRequest) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds bad request response has a 4xx status code
|
||||
func (o *PutMmdsBadRequest) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds bad request response has a 5xx status code
|
||||
func (o *PutMmdsBadRequest) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds bad request response a status code equal to that given
|
||||
func (o *PutMmdsBadRequest) IsCode(code int) bool {
|
||||
return code == 400
|
||||
}
|
||||
|
||||
func (o *PutMmdsBadRequest) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsBadRequest) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsBadRequest %+v", 400, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsBadRequest) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
@ -107,7 +168,8 @@ func NewPutMmdsDefault(code int) *PutMmdsDefault {
|
||||
}
|
||||
}
|
||||
|
||||
/* PutMmdsDefault describes a response with status code -1, with default header values.
|
||||
/*
|
||||
PutMmdsDefault describes a response with status code -1, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
@ -122,9 +184,39 @@ func (o *PutMmdsDefault) Code() int {
|
||||
return o._statusCode
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put mmds default response has a 2xx status code
|
||||
func (o *PutMmdsDefault) IsSuccess() bool {
|
||||
return o._statusCode/100 == 2
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put mmds default response has a 3xx status code
|
||||
func (o *PutMmdsDefault) IsRedirect() bool {
|
||||
return o._statusCode/100 == 3
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put mmds default response has a 4xx status code
|
||||
func (o *PutMmdsDefault) IsClientError() bool {
|
||||
return o._statusCode/100 == 4
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put mmds default response has a 5xx status code
|
||||
func (o *PutMmdsDefault) IsServerError() bool {
|
||||
return o._statusCode/100 == 5
|
||||
}
|
||||
|
||||
// IsCode returns true when this put mmds default response a status code equal to that given
|
||||
func (o *PutMmdsDefault) IsCode(code int) bool {
|
||||
return o._statusCode == code
|
||||
}
|
||||
|
||||
func (o *PutMmdsDefault) Error() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsDefault) String() string {
|
||||
return fmt.Sprintf("[PUT /mmds][%d] putMmds default %+v", o._statusCode, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutMmdsDefault) GetPayload() *models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ info:
|
||||
The API is accessible through HTTP calls on specific URLs
|
||||
carrying JSON modeled data.
|
||||
The transport medium is a Unix Domain Socket.
|
||||
version: 1.1.0
|
||||
version: 1.4.0
|
||||
termsOfService: ""
|
||||
contact:
|
||||
email: "compute-capsule@amazon.com"
|
||||
@ -195,6 +195,32 @@ paths:
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
|
||||
/cpu-config:
|
||||
put:
|
||||
summary: Configures CPU features flags for the vCPUs of the guest VM. Pre-boot only.
|
||||
description:
|
||||
Provides configuration to the Firecracker process to specify vCPU resource configuration prior to
|
||||
launching the guest machine.
|
||||
operationId: putCpuConfiguration
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
description: CPU configuration request
|
||||
schema:
|
||||
$ref: "#/definitions/CpuConfig"
|
||||
responses:
|
||||
204:
|
||||
description: CPU configuration set successfully
|
||||
400:
|
||||
description: CPU configuration cannot be updated due to invalid input format
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
default:
|
||||
description: Internal server error
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
|
||||
|
||||
/drives/{drive_id}:
|
||||
put:
|
||||
summary: Creates or updates a drive. Pre-boot only.
|
||||
@ -366,7 +392,7 @@ paths:
|
||||
204:
|
||||
description: Metrics system created.
|
||||
400:
|
||||
description: Metrics system cannot be initialized due to bad input.
|
||||
description: Metrics system cannot be initialized due to bad input request or metrics system already initialized.
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
default:
|
||||
@ -458,6 +484,28 @@ paths:
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
|
||||
/entropy:
|
||||
put:
|
||||
summary: Creates an entropy device. Pre-boot only.
|
||||
description:
|
||||
Enables an entropy device that provides high-quality random data to the guest.
|
||||
operationId: putEntropyDevice
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
description: Guest entropy device properties
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/EntropyDevice"
|
||||
responses:
|
||||
204:
|
||||
description: Entropy device created
|
||||
default:
|
||||
description: Internal server error
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
|
||||
|
||||
/network-interfaces/{iface_id}:
|
||||
put:
|
||||
summary: Creates a network interface. Pre-boot only.
|
||||
@ -778,13 +826,32 @@ definitions:
|
||||
description:
|
||||
The CPU Template defines a set of flags to be disabled from the microvm so that
|
||||
the features exposed to the guest are the same as in the selected instance type.
|
||||
Works only on Intel.
|
||||
enum:
|
||||
- C3
|
||||
- T2
|
||||
- T2S
|
||||
- T2CL
|
||||
- T2A
|
||||
- V1N1
|
||||
- None
|
||||
default: "None"
|
||||
|
||||
CpuConfig:
|
||||
type: string
|
||||
description:
|
||||
The CPU configuration template defines a set of bit maps as modifiers of flags accessed by register
|
||||
to be disabled/enabled for the microvm.
|
||||
properties:
|
||||
cpuid_modifiers:
|
||||
type: object
|
||||
description: A collection of CPUIDs to be modified. (x86_64)
|
||||
msr_modifiers:
|
||||
type: object
|
||||
description: A collection of model specific registers to be modified. (x86_64)
|
||||
reg_modifiers:
|
||||
type: object
|
||||
description: A collection of registers to be modified. (aarch64)
|
||||
|
||||
Drive:
|
||||
type: object
|
||||
required:
|
||||
@ -1190,6 +1257,14 @@ definitions:
|
||||
- Paused
|
||||
- Resumed
|
||||
|
||||
EntropyDevice:
|
||||
type: object
|
||||
description:
|
||||
Defines an entropy device.
|
||||
properties:
|
||||
rate_limiter:
|
||||
$ref: "#/definitions/RateLimiter"
|
||||
|
||||
FirecrackerVersion:
|
||||
type: object
|
||||
description:
|
||||
@ -1226,4 +1301,4 @@ definitions:
|
||||
description: Path to UNIX domain socket, used to proxy vsock connections.
|
||||
vsock_id:
|
||||
type: string
|
||||
description: This parameter has been deprecated since v1.1.0.
|
||||
description: This parameter has been deprecated since v1.0.0.
|
||||
|
@ -83,7 +83,7 @@ assets:
|
||||
uscan-url: >-
|
||||
https://github.com/firecracker-microvm/firecracker/tags
|
||||
.*/v?(\d\S+)\.tar\.gz
|
||||
version: "v1.3.3"
|
||||
version: "v1.4.0"
|
||||
|
||||
qemu:
|
||||
description: "VMM that uses KVM"
|
||||
|
Loading…
Reference in New Issue
Block a user