github.com/digitalocean/go-netbox@v0.0.2/netbox/client/virtualization/virtualization_virtual_machines_bulk_delete_responses.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package virtualization
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"fmt"
    25  
    26  	"github.com/go-openapi/runtime"
    27  	"github.com/go-openapi/strfmt"
    28  )
    29  
    30  // VirtualizationVirtualMachinesBulkDeleteReader is a Reader for the VirtualizationVirtualMachinesBulkDelete structure.
    31  type VirtualizationVirtualMachinesBulkDeleteReader struct {
    32  	formats strfmt.Registry
    33  }
    34  
    35  // ReadResponse reads a server response into the received o.
    36  func (o *VirtualizationVirtualMachinesBulkDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
    37  	switch response.Code() {
    38  	case 204:
    39  		result := NewVirtualizationVirtualMachinesBulkDeleteNoContent()
    40  		if err := result.readResponse(response, consumer, o.formats); err != nil {
    41  			return nil, err
    42  		}
    43  		return result, nil
    44  	default:
    45  		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
    46  	}
    47  }
    48  
    49  // NewVirtualizationVirtualMachinesBulkDeleteNoContent creates a VirtualizationVirtualMachinesBulkDeleteNoContent with default headers values
    50  func NewVirtualizationVirtualMachinesBulkDeleteNoContent() *VirtualizationVirtualMachinesBulkDeleteNoContent {
    51  	return &VirtualizationVirtualMachinesBulkDeleteNoContent{}
    52  }
    53  
    54  /* VirtualizationVirtualMachinesBulkDeleteNoContent describes a response with status code 204, with default header values.
    55  
    56  VirtualizationVirtualMachinesBulkDeleteNoContent virtualization virtual machines bulk delete no content
    57  */
    58  type VirtualizationVirtualMachinesBulkDeleteNoContent struct {
    59  }
    60  
    61  func (o *VirtualizationVirtualMachinesBulkDeleteNoContent) Error() string {
    62  	return fmt.Sprintf("[DELETE /virtualization/virtual-machines/][%d] virtualizationVirtualMachinesBulkDeleteNoContent ", 204)
    63  }
    64  
    65  func (o *VirtualizationVirtualMachinesBulkDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
    66  
    67  	return nil
    68  }