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 // SubscribeControlCreatedCode is the HTTP code returned for type SubscribeControlCreated
17 const SubscribeControlCreatedCode int = 201
19 /*SubscribeControlCreated Subscription successfully created
21 swagger:response subscribeControlCreated
23 type SubscribeControlCreated struct {
28 Payload models.SubscriptionResult `json:"body,omitempty"`
31 // NewSubscribeControlCreated creates SubscribeControlCreated with default headers values
32 func NewSubscribeControlCreated() *SubscribeControlCreated {
34 return &SubscribeControlCreated{}
37 // WithPayload adds the payload to the subscribe control created response
38 func (o *SubscribeControlCreated) WithPayload(payload models.SubscriptionResult) *SubscribeControlCreated {
43 // SetPayload sets the payload to the subscribe control created response
44 func (o *SubscribeControlCreated) SetPayload(payload models.SubscriptionResult) {
48 // WriteResponse to the client
49 func (o *SubscribeControlCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
55 payload = models.SubscriptionResult{}
58 if err := producer.Produce(rw, payload); err != nil {
59 panic(err) // let the recovery middleware deal with this
63 // SubscribeControlBadRequestCode is the HTTP code returned for type SubscribeControlBadRequest
64 const SubscribeControlBadRequestCode int = 400
66 /*SubscribeControlBadRequest Invalid input
68 swagger:response subscribeControlBadRequest
70 type SubscribeControlBadRequest struct {
73 // NewSubscribeControlBadRequest creates SubscribeControlBadRequest with default headers values
74 func NewSubscribeControlBadRequest() *SubscribeControlBadRequest {
76 return &SubscribeControlBadRequest{}
79 // WriteResponse to the client
80 func (o *SubscribeControlBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
82 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
87 // SubscribeControlInternalServerErrorCode is the HTTP code returned for type SubscribeControlInternalServerError
88 const SubscribeControlInternalServerErrorCode int = 500
90 /*SubscribeControlInternalServerError Internal error
92 swagger:response subscribeControlInternalServerError
94 type SubscribeControlInternalServerError struct {
97 // NewSubscribeControlInternalServerError creates SubscribeControlInternalServerError with default headers values
98 func NewSubscribeControlInternalServerError() *SubscribeControlInternalServerError {
100 return &SubscribeControlInternalServerError{}
103 // WriteResponse to the client
104 func (o *SubscribeControlInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
106 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses