X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frestapi%2Foperations%2Freport%2Fsubscribe_report_responses.go;fp=pkg%2Frestapi%2Foperations%2Freport%2Fsubscribe_report_responses.go;h=0000000000000000000000000000000000000000;hb=3602bf801fef17e317cb35a4c710118ec80908b9;hp=9e9d18d723aa7d0df5e6626e1d12a2fac422dfdf;hpb=060448c051013852d463bc13bfc5f0aa3696ac9c;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/restapi/operations/report/subscribe_report_responses.go b/pkg/restapi/operations/report/subscribe_report_responses.go deleted file mode 100644 index 9e9d18d..0000000 --- a/pkg/restapi/operations/report/subscribe_report_responses.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package report - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "net/http" - - "github.com/go-openapi/runtime" - - models "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/models" -) - -// SubscribeReportCreatedCode is the HTTP code returned for type SubscribeReportCreated -const SubscribeReportCreatedCode int = 201 - -/*SubscribeReportCreated Subscription successfully created - -swagger:response subscribeReportCreated -*/ -type SubscribeReportCreated struct { - - /* - In: Body - */ - Payload *models.SubscriptionResponse `json:"body,omitempty"` -} - -// NewSubscribeReportCreated creates SubscribeReportCreated with default headers values -func NewSubscribeReportCreated() *SubscribeReportCreated { - - return &SubscribeReportCreated{} -} - -// WithPayload adds the payload to the subscribe report created response -func (o *SubscribeReportCreated) WithPayload(payload *models.SubscriptionResponse) *SubscribeReportCreated { - o.Payload = payload - return o -} - -// SetPayload sets the payload to the subscribe report created response -func (o *SubscribeReportCreated) SetPayload(payload *models.SubscriptionResponse) { - o.Payload = payload -} - -// WriteResponse to the client -func (o *SubscribeReportCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { - - rw.WriteHeader(201) - if o.Payload != nil { - payload := o.Payload - if err := producer.Produce(rw, payload); err != nil { - panic(err) // let the recovery middleware deal with this - } - } -} - -// SubscribeReportBadRequestCode is the HTTP code returned for type SubscribeReportBadRequest -const SubscribeReportBadRequestCode int = 400 - -/*SubscribeReportBadRequest Invalid input - -swagger:response subscribeReportBadRequest -*/ -type SubscribeReportBadRequest struct { -} - -// NewSubscribeReportBadRequest creates SubscribeReportBadRequest with default headers values -func NewSubscribeReportBadRequest() *SubscribeReportBadRequest { - - return &SubscribeReportBadRequest{} -} - -// WriteResponse to the client -func (o *SubscribeReportBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { - - rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses - - rw.WriteHeader(400) -} - -// SubscribeReportInternalServerErrorCode is the HTTP code returned for type SubscribeReportInternalServerError -const SubscribeReportInternalServerErrorCode int = 500 - -/*SubscribeReportInternalServerError Internal error - -swagger:response subscribeReportInternalServerError -*/ -type SubscribeReportInternalServerError struct { -} - -// NewSubscribeReportInternalServerError creates SubscribeReportInternalServerError with default headers values -func NewSubscribeReportInternalServerError() *SubscribeReportInternalServerError { - - return &SubscribeReportInternalServerError{} -} - -// WriteResponse to the client -func (o *SubscribeReportInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { - - rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses - - rw.WriteHeader(500) -}