mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-21 18:53:30 +00:00
Merge pull request #7611 from ManaSugi/fix/fc-version
versions: Update firecracker version to 1.4.0
This commit is contained in:
commit
a39fd6c066
@ -19,12 +19,14 @@ This document requires the presence of Kata Containers on your system. Install u
|
|||||||
|
|
||||||
## Install AWS Firecracker
|
## Install AWS Firecracker
|
||||||
|
|
||||||
Kata Containers only support AWS Firecracker v0.23.4 ([yet](https://github.com/kata-containers/kata-containers/pull/1519)).
|
For information about the supported version of Firecracker, see the Kata Containers
|
||||||
|
[`versions.yaml`](../../versions.yaml).
|
||||||
|
|
||||||
To install Firecracker we need to get the `firecracker` and `jailer` binaries:
|
To install Firecracker we need to get the `firecracker` and `jailer` binaries:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ release_url="https://github.com/firecracker-microvm/firecracker/releases"
|
$ release_url="https://github.com/firecracker-microvm/firecracker/releases"
|
||||||
$ version="v0.23.1"
|
$ version=$(yq read <kata-repository>/versions.yaml assets.hypervisor.firecracker.version)
|
||||||
$ arch=`uname -m`
|
$ arch=`uname -m`
|
||||||
$ curl ${release_url}/download/${version}/firecracker-${version}-${arch} -o firecracker
|
$ curl ${release_url}/download/${version}/firecracker-${version}-${arch} -o firecracker
|
||||||
$ curl ${release_url}/download/${version}/jailer-${version}-${arch} -o jailer
|
$ curl ${release_url}/download/${version}/jailer-${version}-${arch} -o jailer
|
||||||
|
@ -306,8 +306,7 @@ func (fc *firecracker) parseVersion(data string) (string, error) {
|
|||||||
var version string
|
var version string
|
||||||
fields := strings.Split(lines[0], " ")
|
fields := strings.Split(lines[0], " ")
|
||||||
if len(fields) > 1 {
|
if len(fields) > 1 {
|
||||||
// The output format of `Firecracker --version` is as follows
|
// The output format of `Firecracker --version` is as follows.
|
||||||
// Firecracker v0.23.1
|
|
||||||
version = strings.TrimPrefix(strings.TrimSpace(fields[1]), "v")
|
version = strings.TrimPrefix(strings.TrimSpace(fields[1]), "v")
|
||||||
return version, nil
|
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"
|
"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
|
// swagger:model CpuTemplate
|
||||||
type CPUTemplate string
|
type CPUTemplate string
|
||||||
@ -36,6 +36,18 @@ const (
|
|||||||
// CPUTemplateT2 captures enum value "T2"
|
// CPUTemplateT2 captures enum value "T2"
|
||||||
CPUTemplateT2 CPUTemplate = "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 captures enum value "None"
|
||||||
CPUTemplateNone CPUTemplate = "None"
|
CPUTemplateNone CPUTemplate = "None"
|
||||||
)
|
)
|
||||||
@ -45,7 +57,7 @@ var cpuTemplateEnum []interface{}
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
var res []CPUTemplate
|
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)
|
panic(err)
|
||||||
}
|
}
|
||||||
for _, v := range res {
|
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
|
// Required: true
|
||||||
UdsPath *string `json:"uds_path"`
|
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"`
|
VsockID string `json:"vsock_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,9 @@ func NewCreateSnapshotParamsWithHTTPClient(client *http.Client) *CreateSnapshotP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CreateSnapshotParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
CreateSnapshotParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the create snapshot operation.
|
for the create snapshot operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewCreateSnapshotNoContent() *CreateSnapshotNoContent {
|
|||||||
return &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
|
Snapshot created
|
||||||
*/
|
*/
|
||||||
type CreateSnapshotNoContent struct {
|
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 {
|
func (o *CreateSnapshotNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotNoContent ", 204)
|
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 {
|
func (o *CreateSnapshotNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewCreateSnapshotBadRequest() *CreateSnapshotBadRequest {
|
|||||||
return &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
|
Snapshot cannot be created due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type CreateSnapshotBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *CreateSnapshotBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshotBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *CreateSnapshotBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *CreateSnapshotDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *CreateSnapshotDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/create][%d] createSnapshot default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *CreateSnapshotDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewCreateSyncActionParamsWithHTTPClient(client *http.Client) *CreateSyncAct
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CreateSyncActionParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
CreateSyncActionParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the create sync action operation.
|
for the create sync action operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewCreateSyncActionNoContent() *CreateSyncActionNoContent {
|
|||||||
return &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
|
The update was successful
|
||||||
*/
|
*/
|
||||||
type CreateSyncActionNoContent struct {
|
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 {
|
func (o *CreateSyncActionNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionNoContent ", 204)
|
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 {
|
func (o *CreateSyncActionNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewCreateSyncActionBadRequest() *CreateSyncActionBadRequest {
|
|||||||
return &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
|
The action cannot be executed due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type CreateSyncActionBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *CreateSyncActionBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /actions][%d] createSyncActionBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *CreateSyncActionBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal Server Error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *CreateSyncActionDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *CreateSyncActionDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /actions][%d] createSyncAction default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *CreateSyncActionDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewDescribeBalloonConfigParamsWithHTTPClient(client *http.Client) *Describe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DescribeBalloonConfigParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
DescribeBalloonConfigParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the describe balloon config operation.
|
for the describe balloon config operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,7 +52,8 @@ func NewDescribeBalloonConfigOK() *DescribeBalloonConfigOK {
|
|||||||
return &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
|
The balloon device configuration
|
||||||
*/
|
*/
|
||||||
@ -60,9 +61,39 @@ type DescribeBalloonConfigOK struct {
|
|||||||
Payload *models.Balloon
|
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 {
|
func (o *DescribeBalloonConfigOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigOK %+v", 200, o.Payload)
|
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 {
|
func (o *DescribeBalloonConfigOK) GetPayload() *models.Balloon {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
@ -84,7 +115,8 @@ func NewDescribeBalloonConfigBadRequest() *DescribeBalloonConfigBadRequest {
|
|||||||
return &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.
|
Balloon device not configured.
|
||||||
*/
|
*/
|
||||||
@ -92,9 +124,39 @@ type DescribeBalloonConfigBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *DescribeBalloonConfigBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfigBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *DescribeBalloonConfigBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal Server Error
|
||||||
*/
|
*/
|
||||||
@ -133,9 +196,39 @@ func (o *DescribeBalloonConfigDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *DescribeBalloonConfigDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon][%d] describeBalloonConfig default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *DescribeBalloonConfigDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewDescribeBalloonStatsParamsWithHTTPClient(client *http.Client) *DescribeB
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DescribeBalloonStatsParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
DescribeBalloonStatsParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the describe balloon stats operation.
|
for the describe balloon stats operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,7 +52,8 @@ func NewDescribeBalloonStatsOK() *DescribeBalloonStatsOK {
|
|||||||
return &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
|
The balloon device statistics
|
||||||
*/
|
*/
|
||||||
@ -60,9 +61,39 @@ type DescribeBalloonStatsOK struct {
|
|||||||
Payload *models.BalloonStats
|
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 {
|
func (o *DescribeBalloonStatsOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsOK %+v", 200, o.Payload)
|
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 {
|
func (o *DescribeBalloonStatsOK) GetPayload() *models.BalloonStats {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
@ -84,7 +115,8 @@ func NewDescribeBalloonStatsBadRequest() *DescribeBalloonStatsBadRequest {
|
|||||||
return &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.
|
The balloon device statistics were not enabled when the device was configured.
|
||||||
*/
|
*/
|
||||||
@ -92,9 +124,39 @@ type DescribeBalloonStatsBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *DescribeBalloonStatsBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStatsBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *DescribeBalloonStatsBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal Server Error
|
||||||
*/
|
*/
|
||||||
@ -133,9 +196,39 @@ func (o *DescribeBalloonStatsDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *DescribeBalloonStatsDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /balloon/statistics][%d] describeBalloonStats default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *DescribeBalloonStatsDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewDescribeInstanceParamsWithHTTPClient(client *http.Client) *DescribeInsta
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DescribeInstanceParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
DescribeInstanceParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the describe instance operation.
|
for the describe instance operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -46,7 +46,8 @@ func NewDescribeInstanceOK() *DescribeInstanceOK {
|
|||||||
return &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
|
The instance information
|
||||||
*/
|
*/
|
||||||
@ -54,9 +55,39 @@ type DescribeInstanceOK struct {
|
|||||||
Payload *models.InstanceInfo
|
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 {
|
func (o *DescribeInstanceOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /][%d] describeInstanceOK %+v", 200, o.Payload)
|
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 {
|
func (o *DescribeInstanceOK) GetPayload() *models.InstanceInfo {
|
||||||
return o.Payload
|
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
|
Internal Server Error
|
||||||
*/
|
*/
|
||||||
@ -95,9 +127,39 @@ func (o *DescribeInstanceDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *DescribeInstanceDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /][%d] describeInstance default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *DescribeInstanceDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewGetExportVMConfigParamsWithHTTPClient(client *http.Client) *GetExportVMC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GetExportVMConfigParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
GetExportVMConfigParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the get export Vm config operation.
|
for the get export Vm config operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -46,7 +46,8 @@ func NewGetExportVMConfigOK() *GetExportVMConfigOK {
|
|||||||
return &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
|
OK
|
||||||
*/
|
*/
|
||||||
@ -54,9 +55,39 @@ type GetExportVMConfigOK struct {
|
|||||||
Payload *models.FullVMConfiguration
|
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 {
|
func (o *GetExportVMConfigOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfigOK %+v", 200, o.Payload)
|
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 {
|
func (o *GetExportVMConfigOK) GetPayload() *models.FullVMConfiguration {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -95,9 +127,39 @@ func (o *GetExportVMConfigDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *GetExportVMConfigDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /vm/config][%d] getExportVmConfig default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *GetExportVMConfigDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewGetFirecrackerVersionParamsWithHTTPClient(client *http.Client) *GetFirec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GetFirecrackerVersionParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
GetFirecrackerVersionParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the get firecracker version operation.
|
for the get firecracker version operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -46,7 +46,8 @@ func NewGetFirecrackerVersionOK() *GetFirecrackerVersionOK {
|
|||||||
return &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
|
OK
|
||||||
*/
|
*/
|
||||||
@ -54,9 +55,39 @@ type GetFirecrackerVersionOK struct {
|
|||||||
Payload *models.FirecrackerVersion
|
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 {
|
func (o *GetFirecrackerVersionOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersionOK %+v", 200, o.Payload)
|
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 {
|
func (o *GetFirecrackerVersionOK) GetPayload() *models.FirecrackerVersion {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -95,9 +127,39 @@ func (o *GetFirecrackerVersionDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *GetFirecrackerVersionDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /version][%d] getFirecrackerVersion default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *GetFirecrackerVersionDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewGetMachineConfigurationParamsWithHTTPClient(client *http.Client) *GetMac
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GetMachineConfigurationParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
GetMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the get machine configuration operation.
|
for the get machine configuration operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -46,7 +46,8 @@ func NewGetMachineConfigurationOK() *GetMachineConfigurationOK {
|
|||||||
return &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
|
OK
|
||||||
*/
|
*/
|
||||||
@ -54,9 +55,39 @@ type GetMachineConfigurationOK struct {
|
|||||||
Payload *models.MachineConfiguration
|
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 {
|
func (o *GetMachineConfigurationOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfigurationOK %+v", 200, o.Payload)
|
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 {
|
func (o *GetMachineConfigurationOK) GetPayload() *models.MachineConfiguration {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -95,9 +127,39 @@ func (o *GetMachineConfigurationDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *GetMachineConfigurationDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /machine-config][%d] getMachineConfiguration default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *GetMachineConfigurationDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ func NewGetMmdsParamsWithHTTPClient(client *http.Client) *GetMmdsParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GetMmdsParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
GetMmdsParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the get mmds operation.
|
for the get mmds operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,7 +52,8 @@ func NewGetMmdsOK() *GetMmdsOK {
|
|||||||
return &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.
|
The MMDS data store JSON.
|
||||||
*/
|
*/
|
||||||
@ -60,9 +61,39 @@ type GetMmdsOK struct {
|
|||||||
Payload interface{}
|
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 {
|
func (o *GetMmdsOK) Error() string {
|
||||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsOK %+v", 200, o.Payload)
|
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{} {
|
func (o *GetMmdsOK) GetPayload() interface{} {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
@ -82,7 +113,8 @@ func NewGetMmdsNotFound() *GetMmdsNotFound {
|
|||||||
return &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.
|
The MMDS data store content can not be found.
|
||||||
*/
|
*/
|
||||||
@ -90,9 +122,39 @@ type GetMmdsNotFound struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *GetMmdsNotFound) Error() string {
|
||||||
return fmt.Sprintf("[GET /mmds][%d] getMmdsNotFound %+v", 404, o.Payload)
|
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 {
|
func (o *GetMmdsNotFound) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -131,9 +194,39 @@ func (o *GetMmdsDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *GetMmdsDefault) Error() string {
|
||||||
return fmt.Sprintf("[GET /mmds][%d] getMmds default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *GetMmdsDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewLoadSnapshotParamsWithHTTPClient(client *http.Client) *LoadSnapshotParam
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LoadSnapshotParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
LoadSnapshotParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the load snapshot operation.
|
for the load snapshot operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewLoadSnapshotNoContent() *LoadSnapshotNoContent {
|
|||||||
return &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
|
Snapshot loaded
|
||||||
*/
|
*/
|
||||||
type LoadSnapshotNoContent struct {
|
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 {
|
func (o *LoadSnapshotNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotNoContent ", 204)
|
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 {
|
func (o *LoadSnapshotNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewLoadSnapshotBadRequest() *LoadSnapshotBadRequest {
|
|||||||
return &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
|
Snapshot cannot be loaded due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type LoadSnapshotBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *LoadSnapshotBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshotBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *LoadSnapshotBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *LoadSnapshotDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *LoadSnapshotDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /snapshot/load][%d] loadSnapshot default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *LoadSnapshotDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,10 @@ type ClientService interface {
|
|||||||
|
|
||||||
PutBalloon(params *PutBalloonParams, opts ...ClientOption) (*PutBalloonNoContent, error)
|
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)
|
PutGuestBootSource(params *PutGuestBootSourceParams, opts ...ClientOption) (*PutGuestBootSourceNoContent, error)
|
||||||
|
|
||||||
PutGuestDriveByID(params *PutGuestDriveByIDParams, opts ...ClientOption) (*PutGuestDriveByIDNoContent, error)
|
PutGuestDriveByID(params *PutGuestDriveByIDParams, opts ...ClientOption) (*PutGuestDriveByIDNoContent, error)
|
||||||
@ -773,6 +777,84 @@ func (a *Client) PutBalloon(params *PutBalloonParams, opts ...ClientOption) (*Pu
|
|||||||
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
|
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
PutCPUConfiguration configures CPU features flags for the v c p us of the guest VM pre boot only
|
||||||
|
|
||||||
|
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
|
PutGuestBootSource creates or updates the boot source pre boot only
|
||||||
|
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchBalloonParamsWithHTTPClient(client *http.Client) *PatchBalloonParam
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchBalloonParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchBalloonParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch balloon operation.
|
for the patch balloon operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchBalloonNoContent() *PatchBalloonNoContent {
|
|||||||
return &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
|
Balloon device updated
|
||||||
*/
|
*/
|
||||||
type PatchBalloonNoContent struct {
|
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 {
|
func (o *PatchBalloonNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonNoContent ", 204)
|
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 {
|
func (o *PatchBalloonNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchBalloonBadRequest() *PatchBalloonBadRequest {
|
|||||||
return &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
|
Balloon device cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchBalloonBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchBalloonBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloonBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchBalloonBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchBalloonDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchBalloonDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon][%d] patchBalloon default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchBalloonDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchBalloonStatsIntervalParamsWithHTTPClient(client *http.Client) *Patc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchBalloonStatsIntervalParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchBalloonStatsIntervalParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch balloon stats interval operation.
|
for the patch balloon stats interval operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchBalloonStatsIntervalNoContent() *PatchBalloonStatsIntervalNoContent
|
|||||||
return &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
|
Balloon statistics interval updated
|
||||||
*/
|
*/
|
||||||
type PatchBalloonStatsIntervalNoContent struct {
|
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 {
|
func (o *PatchBalloonStatsIntervalNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalNoContent ", 204)
|
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 {
|
func (o *PatchBalloonStatsIntervalNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchBalloonStatsIntervalBadRequest() *PatchBalloonStatsIntervalBadReque
|
|||||||
return &PatchBalloonStatsIntervalBadRequest{}
|
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
|
Balloon statistics interval cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchBalloonStatsIntervalBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchBalloonStatsIntervalBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsIntervalBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchBalloonStatsIntervalBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchBalloonStatsIntervalDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchBalloonStatsIntervalDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /balloon/statistics][%d] patchBalloonStatsInterval default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchBalloonStatsIntervalDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchGuestDriveByIDParamsWithHTTPClient(client *http.Client) *PatchGuest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch guest drive by ID operation.
|
for the patch guest drive by ID operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchGuestDriveByIDNoContent() *PatchGuestDriveByIDNoContent {
|
|||||||
return &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
|
Drive updated
|
||||||
*/
|
*/
|
||||||
type PatchGuestDriveByIDNoContent struct {
|
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 {
|
func (o *PatchGuestDriveByIDNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdNoContent ", 204)
|
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 {
|
func (o *PatchGuestDriveByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchGuestDriveByIDBadRequest() *PatchGuestDriveByIDBadRequest {
|
|||||||
return &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
|
Drive cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchGuestDriveByIDBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchGuestDriveByIDBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchGuestDriveByIDBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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.
|
Internal server error.
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchGuestDriveByIDDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchGuestDriveByIDDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByID default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchGuestDriveByIDDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchGuestNetworkInterfaceByIDParamsWithHTTPClient(client *http.Client)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch guest network interface by ID operation.
|
for the patch guest network interface by ID operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchGuestNetworkInterfaceByIDNoContent() *PatchGuestNetworkInterfaceByI
|
|||||||
return &PatchGuestNetworkInterfaceByIDNoContent{}
|
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
|
Network interface updated
|
||||||
*/
|
*/
|
||||||
type PatchGuestNetworkInterfaceByIDNoContent struct {
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdNoContent ", 204)
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchGuestNetworkInterfaceByIDBadRequest() *PatchGuestNetworkInterfaceBy
|
|||||||
return &PatchGuestNetworkInterfaceByIDBadRequest{}
|
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
|
Network interface cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchGuestNetworkInterfaceByIDBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchGuestNetworkInterfaceByIDDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchMachineConfigurationParamsWithHTTPClient(client *http.Client) *Patc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchMachineConfigurationParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch machine configuration operation.
|
for the patch machine configuration operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchMachineConfigurationNoContent() *PatchMachineConfigurationNoContent
|
|||||||
return &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
|
Machine Configuration created/updated
|
||||||
*/
|
*/
|
||||||
type PatchMachineConfigurationNoContent struct {
|
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 {
|
func (o *PatchMachineConfigurationNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationNoContent ", 204)
|
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 {
|
func (o *PatchMachineConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchMachineConfigurationBadRequest() *PatchMachineConfigurationBadReque
|
|||||||
return &PatchMachineConfigurationBadRequest{}
|
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
|
Machine Configuration cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchMachineConfigurationBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchMachineConfigurationBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchMachineConfigurationBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchMachineConfigurationDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchMachineConfigurationDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfiguration default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchMachineConfigurationDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchMmdsParamsWithHTTPClient(client *http.Client) *PatchMmdsParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchMmdsParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchMmdsParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch mmds operation.
|
for the patch mmds operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchMmdsNoContent() *PatchMmdsNoContent {
|
|||||||
return &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.
|
MMDS data store updated.
|
||||||
*/
|
*/
|
||||||
type PatchMmdsNoContent struct {
|
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 {
|
func (o *PatchMmdsNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsNoContent ", 204)
|
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 {
|
func (o *PatchMmdsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchMmdsBadRequest() *PatchMmdsBadRequest {
|
|||||||
return &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.
|
MMDS data store cannot be updated due to bad input.
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchMmdsBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchMmdsBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchMmdsBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchMmdsDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchMmdsDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /mmds][%d] patchMmds default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchMmdsDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPatchVMParamsWithHTTPClient(client *http.Client) *PatchVMParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PatchVMParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PatchVMParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the patch Vm operation.
|
for the patch Vm operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPatchVMNoContent() *PatchVMNoContent {
|
|||||||
return &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
|
Vm state updated
|
||||||
*/
|
*/
|
||||||
type PatchVMNoContent struct {
|
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 {
|
func (o *PatchVMNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmNoContent ", 204)
|
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 {
|
func (o *PatchVMNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPatchVMBadRequest() *PatchVMBadRequest {
|
|||||||
return &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
|
Vm state cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PatchVMBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PatchVMBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /vm][%d] patchVmBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PatchVMBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PatchVMDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PatchVMDefault) Error() string {
|
||||||
return fmt.Sprintf("[PATCH /vm][%d] patchVm default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PatchVMDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutBalloonParamsWithHTTPClient(client *http.Client) *PutBalloonParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutBalloonParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutBalloonParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put balloon operation.
|
for the put balloon operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutBalloonNoContent() *PutBalloonNoContent {
|
|||||||
return &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
|
Balloon device created/updated
|
||||||
*/
|
*/
|
||||||
type PutBalloonNoContent struct {
|
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 {
|
func (o *PutBalloonNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonNoContent ", 204)
|
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 {
|
func (o *PutBalloonNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutBalloonBadRequest() *PutBalloonBadRequest {
|
|||||||
return &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
|
Balloon device cannot be created/updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutBalloonBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutBalloonBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloonBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutBalloonBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutBalloonDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutBalloonDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /balloon][%d] putBalloon default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutBalloonDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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,7 +54,9 @@ func NewPutGuestBootSourceParamsWithHTTPClient(client *http.Client) *PutGuestBoo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutGuestBootSourceParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutGuestBootSourceParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put guest boot source operation.
|
for the put guest boot source operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutGuestBootSourceNoContent() *PutGuestBootSourceNoContent {
|
|||||||
return &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
|
Boot source created/updated
|
||||||
*/
|
*/
|
||||||
type PutGuestBootSourceNoContent struct {
|
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 {
|
func (o *PutGuestBootSourceNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceNoContent ", 204)
|
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 {
|
func (o *PutGuestBootSourceNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutGuestBootSourceBadRequest() *PutGuestBootSourceBadRequest {
|
|||||||
return &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
|
Boot source cannot be created due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutGuestBootSourceBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutGuestBootSourceBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutGuestBootSourceBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutGuestBootSourceDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutGuestBootSourceDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSource default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutGuestBootSourceDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutGuestDriveByIDParamsWithHTTPClient(client *http.Client) *PutGuestDriv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutGuestDriveByIDParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put guest drive by ID operation.
|
for the put guest drive by ID operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutGuestDriveByIDNoContent() *PutGuestDriveByIDNoContent {
|
|||||||
return &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
|
Drive created/updated
|
||||||
*/
|
*/
|
||||||
type PutGuestDriveByIDNoContent struct {
|
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 {
|
func (o *PutGuestDriveByIDNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdNoContent ", 204)
|
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 {
|
func (o *PutGuestDriveByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutGuestDriveByIDBadRequest() *PutGuestDriveByIDBadRequest {
|
|||||||
return &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
|
Drive cannot be created/updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutGuestDriveByIDBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutGuestDriveByIDBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutGuestDriveByIDBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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.
|
Internal server error.
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutGuestDriveByIDDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutGuestDriveByIDDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByID default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutGuestDriveByIDDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutGuestNetworkInterfaceByIDParamsWithHTTPClient(client *http.Client) *P
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutGuestNetworkInterfaceByIDParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put guest network interface by ID operation.
|
for the put guest network interface by ID operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutGuestNetworkInterfaceByIDNoContent() *PutGuestNetworkInterfaceByIDNoC
|
|||||||
return &PutGuestNetworkInterfaceByIDNoContent{}
|
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
|
Network interface created/updated
|
||||||
*/
|
*/
|
||||||
type PutGuestNetworkInterfaceByIDNoContent struct {
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdNoContent ", 204)
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutGuestNetworkInterfaceByIDBadRequest() *PutGuestNetworkInterfaceByIDBa
|
|||||||
return &PutGuestNetworkInterfaceByIDBadRequest{}
|
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
|
Network interface cannot be created due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutGuestNetworkInterfaceByIDBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutGuestNetworkInterfaceByIDDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutGuestVsockParamsWithHTTPClient(client *http.Client) *PutGuestVsockPar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutGuestVsockParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutGuestVsockParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put guest vsock operation.
|
for the put guest vsock operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutGuestVsockNoContent() *PutGuestVsockNoContent {
|
|||||||
return &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
|
Vsock created/updated
|
||||||
*/
|
*/
|
||||||
type PutGuestVsockNoContent struct {
|
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 {
|
func (o *PutGuestVsockNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockNoContent ", 204)
|
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 {
|
func (o *PutGuestVsockNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutGuestVsockBadRequest() *PutGuestVsockBadRequest {
|
|||||||
return &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
|
Vsock cannot be created due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutGuestVsockBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutGuestVsockBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsockBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutGuestVsockBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutGuestVsockDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutGuestVsockDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /vsock][%d] putGuestVsock default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutGuestVsockDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutLoggerParamsWithHTTPClient(client *http.Client) *PutLoggerParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutLoggerParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutLoggerParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put logger operation.
|
for the put logger operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutLoggerNoContent() *PutLoggerNoContent {
|
|||||||
return &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.
|
Logger created.
|
||||||
*/
|
*/
|
||||||
type PutLoggerNoContent struct {
|
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 {
|
func (o *PutLoggerNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerNoContent ", 204)
|
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 {
|
func (o *PutLoggerNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutLoggerBadRequest() *PutLoggerBadRequest {
|
|||||||
return &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.
|
Logger cannot be initialized due to bad input.
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutLoggerBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutLoggerBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /logger][%d] putLoggerBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutLoggerBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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.
|
Internal server error.
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutLoggerDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutLoggerDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /logger][%d] putLogger default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutLoggerDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutMachineConfigurationParamsWithHTTPClient(client *http.Client) *PutMac
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutMachineConfigurationParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutMachineConfigurationParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put machine configuration operation.
|
for the put machine configuration operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutMachineConfigurationNoContent() *PutMachineConfigurationNoContent {
|
|||||||
return &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
|
Machine Configuration created/updated
|
||||||
*/
|
*/
|
||||||
type PutMachineConfigurationNoContent struct {
|
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 {
|
func (o *PutMachineConfigurationNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationNoContent ", 204)
|
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 {
|
func (o *PutMachineConfigurationNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutMachineConfigurationBadRequest() *PutMachineConfigurationBadRequest {
|
|||||||
return &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
|
Machine Configuration cannot be updated due to bad input
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutMachineConfigurationBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutMachineConfigurationBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutMachineConfigurationBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutMachineConfigurationDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutMachineConfigurationDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfiguration default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutMachineConfigurationDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutMetricsParamsWithHTTPClient(client *http.Client) *PutMetricsParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutMetricsParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutMetricsParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put metrics operation.
|
for the put metrics operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutMetricsNoContent() *PutMetricsNoContent {
|
|||||||
return &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.
|
Metrics system created.
|
||||||
*/
|
*/
|
||||||
type PutMetricsNoContent struct {
|
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 {
|
func (o *PutMetricsNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsNoContent ", 204)
|
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 {
|
func (o *PutMetricsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,17 +103,48 @@ func NewPutMetricsBadRequest() *PutMetricsBadRequest {
|
|||||||
return &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 {
|
type PutMetricsBadRequest struct {
|
||||||
Payload *models.Error
|
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 {
|
func (o *PutMetricsBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /metrics][%d] putMetricsBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutMetricsBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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.
|
Internal server error.
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutMetricsDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutMetricsDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /metrics][%d] putMetrics default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutMetricsDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutMmdsConfigParamsWithHTTPClient(client *http.Client) *PutMmdsConfigPar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutMmdsConfigParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutMmdsConfigParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put mmds config operation.
|
for the put mmds config operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutMmdsConfigNoContent() *PutMmdsConfigNoContent {
|
|||||||
return &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.
|
MMDS configuration was created/updated.
|
||||||
*/
|
*/
|
||||||
type PutMmdsConfigNoContent struct {
|
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 {
|
func (o *PutMmdsConfigNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigNoContent ", 204)
|
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 {
|
func (o *PutMmdsConfigNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutMmdsConfigBadRequest() *PutMmdsConfigBadRequest {
|
|||||||
return &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.
|
MMDS configuration cannot be updated due to bad input.
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutMmdsConfigBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutMmdsConfigBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfigBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutMmdsConfigBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutMmdsConfigDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutMmdsConfigDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds/config][%d] putMmdsConfig default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutMmdsConfigDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,9 @@ func NewPutMmdsParamsWithHTTPClient(client *http.Client) *PutMmdsParams {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PutMmdsParams contains all the parameters to send to the API endpoint
|
/*
|
||||||
|
PutMmdsParams contains all the parameters to send to the API endpoint
|
||||||
|
|
||||||
for the put mmds operation.
|
for the put mmds operation.
|
||||||
|
|
||||||
Typically these are written to a http.Request.
|
Typically these are written to a http.Request.
|
||||||
|
@ -52,17 +52,47 @@ func NewPutMmdsNoContent() *PutMmdsNoContent {
|
|||||||
return &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.
|
MMDS data store created/updated.
|
||||||
*/
|
*/
|
||||||
type PutMmdsNoContent struct {
|
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 {
|
func (o *PutMmdsNoContent) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsNoContent ", 204)
|
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 {
|
func (o *PutMmdsNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -73,7 +103,8 @@ func NewPutMmdsBadRequest() *PutMmdsBadRequest {
|
|||||||
return &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.
|
MMDS data store cannot be created due to bad input.
|
||||||
*/
|
*/
|
||||||
@ -81,9 +112,39 @@ type PutMmdsBadRequest struct {
|
|||||||
Payload *models.Error
|
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 {
|
func (o *PutMmdsBadRequest) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds][%d] putMmdsBadRequest %+v", 400, o.Payload)
|
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 {
|
func (o *PutMmdsBadRequest) GetPayload() *models.Error {
|
||||||
return o.Payload
|
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
|
Internal server error
|
||||||
*/
|
*/
|
||||||
@ -122,9 +184,39 @@ func (o *PutMmdsDefault) Code() int {
|
|||||||
return o._statusCode
|
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 {
|
func (o *PutMmdsDefault) Error() string {
|
||||||
return fmt.Sprintf("[PUT /mmds][%d] putMmds default %+v", o._statusCode, o.Payload)
|
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 {
|
func (o *PutMmdsDefault) GetPayload() *models.Error {
|
||||||
return o.Payload
|
return o.Payload
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ info:
|
|||||||
The API is accessible through HTTP calls on specific URLs
|
The API is accessible through HTTP calls on specific URLs
|
||||||
carrying JSON modeled data.
|
carrying JSON modeled data.
|
||||||
The transport medium is a Unix Domain Socket.
|
The transport medium is a Unix Domain Socket.
|
||||||
version: 1.1.0
|
version: 1.4.0
|
||||||
termsOfService: ""
|
termsOfService: ""
|
||||||
contact:
|
contact:
|
||||||
email: "compute-capsule@amazon.com"
|
email: "compute-capsule@amazon.com"
|
||||||
@ -195,6 +195,32 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$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}:
|
/drives/{drive_id}:
|
||||||
put:
|
put:
|
||||||
summary: Creates or updates a drive. Pre-boot only.
|
summary: Creates or updates a drive. Pre-boot only.
|
||||||
@ -366,7 +392,7 @@ paths:
|
|||||||
204:
|
204:
|
||||||
description: Metrics system created.
|
description: Metrics system created.
|
||||||
400:
|
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:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$ref: "#/definitions/Error"
|
||||||
default:
|
default:
|
||||||
@ -458,6 +484,28 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Error"
|
$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}:
|
/network-interfaces/{iface_id}:
|
||||||
put:
|
put:
|
||||||
summary: Creates a network interface. Pre-boot only.
|
summary: Creates a network interface. Pre-boot only.
|
||||||
@ -778,13 +826,32 @@ definitions:
|
|||||||
description:
|
description:
|
||||||
The CPU Template defines a set of flags to be disabled from the microvm so that
|
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.
|
the features exposed to the guest are the same as in the selected instance type.
|
||||||
Works only on Intel.
|
|
||||||
enum:
|
enum:
|
||||||
- C3
|
- C3
|
||||||
- T2
|
- T2
|
||||||
|
- T2S
|
||||||
|
- T2CL
|
||||||
|
- T2A
|
||||||
|
- V1N1
|
||||||
- None
|
- None
|
||||||
default: "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:
|
Drive:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
@ -1190,6 +1257,14 @@ definitions:
|
|||||||
- Paused
|
- Paused
|
||||||
- Resumed
|
- Resumed
|
||||||
|
|
||||||
|
EntropyDevice:
|
||||||
|
type: object
|
||||||
|
description:
|
||||||
|
Defines an entropy device.
|
||||||
|
properties:
|
||||||
|
rate_limiter:
|
||||||
|
$ref: "#/definitions/RateLimiter"
|
||||||
|
|
||||||
FirecrackerVersion:
|
FirecrackerVersion:
|
||||||
type: object
|
type: object
|
||||||
description:
|
description:
|
||||||
@ -1226,4 +1301,4 @@ definitions:
|
|||||||
description: Path to UNIX domain socket, used to proxy vsock connections.
|
description: Path to UNIX domain socket, used to proxy vsock connections.
|
||||||
vsock_id:
|
vsock_id:
|
||||||
type: string
|
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: >-
|
uscan-url: >-
|
||||||
https://github.com/firecracker-microvm/firecracker/tags
|
https://github.com/firecracker-microvm/firecracker/tags
|
||||||
.*/v?(\d\S+)\.tar\.gz
|
.*/v?(\d\S+)\.tar\.gz
|
||||||
version: "v1.3.3"
|
version: "v1.4.0"
|
||||||
|
|
||||||
qemu:
|
qemu:
|
||||||
description: "VMM that uses KVM"
|
description: "VMM that uses KVM"
|
||||||
|
Loading…
Reference in New Issue
Block a user