1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
11 "github.com/go-openapi/runtime"
13 models "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/models"
16 // GetAllSubscriptionsOKCode is the HTTP code returned for type GetAllSubscriptionsOK
17 const GetAllSubscriptionsOKCode int = 200
19 /*GetAllSubscriptionsOK successful query of subscriptions
21 swagger:response getAllSubscriptionsOK
23 type GetAllSubscriptionsOK struct {
28 Payload models.SubscriptionList `json:"body,omitempty"`
31 // NewGetAllSubscriptionsOK creates GetAllSubscriptionsOK with default headers values
32 func NewGetAllSubscriptionsOK() *GetAllSubscriptionsOK {
34 return &GetAllSubscriptionsOK{}
37 // WithPayload adds the payload to the get all subscriptions o k response
38 func (o *GetAllSubscriptionsOK) WithPayload(payload models.SubscriptionList) *GetAllSubscriptionsOK {
43 // SetPayload sets the payload to the get all subscriptions o k response
44 func (o *GetAllSubscriptionsOK) SetPayload(payload models.SubscriptionList) {
48 // WriteResponse to the client
49 func (o *GetAllSubscriptionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
55 payload = models.SubscriptionList{}
58 if err := producer.Produce(rw, payload); err != nil {
59 panic(err) // let the recovery middleware deal with this
63 // GetAllSubscriptionsInternalServerErrorCode is the HTTP code returned for type GetAllSubscriptionsInternalServerError
64 const GetAllSubscriptionsInternalServerErrorCode int = 500
66 /*GetAllSubscriptionsInternalServerError Internal error
68 swagger:response getAllSubscriptionsInternalServerError
70 type GetAllSubscriptionsInternalServerError struct {
73 // NewGetAllSubscriptionsInternalServerError creates GetAllSubscriptionsInternalServerError with default headers values
74 func NewGetAllSubscriptionsInternalServerError() *GetAllSubscriptionsInternalServerError {
76 return &GetAllSubscriptionsInternalServerError{}
79 // WriteResponse to the client
80 func (o *GetAllSubscriptionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
82 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses