Add optional subscription ID
[ric-plt/xapp-frame.git] / pkg / clientapi / xapp / get_xapp_config_list_responses.go
1 // Code generated by go-swagger; DO NOT EDIT.
2
3 package xapp
4
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
7
8 import (
9         "fmt"
10         "io"
11
12         "github.com/go-openapi/runtime"
13         "github.com/go-openapi/strfmt"
14
15         "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientmodel"
16 )
17
18 // GetXappConfigListReader is a Reader for the GetXappConfigList structure.
19 type GetXappConfigListReader struct {
20         formats strfmt.Registry
21 }
22
23 // ReadResponse reads a server response into the received o.
24 func (o *GetXappConfigListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
25         switch response.Code() {
26         case 200:
27                 result := NewGetXappConfigListOK()
28                 if err := result.readResponse(response, consumer, o.formats); err != nil {
29                         return nil, err
30                 }
31                 return result, nil
32         case 500:
33                 result := NewGetXappConfigListInternalServerError()
34                 if err := result.readResponse(response, consumer, o.formats); err != nil {
35                         return nil, err
36                 }
37                 return nil, result
38
39         default:
40                 return nil, runtime.NewAPIError("unknown error", response, response.Code())
41         }
42 }
43
44 // NewGetXappConfigListOK creates a GetXappConfigListOK with default headers values
45 func NewGetXappConfigListOK() *GetXappConfigListOK {
46         return &GetXappConfigListOK{}
47 }
48
49 /*GetXappConfigListOK handles this case with default header values.
50
51 successful query of xApp config
52 */
53 type GetXappConfigListOK struct {
54         Payload clientmodel.XappConfigList
55 }
56
57 func (o *GetXappConfigListOK) Error() string {
58         return fmt.Sprintf("[GET /config][%d] getXappConfigListOK  %+v", 200, o.Payload)
59 }
60
61 func (o *GetXappConfigListOK) GetPayload() clientmodel.XappConfigList {
62         return o.Payload
63 }
64
65 func (o *GetXappConfigListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
66
67         // response payload
68         if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
69                 return err
70         }
71
72         return nil
73 }
74
75 // NewGetXappConfigListInternalServerError creates a GetXappConfigListInternalServerError with default headers values
76 func NewGetXappConfigListInternalServerError() *GetXappConfigListInternalServerError {
77         return &GetXappConfigListInternalServerError{}
78 }
79
80 /*GetXappConfigListInternalServerError handles this case with default header values.
81
82 Internal error
83 */
84 type GetXappConfigListInternalServerError struct {
85 }
86
87 func (o *GetXappConfigListInternalServerError) Error() string {
88         return fmt.Sprintf("[GET /config][%d] getXappConfigListInternalServerError ", 500)
89 }
90
91 func (o *GetXappConfigListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
92
93         return nil
94 }