/
ip_space_delete_responses.go
58 lines (43 loc) · 1.78 KB
/
ip_space_delete_responses.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Code generated by go-swagger; DO NOT EDIT.
package ip_space
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
b1cliruntime "github.com/infobloxopen/b1ddi-go-client/runtime"
)
// IPSpaceDeleteReader is a Reader for the IPSpaceDelete structure.
type IPSpaceDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IPSpaceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
if response.Code() >= 400 && response.Code() < 500 {
return nil, b1cliruntime.NewAPIHTTPError("response status code indicates client error", response.Body(), response.Code())
}
if response.Code() >= 500 && response.Code() < 600 {
return nil, b1cliruntime.NewAPIHTTPError("response status code indicates server error", response.Body(), response.Code())
}
result := NewIPSpaceDeleteNoContent()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
}
// NewIPSpaceDeleteNoContent creates a IPSpaceDeleteNoContent with default headers values
func NewIPSpaceDeleteNoContent() *IPSpaceDeleteNoContent {
return &IPSpaceDeleteNoContent{}
}
/* IPSpaceDeleteNoContent describes a response with status code 204, with default header values.
No Content
*/
type IPSpaceDeleteNoContent struct {
}
func (o *IPSpaceDeleteNoContent) Error() string {
return fmt.Sprintf("[DELETE /ipam/ip_space/{id}][%d] ipSpaceDeleteNoContent ", 204)
}
func (o *IPSpaceDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}