diff --git a/client/models/boot_source.go b/client/models/boot_source.go index 4489db1b..1d7512b5 100644 --- a/client/models/boot_source.go +++ b/client/models/boot_source.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/cpu_template.go b/client/models/cpu_template.go index 0a0094f6..0829fa3f 100644 --- a/client/models/cpu_template.go +++ b/client/models/cpu_template.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/drive.go b/client/models/drive.go index 41050943..b8b4236c 100644 --- a/client/models/drive.go +++ b/client/models/drive.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/error.go b/client/models/error.go index efd6efb9..bb9c2059 100644 --- a/client/models/error.go +++ b/client/models/error.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/instance_action_info.go b/client/models/instance_action_info.go index c8fece6a..3e25b406 100644 --- a/client/models/instance_action_info.go +++ b/client/models/instance_action_info.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/instance_info.go b/client/models/instance_info.go index 85d71102..109df08b 100644 --- a/client/models/instance_info.go +++ b/client/models/instance_info.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/logger.go b/client/models/logger.go index 9957efa7..a5ef40ac 100644 --- a/client/models/logger.go +++ b/client/models/logger.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/machine_configuration.go b/client/models/machine_configuration.go index a4f939e8..7a97db69 100644 --- a/client/models/machine_configuration.go +++ b/client/models/machine_configuration.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/network_interface.go b/client/models/network_interface.go index 95bdaa32..78d1cfe5 100644 --- a/client/models/network_interface.go +++ b/client/models/network_interface.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/partial_drive.go b/client/models/partial_drive.go index 946f3c14..76b75a29 100644 --- a/client/models/partial_drive.go +++ b/client/models/partial_drive.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/partial_network_interface.go b/client/models/partial_network_interface.go index b8c32d67..50cd7af2 100644 --- a/client/models/partial_network_interface.go +++ b/client/models/partial_network_interface.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/rate_limiter.go b/client/models/rate_limiter.go index 9654389a..b5a3d2e9 100644 --- a/client/models/rate_limiter.go +++ b/client/models/rate_limiter.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/token_bucket.go b/client/models/token_bucket.go index a14c23fa..e90e171d 100644 --- a/client/models/token_bucket.go +++ b/client/models/token_bucket.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/models/vsock.go b/client/models/vsock.go index 4d2bed71..96e41d97 100644 --- a/client/models/vsock.go +++ b/client/models/vsock.go @@ -13,7 +13,7 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. -package client_models +package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/client/operations/create_sync_action_parameters.go b/client/operations/create_sync_action_parameters.go index 52a3aaf7..7a73af96 100644 --- a/client/operations/create_sync_action_parameters.go +++ b/client/operations/create_sync_action_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewCreateSyncActionParams creates a new CreateSyncActionParams object @@ -78,7 +77,7 @@ for the create sync action operation typically these are written to a http.Reque type CreateSyncActionParams struct { /*Info*/ - Info *client_models.InstanceActionInfo + Info *models.InstanceActionInfo timeout time.Duration Context context.Context @@ -119,13 +118,13 @@ func (o *CreateSyncActionParams) SetHTTPClient(client *http.Client) { } // WithInfo adds the info to the create sync action params -func (o *CreateSyncActionParams) WithInfo(info *client_models.InstanceActionInfo) *CreateSyncActionParams { +func (o *CreateSyncActionParams) WithInfo(info *models.InstanceActionInfo) *CreateSyncActionParams { o.SetInfo(info) return o } // SetInfo adds the info to the create sync action params -func (o *CreateSyncActionParams) SetInfo(info *client_models.InstanceActionInfo) { +func (o *CreateSyncActionParams) SetInfo(info *models.InstanceActionInfo) { o.Info = info } diff --git a/client/operations/create_sync_action_responses.go b/client/operations/create_sync_action_responses.go index dd81c4c1..f1e26be6 100644 --- a/client/operations/create_sync_action_responses.go +++ b/client/operations/create_sync_action_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // CreateSyncActionReader is a Reader for the CreateSyncAction structure. @@ -37,21 +37,18 @@ type CreateSyncActionReader struct { // ReadResponse reads a server response into the received o. func (o *CreateSyncActionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewCreateSyncActionNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewCreateSyncActionBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewCreateSyncActionDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewCreateSyncActionBadRequest() *CreateSyncActionBadRequest { The action cannot be executed due to bad input */ type CreateSyncActionBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *CreateSyncActionBadRequest) Error() string { return fmt.Sprintf("[PUT /actions][%d] createSyncActionBadRequest %+v", 400, o.Payload) } +func (o *CreateSyncActionBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *CreateSyncActionBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal Server Error type CreateSyncActionDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the create sync action default response @@ -140,9 +141,13 @@ func (o *CreateSyncActionDefault) Error() string { return fmt.Sprintf("[PUT /actions][%d] createSyncAction default %+v", o._statusCode, o.Payload) } +func (o *CreateSyncActionDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *CreateSyncActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/describe_instance_parameters.go b/client/operations/describe_instance_parameters.go index 2e4ff53e..fe6d0f4b 100644 --- a/client/operations/describe_instance_parameters.go +++ b/client/operations/describe_instance_parameters.go @@ -19,11 +19,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/client/operations/describe_instance_responses.go b/client/operations/describe_instance_responses.go index 311c8567..d7524da9 100644 --- a/client/operations/describe_instance_responses.go +++ b/client/operations/describe_instance_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // DescribeInstanceReader is a Reader for the DescribeInstance structure. @@ -37,14 +37,12 @@ type DescribeInstanceReader struct { // ReadResponse reads a server response into the received o. func (o *DescribeInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: result := NewDescribeInstanceOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - default: result := NewDescribeInstanceDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -67,16 +65,20 @@ func NewDescribeInstanceOK() *DescribeInstanceOK { The instance information */ type DescribeInstanceOK struct { - Payload *client_models.InstanceInfo + Payload *models.InstanceInfo } func (o *DescribeInstanceOK) Error() string { return fmt.Sprintf("[GET /][%d] describeInstanceOK %+v", 200, o.Payload) } +func (o *DescribeInstanceOK) GetPayload() *models.InstanceInfo { + return o.Payload +} + func (o *DescribeInstanceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.InstanceInfo) + o.Payload = new(models.InstanceInfo) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -100,7 +102,7 @@ Internal Server Error type DescribeInstanceDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the describe instance default response @@ -112,9 +114,13 @@ func (o *DescribeInstanceDefault) Error() string { return fmt.Sprintf("[GET /][%d] describeInstance default %+v", o._statusCode, o.Payload) } +func (o *DescribeInstanceDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *DescribeInstanceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/get_machine_configuration_parameters.go b/client/operations/get_machine_configuration_parameters.go index 87ef3313..2882f3a7 100644 --- a/client/operations/get_machine_configuration_parameters.go +++ b/client/operations/get_machine_configuration_parameters.go @@ -19,11 +19,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/client/operations/get_machine_configuration_responses.go b/client/operations/get_machine_configuration_responses.go index cd4e5c79..b4823cca 100644 --- a/client/operations/get_machine_configuration_responses.go +++ b/client/operations/get_machine_configuration_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // GetMachineConfigurationReader is a Reader for the GetMachineConfiguration structure. @@ -37,14 +37,12 @@ type GetMachineConfigurationReader struct { // ReadResponse reads a server response into the received o. func (o *GetMachineConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: result := NewGetMachineConfigurationOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - default: result := NewGetMachineConfigurationDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -67,16 +65,20 @@ func NewGetMachineConfigurationOK() *GetMachineConfigurationOK { OK */ type GetMachineConfigurationOK struct { - Payload *client_models.MachineConfiguration + Payload *models.MachineConfiguration } func (o *GetMachineConfigurationOK) Error() string { return fmt.Sprintf("[GET /machine-config][%d] getMachineConfigurationOK %+v", 200, o.Payload) } +func (o *GetMachineConfigurationOK) GetPayload() *models.MachineConfiguration { + return o.Payload +} + func (o *GetMachineConfigurationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.MachineConfiguration) + o.Payload = new(models.MachineConfiguration) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -100,7 +102,7 @@ Internal server error type GetMachineConfigurationDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the get machine configuration default response @@ -112,9 +114,13 @@ func (o *GetMachineConfigurationDefault) Error() string { return fmt.Sprintf("[GET /machine-config][%d] getMachineConfiguration default %+v", o._statusCode, o.Payload) } +func (o *GetMachineConfigurationDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *GetMachineConfigurationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/get_mmds_parameters.go b/client/operations/get_mmds_parameters.go index 384ad2a4..c8ae6901 100644 --- a/client/operations/get_mmds_parameters.go +++ b/client/operations/get_mmds_parameters.go @@ -19,11 +19,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/client/operations/get_mmds_responses.go b/client/operations/get_mmds_responses.go index 5172d8a6..1f305afc 100644 --- a/client/operations/get_mmds_responses.go +++ b/client/operations/get_mmds_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // GetMmdsReader is a Reader for the GetMmds structure. @@ -37,21 +37,18 @@ type GetMmdsReader struct { // ReadResponse reads a server response into the received o. func (o *GetMmdsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: result := NewGetMmdsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewGetMmdsBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewGetMmdsDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -81,6 +78,10 @@ func (o *GetMmdsOK) Error() string { return fmt.Sprintf("[GET /mmds][%d] getMmdsOK %+v", 200, o.Payload) } +func (o *GetMmdsOK) GetPayload() interface{} { + return o.Payload +} + func (o *GetMmdsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload @@ -101,16 +102,20 @@ func NewGetMmdsBadRequest() *GetMmdsBadRequest { Cannot get the MMDS data store due to bad input. */ type GetMmdsBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *GetMmdsBadRequest) Error() string { return fmt.Sprintf("[GET /mmds][%d] getMmdsBadRequest %+v", 400, o.Payload) } +func (o *GetMmdsBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *GetMmdsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -134,7 +139,7 @@ Internal server error type GetMmdsDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the get mmds default response @@ -146,9 +151,13 @@ func (o *GetMmdsDefault) Error() string { return fmt.Sprintf("[GET /mmds][%d] GetMmds default %+v", o._statusCode, o.Payload) } +func (o *GetMmdsDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *GetMmdsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/patch_guest_drive_by_id_parameters.go b/client/operations/patch_guest_drive_by_id_parameters.go index 52bc612d..f6bbaa2a 100644 --- a/client/operations/patch_guest_drive_by_id_parameters.go +++ b/client/operations/patch_guest_drive_by_id_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPatchGuestDriveByIDParams creates a new PatchGuestDriveByIDParams object @@ -81,7 +80,7 @@ type PatchGuestDriveByIDParams struct { Guest drive properties */ - Body *client_models.PartialDrive + Body *models.PartialDrive /*DriveID The id of the guest drive @@ -127,13 +126,13 @@ func (o *PatchGuestDriveByIDParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the patch guest drive by ID params -func (o *PatchGuestDriveByIDParams) WithBody(body *client_models.PartialDrive) *PatchGuestDriveByIDParams { +func (o *PatchGuestDriveByIDParams) WithBody(body *models.PartialDrive) *PatchGuestDriveByIDParams { o.SetBody(body) return o } // SetBody adds the body to the patch guest drive by ID params -func (o *PatchGuestDriveByIDParams) SetBody(body *client_models.PartialDrive) { +func (o *PatchGuestDriveByIDParams) SetBody(body *models.PartialDrive) { o.Body = body } diff --git a/client/operations/patch_guest_drive_by_id_responses.go b/client/operations/patch_guest_drive_by_id_responses.go index 19758dbb..40221548 100644 --- a/client/operations/patch_guest_drive_by_id_responses.go +++ b/client/operations/patch_guest_drive_by_id_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PatchGuestDriveByIDReader is a Reader for the PatchGuestDriveByID structure. @@ -37,21 +37,18 @@ type PatchGuestDriveByIDReader struct { // ReadResponse reads a server response into the received o. func (o *PatchGuestDriveByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPatchGuestDriveByIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPatchGuestDriveByIDBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPatchGuestDriveByIDDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPatchGuestDriveByIDBadRequest() *PatchGuestDriveByIDBadRequest { Drive cannot be updated due to bad input */ type PatchGuestDriveByIDBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PatchGuestDriveByIDBadRequest) Error() string { return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByIdBadRequest %+v", 400, o.Payload) } +func (o *PatchGuestDriveByIDBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchGuestDriveByIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error. type PatchGuestDriveByIDDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the patch guest drive by ID default response @@ -140,9 +141,13 @@ func (o *PatchGuestDriveByIDDefault) Error() string { return fmt.Sprintf("[PATCH /drives/{drive_id}][%d] patchGuestDriveByID default %+v", o._statusCode, o.Payload) } +func (o *PatchGuestDriveByIDDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchGuestDriveByIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/patch_guest_network_interface_by_id_parameters.go b/client/operations/patch_guest_network_interface_by_id_parameters.go index 9d1e6e3e..64e0f6ce 100644 --- a/client/operations/patch_guest_network_interface_by_id_parameters.go +++ b/client/operations/patch_guest_network_interface_by_id_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPatchGuestNetworkInterfaceByIDParams creates a new PatchGuestNetworkInterfaceByIDParams object @@ -81,7 +80,7 @@ type PatchGuestNetworkInterfaceByIDParams struct { A subset of the guest network interface properties */ - Body *client_models.PartialNetworkInterface + Body *models.PartialNetworkInterface /*IfaceID The id of the guest network interface @@ -127,13 +126,13 @@ func (o *PatchGuestNetworkInterfaceByIDParams) SetHTTPClient(client *http.Client } // WithBody adds the body to the patch guest network interface by ID params -func (o *PatchGuestNetworkInterfaceByIDParams) WithBody(body *client_models.PartialNetworkInterface) *PatchGuestNetworkInterfaceByIDParams { +func (o *PatchGuestNetworkInterfaceByIDParams) WithBody(body *models.PartialNetworkInterface) *PatchGuestNetworkInterfaceByIDParams { o.SetBody(body) return o } // SetBody adds the body to the patch guest network interface by ID params -func (o *PatchGuestNetworkInterfaceByIDParams) SetBody(body *client_models.PartialNetworkInterface) { +func (o *PatchGuestNetworkInterfaceByIDParams) SetBody(body *models.PartialNetworkInterface) { o.Body = body } diff --git a/client/operations/patch_guest_network_interface_by_id_responses.go b/client/operations/patch_guest_network_interface_by_id_responses.go index bc43fed4..68d3595a 100644 --- a/client/operations/patch_guest_network_interface_by_id_responses.go +++ b/client/operations/patch_guest_network_interface_by_id_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PatchGuestNetworkInterfaceByIDReader is a Reader for the PatchGuestNetworkInterfaceByID structure. @@ -37,21 +37,18 @@ type PatchGuestNetworkInterfaceByIDReader struct { // ReadResponse reads a server response into the received o. func (o *PatchGuestNetworkInterfaceByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPatchGuestNetworkInterfaceByIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPatchGuestNetworkInterfaceByIDBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPatchGuestNetworkInterfaceByIDDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPatchGuestNetworkInterfaceByIDBadRequest() *PatchGuestNetworkInterfaceBy Network interface cannot be updated due to bad input */ type PatchGuestNetworkInterfaceByIDBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PatchGuestNetworkInterfaceByIDBadRequest) Error() string { return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload) } +func (o *PatchGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchGuestNetworkInterfaceByIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PatchGuestNetworkInterfaceByIDDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the patch guest network interface by ID default response @@ -140,9 +141,13 @@ func (o *PatchGuestNetworkInterfaceByIDDefault) Error() string { return fmt.Sprintf("[PATCH /network-interfaces/{iface_id}][%d] patchGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload) } +func (o *PatchGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchGuestNetworkInterfaceByIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/patch_machine_configuration_parameters.go b/client/operations/patch_machine_configuration_parameters.go index 60d02dee..1f944bc6 100644 --- a/client/operations/patch_machine_configuration_parameters.go +++ b/client/operations/patch_machine_configuration_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPatchMachineConfigurationParams creates a new PatchMachineConfigurationParams object @@ -81,7 +80,7 @@ type PatchMachineConfigurationParams struct { A subset of Machine Configuration Parameters */ - Body *client_models.MachineConfiguration + Body *models.MachineConfiguration timeout time.Duration Context context.Context @@ -122,13 +121,13 @@ func (o *PatchMachineConfigurationParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the patch machine configuration params -func (o *PatchMachineConfigurationParams) WithBody(body *client_models.MachineConfiguration) *PatchMachineConfigurationParams { +func (o *PatchMachineConfigurationParams) WithBody(body *models.MachineConfiguration) *PatchMachineConfigurationParams { o.SetBody(body) return o } // SetBody adds the body to the patch machine configuration params -func (o *PatchMachineConfigurationParams) SetBody(body *client_models.MachineConfiguration) { +func (o *PatchMachineConfigurationParams) SetBody(body *models.MachineConfiguration) { o.Body = body } diff --git a/client/operations/patch_machine_configuration_responses.go b/client/operations/patch_machine_configuration_responses.go index 81570f83..11e139c9 100644 --- a/client/operations/patch_machine_configuration_responses.go +++ b/client/operations/patch_machine_configuration_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PatchMachineConfigurationReader is a Reader for the PatchMachineConfiguration structure. @@ -37,21 +37,18 @@ type PatchMachineConfigurationReader struct { // ReadResponse reads a server response into the received o. func (o *PatchMachineConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPatchMachineConfigurationNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPatchMachineConfigurationBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPatchMachineConfigurationDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPatchMachineConfigurationBadRequest() *PatchMachineConfigurationBadReque Machine Configuration cannot be updated due to bad input */ type PatchMachineConfigurationBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PatchMachineConfigurationBadRequest) Error() string { return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfigurationBadRequest %+v", 400, o.Payload) } +func (o *PatchMachineConfigurationBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchMachineConfigurationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PatchMachineConfigurationDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the patch machine configuration default response @@ -140,9 +141,13 @@ func (o *PatchMachineConfigurationDefault) Error() string { return fmt.Sprintf("[PATCH /machine-config][%d] patchMachineConfiguration default %+v", o._statusCode, o.Payload) } +func (o *PatchMachineConfigurationDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchMachineConfigurationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/patch_mmds_parameters.go b/client/operations/patch_mmds_parameters.go index 36d53543..63b7fe4e 100644 --- a/client/operations/patch_mmds_parameters.go +++ b/client/operations/patch_mmds_parameters.go @@ -19,11 +19,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/client/operations/patch_mmds_responses.go b/client/operations/patch_mmds_responses.go index 76f6ba25..cceb9c5e 100644 --- a/client/operations/patch_mmds_responses.go +++ b/client/operations/patch_mmds_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PatchMmdsReader is a Reader for the PatchMmds structure. @@ -37,21 +37,18 @@ type PatchMmdsReader struct { // ReadResponse reads a server response into the received o. func (o *PatchMmdsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPatchMmdsNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPatchMmdsBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPatchMmdsDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPatchMmdsBadRequest() *PatchMmdsBadRequest { MMDS data store cannot be updated due to bad input. */ type PatchMmdsBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PatchMmdsBadRequest) Error() string { return fmt.Sprintf("[PATCH /mmds][%d] patchMmdsBadRequest %+v", 400, o.Payload) } +func (o *PatchMmdsBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchMmdsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PatchMmdsDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the patch mmds default response @@ -140,9 +141,13 @@ func (o *PatchMmdsDefault) Error() string { return fmt.Sprintf("[PATCH /mmds][%d] PatchMmds default %+v", o._statusCode, o.Payload) } +func (o *PatchMmdsDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PatchMmdsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_guest_boot_source_parameters.go b/client/operations/put_guest_boot_source_parameters.go index d9881dcb..4b220f4d 100644 --- a/client/operations/put_guest_boot_source_parameters.go +++ b/client/operations/put_guest_boot_source_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutGuestBootSourceParams creates a new PutGuestBootSourceParams object @@ -81,7 +80,7 @@ type PutGuestBootSourceParams struct { Guest boot source properties */ - Body *client_models.BootSource + Body *models.BootSource timeout time.Duration Context context.Context @@ -122,13 +121,13 @@ func (o *PutGuestBootSourceParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the put guest boot source params -func (o *PutGuestBootSourceParams) WithBody(body *client_models.BootSource) *PutGuestBootSourceParams { +func (o *PutGuestBootSourceParams) WithBody(body *models.BootSource) *PutGuestBootSourceParams { o.SetBody(body) return o } // SetBody adds the body to the put guest boot source params -func (o *PutGuestBootSourceParams) SetBody(body *client_models.BootSource) { +func (o *PutGuestBootSourceParams) SetBody(body *models.BootSource) { o.Body = body } diff --git a/client/operations/put_guest_boot_source_responses.go b/client/operations/put_guest_boot_source_responses.go index 58aa9729..5bff8e7e 100644 --- a/client/operations/put_guest_boot_source_responses.go +++ b/client/operations/put_guest_boot_source_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutGuestBootSourceReader is a Reader for the PutGuestBootSource structure. @@ -37,21 +37,18 @@ type PutGuestBootSourceReader struct { // ReadResponse reads a server response into the received o. func (o *PutGuestBootSourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutGuestBootSourceNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutGuestBootSourceBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutGuestBootSourceDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutGuestBootSourceBadRequest() *PutGuestBootSourceBadRequest { Boot source cannot be created due to bad input */ type PutGuestBootSourceBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutGuestBootSourceBadRequest) Error() string { return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSourceBadRequest %+v", 400, o.Payload) } +func (o *PutGuestBootSourceBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestBootSourceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PutGuestBootSourceDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put guest boot source default response @@ -140,9 +141,13 @@ func (o *PutGuestBootSourceDefault) Error() string { return fmt.Sprintf("[PUT /boot-source][%d] putGuestBootSource default %+v", o._statusCode, o.Payload) } +func (o *PutGuestBootSourceDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestBootSourceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_guest_drive_by_id_parameters.go b/client/operations/put_guest_drive_by_id_parameters.go index a63f1cdf..2f512358 100644 --- a/client/operations/put_guest_drive_by_id_parameters.go +++ b/client/operations/put_guest_drive_by_id_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutGuestDriveByIDParams creates a new PutGuestDriveByIDParams object @@ -81,7 +80,7 @@ type PutGuestDriveByIDParams struct { Guest drive properties */ - Body *client_models.Drive + Body *models.Drive /*DriveID The id of the guest drive @@ -127,13 +126,13 @@ func (o *PutGuestDriveByIDParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the put guest drive by ID params -func (o *PutGuestDriveByIDParams) WithBody(body *client_models.Drive) *PutGuestDriveByIDParams { +func (o *PutGuestDriveByIDParams) WithBody(body *models.Drive) *PutGuestDriveByIDParams { o.SetBody(body) return o } // SetBody adds the body to the put guest drive by ID params -func (o *PutGuestDriveByIDParams) SetBody(body *client_models.Drive) { +func (o *PutGuestDriveByIDParams) SetBody(body *models.Drive) { o.Body = body } diff --git a/client/operations/put_guest_drive_by_id_responses.go b/client/operations/put_guest_drive_by_id_responses.go index f7e68de8..bbe46a05 100644 --- a/client/operations/put_guest_drive_by_id_responses.go +++ b/client/operations/put_guest_drive_by_id_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutGuestDriveByIDReader is a Reader for the PutGuestDriveByID structure. @@ -37,21 +37,18 @@ type PutGuestDriveByIDReader struct { // ReadResponse reads a server response into the received o. func (o *PutGuestDriveByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutGuestDriveByIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutGuestDriveByIDBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutGuestDriveByIDDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutGuestDriveByIDBadRequest() *PutGuestDriveByIDBadRequest { Drive cannot be created/updated due to bad input */ type PutGuestDriveByIDBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutGuestDriveByIDBadRequest) Error() string { return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByIdBadRequest %+v", 400, o.Payload) } +func (o *PutGuestDriveByIDBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestDriveByIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error. type PutGuestDriveByIDDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put guest drive by ID default response @@ -140,9 +141,13 @@ func (o *PutGuestDriveByIDDefault) Error() string { return fmt.Sprintf("[PUT /drives/{drive_id}][%d] putGuestDriveByID default %+v", o._statusCode, o.Payload) } +func (o *PutGuestDriveByIDDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestDriveByIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_guest_network_interface_by_id_parameters.go b/client/operations/put_guest_network_interface_by_id_parameters.go index bcd0a26e..005e263e 100644 --- a/client/operations/put_guest_network_interface_by_id_parameters.go +++ b/client/operations/put_guest_network_interface_by_id_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutGuestNetworkInterfaceByIDParams creates a new PutGuestNetworkInterfaceByIDParams object @@ -81,7 +80,7 @@ type PutGuestNetworkInterfaceByIDParams struct { Guest network interface properties */ - Body *client_models.NetworkInterface + Body *models.NetworkInterface /*IfaceID The id of the guest network interface @@ -127,13 +126,13 @@ func (o *PutGuestNetworkInterfaceByIDParams) SetHTTPClient(client *http.Client) } // WithBody adds the body to the put guest network interface by ID params -func (o *PutGuestNetworkInterfaceByIDParams) WithBody(body *client_models.NetworkInterface) *PutGuestNetworkInterfaceByIDParams { +func (o *PutGuestNetworkInterfaceByIDParams) WithBody(body *models.NetworkInterface) *PutGuestNetworkInterfaceByIDParams { o.SetBody(body) return o } // SetBody adds the body to the put guest network interface by ID params -func (o *PutGuestNetworkInterfaceByIDParams) SetBody(body *client_models.NetworkInterface) { +func (o *PutGuestNetworkInterfaceByIDParams) SetBody(body *models.NetworkInterface) { o.Body = body } diff --git a/client/operations/put_guest_network_interface_by_id_responses.go b/client/operations/put_guest_network_interface_by_id_responses.go index b2b15f97..27dc2f32 100644 --- a/client/operations/put_guest_network_interface_by_id_responses.go +++ b/client/operations/put_guest_network_interface_by_id_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutGuestNetworkInterfaceByIDReader is a Reader for the PutGuestNetworkInterfaceByID structure. @@ -37,21 +37,18 @@ type PutGuestNetworkInterfaceByIDReader struct { // ReadResponse reads a server response into the received o. func (o *PutGuestNetworkInterfaceByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutGuestNetworkInterfaceByIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutGuestNetworkInterfaceByIDBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutGuestNetworkInterfaceByIDDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutGuestNetworkInterfaceByIDBadRequest() *PutGuestNetworkInterfaceByIDBa Network interface cannot be created due to bad input */ type PutGuestNetworkInterfaceByIDBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutGuestNetworkInterfaceByIDBadRequest) Error() string { return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByIdBadRequest %+v", 400, o.Payload) } +func (o *PutGuestNetworkInterfaceByIDBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestNetworkInterfaceByIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PutGuestNetworkInterfaceByIDDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put guest network interface by ID default response @@ -140,9 +141,13 @@ func (o *PutGuestNetworkInterfaceByIDDefault) Error() string { return fmt.Sprintf("[PUT /network-interfaces/{iface_id}][%d] putGuestNetworkInterfaceByID default %+v", o._statusCode, o.Payload) } +func (o *PutGuestNetworkInterfaceByIDDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestNetworkInterfaceByIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_guest_vsock_by_id_parameters.go b/client/operations/put_guest_vsock_by_id_parameters.go index 0064889b..83d2aba7 100644 --- a/client/operations/put_guest_vsock_by_id_parameters.go +++ b/client/operations/put_guest_vsock_by_id_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutGuestVsockByIDParams creates a new PutGuestVsockByIDParams object @@ -81,7 +80,7 @@ type PutGuestVsockByIDParams struct { Guest vsock properties */ - Body *client_models.Vsock + Body *models.Vsock /*ID The id of the vsock device @@ -127,13 +126,13 @@ func (o *PutGuestVsockByIDParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the put guest vsock by ID params -func (o *PutGuestVsockByIDParams) WithBody(body *client_models.Vsock) *PutGuestVsockByIDParams { +func (o *PutGuestVsockByIDParams) WithBody(body *models.Vsock) *PutGuestVsockByIDParams { o.SetBody(body) return o } // SetBody adds the body to the put guest vsock by ID params -func (o *PutGuestVsockByIDParams) SetBody(body *client_models.Vsock) { +func (o *PutGuestVsockByIDParams) SetBody(body *models.Vsock) { o.Body = body } diff --git a/client/operations/put_guest_vsock_by_id_responses.go b/client/operations/put_guest_vsock_by_id_responses.go index 09ae3d90..fa925626 100644 --- a/client/operations/put_guest_vsock_by_id_responses.go +++ b/client/operations/put_guest_vsock_by_id_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutGuestVsockByIDReader is a Reader for the PutGuestVsockByID structure. @@ -37,28 +37,24 @@ type PutGuestVsockByIDReader struct { // ReadResponse reads a server response into the received o. func (o *PutGuestVsockByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 201: result := NewPutGuestVsockByIDCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 204: result := NewPutGuestVsockByIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutGuestVsockByIDBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutGuestVsockByIDDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -123,16 +119,20 @@ func NewPutGuestVsockByIDBadRequest() *PutGuestVsockByIDBadRequest { Vsock cannot be created due to bad input */ type PutGuestVsockByIDBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutGuestVsockByIDBadRequest) Error() string { return fmt.Sprintf("[PUT /vsocks/{id}][%d] putGuestVsockByIdBadRequest %+v", 400, o.Payload) } +func (o *PutGuestVsockByIDBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestVsockByIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -156,7 +156,7 @@ Internal server error type PutGuestVsockByIDDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put guest vsock by ID default response @@ -168,9 +168,13 @@ func (o *PutGuestVsockByIDDefault) Error() string { return fmt.Sprintf("[PUT /vsocks/{id}][%d] putGuestVsockByID default %+v", o._statusCode, o.Payload) } +func (o *PutGuestVsockByIDDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutGuestVsockByIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_logger_parameters.go b/client/operations/put_logger_parameters.go index 46c68c1e..b889eef7 100644 --- a/client/operations/put_logger_parameters.go +++ b/client/operations/put_logger_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutLoggerParams creates a new PutLoggerParams object @@ -81,7 +80,7 @@ type PutLoggerParams struct { Logging system description */ - Body *client_models.Logger + Body *models.Logger timeout time.Duration Context context.Context @@ -122,13 +121,13 @@ func (o *PutLoggerParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the put logger params -func (o *PutLoggerParams) WithBody(body *client_models.Logger) *PutLoggerParams { +func (o *PutLoggerParams) WithBody(body *models.Logger) *PutLoggerParams { o.SetBody(body) return o } // SetBody adds the body to the put logger params -func (o *PutLoggerParams) SetBody(body *client_models.Logger) { +func (o *PutLoggerParams) SetBody(body *models.Logger) { o.Body = body } diff --git a/client/operations/put_logger_responses.go b/client/operations/put_logger_responses.go index ecccadc6..2108f429 100644 --- a/client/operations/put_logger_responses.go +++ b/client/operations/put_logger_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutLoggerReader is a Reader for the PutLogger structure. @@ -37,21 +37,18 @@ type PutLoggerReader struct { // ReadResponse reads a server response into the received o. func (o *PutLoggerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutLoggerNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutLoggerBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutLoggerDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutLoggerBadRequest() *PutLoggerBadRequest { Logger cannot be initialized due to bad input. */ type PutLoggerBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutLoggerBadRequest) Error() string { return fmt.Sprintf("[PUT /logger][%d] putLoggerBadRequest %+v", 400, o.Payload) } +func (o *PutLoggerBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutLoggerBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error. type PutLoggerDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put logger default response @@ -140,9 +141,13 @@ func (o *PutLoggerDefault) Error() string { return fmt.Sprintf("[PUT /logger][%d] putLogger default %+v", o._statusCode, o.Payload) } +func (o *PutLoggerDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutLoggerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_machine_configuration_parameters.go b/client/operations/put_machine_configuration_parameters.go index 39dcb5f7..1d064ace 100644 --- a/client/operations/put_machine_configuration_parameters.go +++ b/client/operations/put_machine_configuration_parameters.go @@ -19,18 +19,17 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // NewPutMachineConfigurationParams creates a new PutMachineConfigurationParams object @@ -81,7 +80,7 @@ type PutMachineConfigurationParams struct { Machine Configuration Parameters */ - Body *client_models.MachineConfiguration + Body *models.MachineConfiguration timeout time.Duration Context context.Context @@ -122,13 +121,13 @@ func (o *PutMachineConfigurationParams) SetHTTPClient(client *http.Client) { } // WithBody adds the body to the put machine configuration params -func (o *PutMachineConfigurationParams) WithBody(body *client_models.MachineConfiguration) *PutMachineConfigurationParams { +func (o *PutMachineConfigurationParams) WithBody(body *models.MachineConfiguration) *PutMachineConfigurationParams { o.SetBody(body) return o } // SetBody adds the body to the put machine configuration params -func (o *PutMachineConfigurationParams) SetBody(body *client_models.MachineConfiguration) { +func (o *PutMachineConfigurationParams) SetBody(body *models.MachineConfiguration) { o.Body = body } diff --git a/client/operations/put_machine_configuration_responses.go b/client/operations/put_machine_configuration_responses.go index b7d63009..c3829557 100644 --- a/client/operations/put_machine_configuration_responses.go +++ b/client/operations/put_machine_configuration_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutMachineConfigurationReader is a Reader for the PutMachineConfiguration structure. @@ -37,21 +37,18 @@ type PutMachineConfigurationReader struct { // ReadResponse reads a server response into the received o. func (o *PutMachineConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutMachineConfigurationNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutMachineConfigurationBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutMachineConfigurationDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutMachineConfigurationBadRequest() *PutMachineConfigurationBadRequest { Machine Configuration cannot be updated due to bad input */ type PutMachineConfigurationBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutMachineConfigurationBadRequest) Error() string { return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfigurationBadRequest %+v", 400, o.Payload) } +func (o *PutMachineConfigurationBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutMachineConfigurationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PutMachineConfigurationDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put machine configuration default response @@ -140,9 +141,13 @@ func (o *PutMachineConfigurationDefault) Error() string { return fmt.Sprintf("[PUT /machine-config][%d] putMachineConfiguration default %+v", o._statusCode, o.Payload) } +func (o *PutMachineConfigurationDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutMachineConfigurationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/client/operations/put_mmds_parameters.go b/client/operations/put_mmds_parameters.go index 1bbba07f..75a3db6f 100644 --- a/client/operations/put_mmds_parameters.go +++ b/client/operations/put_mmds_parameters.go @@ -19,11 +19,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/client/operations/put_mmds_responses.go b/client/operations/put_mmds_responses.go index 0d5b415c..dfc65095 100644 --- a/client/operations/put_mmds_responses.go +++ b/client/operations/put_mmds_responses.go @@ -26,7 +26,7 @@ import ( strfmt "github.com/go-openapi/strfmt" - client_models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" + models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" ) // PutMmdsReader is a Reader for the PutMmds structure. @@ -37,21 +37,18 @@ type PutMmdsReader struct { // ReadResponse reads a server response into the received o. func (o *PutMmdsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 204: result := NewPutMmdsNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 400: result := NewPutMmdsBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result - default: result := NewPutMmdsDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -95,16 +92,20 @@ func NewPutMmdsBadRequest() *PutMmdsBadRequest { MMDS data store cannot be created due to bad input. */ type PutMmdsBadRequest struct { - Payload *client_models.Error + Payload *models.Error } func (o *PutMmdsBadRequest) Error() string { return fmt.Sprintf("[PUT /mmds][%d] putMmdsBadRequest %+v", 400, o.Payload) } +func (o *PutMmdsBadRequest) GetPayload() *models.Error { + return o.Payload +} + func (o *PutMmdsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -128,7 +129,7 @@ Internal server error type PutMmdsDefault struct { _statusCode int - Payload *client_models.Error + Payload *models.Error } // Code gets the status code for the put mmds default response @@ -140,9 +141,13 @@ func (o *PutMmdsDefault) Error() string { return fmt.Sprintf("[PUT /mmds][%d] PutMmds default %+v", o._statusCode, o.Payload) } +func (o *PutMmdsDefault) GetPayload() *models.Error { + return o.Payload +} + func (o *PutMmdsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(client_models.Error) + o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/go.mod b/go.mod index 728a67fc..695a0f55 100644 --- a/go.mod +++ b/go.mod @@ -8,5 +8,4 @@ require ( github.com/go-openapi/validate v0.17.1 github.com/sirupsen/logrus v1.1.1 github.com/stretchr/testify v1.2.2 - golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519 ) diff --git a/go.sum b/go.sum index e5c714ac..e59cd90f 100644 --- a/go.sum +++ b/go.sum @@ -53,9 +53,8 @@ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1 github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 h1:u+LnwYTOOW7Ukr/fppxEb1Nwz0AtPflrblfvUudpo+I= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/net v0.0.0-20181005035420-146acd28ed58 h1:otZG8yDCO4LVps5+9bxOeNiCvgmOyt96J3roHTYs7oE= golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519 h1:x6rhz8Y9CjbgQkccRGmELH6K+LJj7tOoh3XWeC1yaQM= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= diff --git a/swagger.go b/swagger.go index eb853b34..ab6ab8df 100644 --- a/swagger.go +++ b/swagger.go @@ -16,8 +16,8 @@ // --skip-validation is used in the command-lines below to remove the network dependency that the swagger generator has // in attempting to validate that the email address specified in the yaml file is valid. -//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger generate model -f ./client/swagger.yaml -T ./templates --model-package=client/models --client-package=client --copyright-file=COPYRIGHT_HEADER --skip-validation -//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger generate client -f ./client/swagger.yaml -T ./templates --model-package=client/models --client-package=client --copyright-file=COPYRIGHT_HEADER --skip-validation -//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger generate client -f ./client/swagger.yaml -C ./go_swagger_layout.yaml -T ./templates --model-package=client/models --client-package=fctesting --copyright-file=COPYRIGHT_HEADER --skip-validation +//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger:v0.20.1 generate model -f ./client/swagger.yaml -T ./templates --model-package=client/models --client-package=client --copyright-file=COPYRIGHT_HEADER --skip-validation +//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger:v0.20.1 generate client -f ./client/swagger.yaml -T ./templates --model-package=client/models --client-package=client --copyright-file=COPYRIGHT_HEADER --skip-validation +//go:generate docker run --add-host github.com:127.1.1.1 --rm --net=none -v $PWD:/work -w /work quay.io/goswagger/swagger:v0.20.1 generate client -f ./client/swagger.yaml -C ./go_swagger_layout.yaml -T ./templates --model-package=client/models --client-package=fctesting --copyright-file=COPYRIGHT_HEADER --skip-validation package firecracker