// Code generated by go-swagger; DO NOT EDIT. package agent // 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" ) // EnrollOKCode is the HTTP code returned for type EnrollOK const EnrollOKCode int = 200 /* EnrollOK ok swagger:response enrollOK */ type EnrollOK struct { /* In: Body */ Payload *EnrollOKBody `json:"body,omitempty"` } // NewEnrollOK creates EnrollOK with default headers values func NewEnrollOK() *EnrollOK { return &EnrollOK{} } // WithPayload adds the payload to the enroll o k response func (o *EnrollOK) WithPayload(payload *EnrollOKBody) *EnrollOK { o.Payload = payload return o } // SetPayload sets the payload to the enroll o k response func (o *EnrollOK) SetPayload(payload *EnrollOKBody) { o.Payload = payload } // WriteResponse to the client func (o *EnrollOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(200) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } } // EnrollBadRequestCode is the HTTP code returned for type EnrollBadRequest const EnrollBadRequestCode int = 400 /* EnrollBadRequest bad request; already enrolled swagger:response enrollBadRequest */ type EnrollBadRequest struct { } // NewEnrollBadRequest creates EnrollBadRequest with default headers values func NewEnrollBadRequest() *EnrollBadRequest { return &EnrollBadRequest{} } // WriteResponse to the client func (o *EnrollBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(400) } // EnrollUnauthorizedCode is the HTTP code returned for type EnrollUnauthorized const EnrollUnauthorizedCode int = 401 /* EnrollUnauthorized unauthorized swagger:response enrollUnauthorized */ type EnrollUnauthorized struct { } // NewEnrollUnauthorized creates EnrollUnauthorized with default headers values func NewEnrollUnauthorized() *EnrollUnauthorized { return &EnrollUnauthorized{} } // WriteResponse to the client func (o *EnrollUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(401) } // EnrollInternalServerErrorCode is the HTTP code returned for type EnrollInternalServerError const EnrollInternalServerErrorCode int = 500 /* EnrollInternalServerError internal server error swagger:response enrollInternalServerError */ type EnrollInternalServerError struct { } // NewEnrollInternalServerError creates EnrollInternalServerError with default headers values func NewEnrollInternalServerError() *EnrollInternalServerError { return &EnrollInternalServerError{} } // WriteResponse to the client func (o *EnrollInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(500) }