blob: a3800d096ff9dca9d42a4dca4e9597ead70d3873 [file] [log] [blame]
Serge Bazanskicc25bdf2018-10-25 14:02:58 +02001// Code generated by go-swagger; DO NOT EDIT.
2
3// Copyright 2018 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
17package dcim
18
19// This file was generated by the swagger tool.
20// Editing this file might prove futile when you re-run the swagger generate command
21
22import (
23 "fmt"
24
25 "github.com/go-openapi/runtime"
26
27 strfmt "github.com/go-openapi/strfmt"
28)
29
30// DcimDeviceBayTemplatesDeleteReader is a Reader for the DcimDeviceBayTemplatesDelete structure.
31type DcimDeviceBayTemplatesDeleteReader struct {
32 formats strfmt.Registry
33}
34
35// ReadResponse reads a server response into the received o.
36func (o *DcimDeviceBayTemplatesDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
37 switch response.Code() {
38
39 case 204:
40 result := NewDcimDeviceBayTemplatesDeleteNoContent()
41 if err := result.readResponse(response, consumer, o.formats); err != nil {
42 return nil, err
43 }
44 return result, nil
45
46 default:
47 return nil, runtime.NewAPIError("unknown error", response, response.Code())
48 }
49}
50
51// NewDcimDeviceBayTemplatesDeleteNoContent creates a DcimDeviceBayTemplatesDeleteNoContent with default headers values
52func NewDcimDeviceBayTemplatesDeleteNoContent() *DcimDeviceBayTemplatesDeleteNoContent {
53 return &DcimDeviceBayTemplatesDeleteNoContent{}
54}
55
56/*DcimDeviceBayTemplatesDeleteNoContent handles this case with default header values.
57
58DcimDeviceBayTemplatesDeleteNoContent dcim device bay templates delete no content
59*/
60type DcimDeviceBayTemplatesDeleteNoContent struct {
61}
62
63func (o *DcimDeviceBayTemplatesDeleteNoContent) Error() string {
64 return fmt.Sprintf("[DELETE /dcim/device-bay-templates/{id}/][%d] dcimDeviceBayTemplatesDeleteNoContent ", 204)
65}
66
67func (o *DcimDeviceBayTemplatesDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
68
69 return nil
70}