X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fxapp%2Fget_xapp_config_list_responses.go;fp=pkg%2Fclientapi%2Fxapp%2Fget_xapp_config_list_responses.go;h=3ddd2fb2fd630d107c8046e86d0fbc8b909092b7;hb=3602bf801fef17e317cb35a4c710118ec80908b9;hp=0000000000000000000000000000000000000000;hpb=060448c051013852d463bc13bfc5f0aa3696ac9c;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/xapp/get_xapp_config_list_responses.go b/pkg/clientapi/xapp/get_xapp_config_list_responses.go new file mode 100644 index 0000000..3ddd2fb --- /dev/null +++ b/pkg/clientapi/xapp/get_xapp_config_list_responses.go @@ -0,0 +1,93 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package xapp + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + + strfmt "github.com/go-openapi/strfmt" + + clientmodel "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientmodel" +) + +// GetXappConfigListReader is a Reader for the GetXappConfigList structure. +type GetXappConfigListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetXappConfigListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + + case 200: + result := NewGetXappConfigListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + case 500: + result := NewGetXappConfigListInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + + default: + return nil, runtime.NewAPIError("unknown error", response, response.Code()) + } +} + +// NewGetXappConfigListOK creates a GetXappConfigListOK with default headers values +func NewGetXappConfigListOK() *GetXappConfigListOK { + return &GetXappConfigListOK{} +} + +/*GetXappConfigListOK handles this case with default header values. + +successful query of xApp config +*/ +type GetXappConfigListOK struct { + Payload clientmodel.XappConfigList +} + +func (o *GetXappConfigListOK) Error() string { + return fmt.Sprintf("[GET /config][%d] getXappConfigListOK %+v", 200, o.Payload) +} + +func (o *GetXappConfigListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response payload + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetXappConfigListInternalServerError creates a GetXappConfigListInternalServerError with default headers values +func NewGetXappConfigListInternalServerError() *GetXappConfigListInternalServerError { + return &GetXappConfigListInternalServerError{} +} + +/*GetXappConfigListInternalServerError handles this case with default header values. + +Internal error +*/ +type GetXappConfigListInternalServerError struct { +} + +func (o *GetXappConfigListInternalServerError) Error() string { + return fmt.Sprintf("[GET /config][%d] getXappConfigListInternalServerError ", 500) +} + +func (o *GetXappConfigListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +}