/
get_zipped_responses.go
59 lines (46 loc) · 1.58 KB
/
get_zipped_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
59
// Code generated by go-swagger; DO NOT EDIT.
package vcs_root_instance
// 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"
)
// GetZippedReader is a Reader for the GetZipped structure.
type GetZippedReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GetZippedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
result := NewGetZippedDefault(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
}
// NewGetZippedDefault creates a GetZippedDefault with default headers values
func NewGetZippedDefault(code int) *GetZippedDefault {
return &GetZippedDefault{
_statusCode: code,
}
}
/*GetZippedDefault handles this case with default header values.
successful operation
*/
type GetZippedDefault struct {
_statusCode int
}
// Code gets the status code for the get zipped default response
func (o *GetZippedDefault) Code() int {
return o._statusCode
}
func (o *GetZippedDefault) Error() string {
return fmt.Sprintf("[GET /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path}][%d] getZipped default ", o._statusCode)
}
func (o *GetZippedDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}