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 // SubscribePolicyCreatedCode is the HTTP code returned for type SubscribePolicyCreated
17 const SubscribePolicyCreatedCode int = 201
19 /*SubscribePolicyCreated Subscription successfully created
21 swagger:response subscribePolicyCreated
23 type SubscribePolicyCreated struct {
28 Payload *models.SubscriptionResponse `json:"body,omitempty"`
31 // NewSubscribePolicyCreated creates SubscribePolicyCreated with default headers values
32 func NewSubscribePolicyCreated() *SubscribePolicyCreated {
34 return &SubscribePolicyCreated{}
37 // WithPayload adds the payload to the subscribe policy created response
38 func (o *SubscribePolicyCreated) WithPayload(payload *models.SubscriptionResponse) *SubscribePolicyCreated {
43 // SetPayload sets the payload to the subscribe policy created response
44 func (o *SubscribePolicyCreated) SetPayload(payload *models.SubscriptionResponse) {
48 // WriteResponse to the client
49 func (o *SubscribePolicyCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
54 if err := producer.Produce(rw, payload); err != nil {
55 panic(err) // let the recovery middleware deal with this
60 // SubscribePolicyBadRequestCode is the HTTP code returned for type SubscribePolicyBadRequest
61 const SubscribePolicyBadRequestCode int = 400
63 /*SubscribePolicyBadRequest Invalid input
65 swagger:response subscribePolicyBadRequest
67 type SubscribePolicyBadRequest struct {
70 // NewSubscribePolicyBadRequest creates SubscribePolicyBadRequest with default headers values
71 func NewSubscribePolicyBadRequest() *SubscribePolicyBadRequest {
73 return &SubscribePolicyBadRequest{}
76 // WriteResponse to the client
77 func (o *SubscribePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
79 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
84 // SubscribePolicyInternalServerErrorCode is the HTTP code returned for type SubscribePolicyInternalServerError
85 const SubscribePolicyInternalServerErrorCode int = 500
87 /*SubscribePolicyInternalServerError Internal error
89 swagger:response subscribePolicyInternalServerError
91 type SubscribePolicyInternalServerError struct {
94 // NewSubscribePolicyInternalServerError creates SubscribePolicyInternalServerError with default headers values
95 func NewSubscribePolicyInternalServerError() *SubscribePolicyInternalServerError {
97 return &SubscribePolicyInternalServerError{}
100 // WriteResponse to the client
101 func (o *SubscribePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
103 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses