// Code generated by go-swagger; DO NOT EDIT. package admin // 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" "github.com/openziti/zrok/rest_model_zrok" ) // DeleteFrontendGrantOKCode is the HTTP code returned for type DeleteFrontendGrantOK const DeleteFrontendGrantOKCode int = 200 /* DeleteFrontendGrantOK ok swagger:response deleteFrontendGrantOK */ type DeleteFrontendGrantOK struct { } // NewDeleteFrontendGrantOK creates DeleteFrontendGrantOK with default headers values func NewDeleteFrontendGrantOK() *DeleteFrontendGrantOK { return &DeleteFrontendGrantOK{} } // WriteResponse to the client func (o *DeleteFrontendGrantOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(200) } // DeleteFrontendGrantUnauthorizedCode is the HTTP code returned for type DeleteFrontendGrantUnauthorized const DeleteFrontendGrantUnauthorizedCode int = 401 /* DeleteFrontendGrantUnauthorized unauthorized swagger:response deleteFrontendGrantUnauthorized */ type DeleteFrontendGrantUnauthorized struct { } // NewDeleteFrontendGrantUnauthorized creates DeleteFrontendGrantUnauthorized with default headers values func NewDeleteFrontendGrantUnauthorized() *DeleteFrontendGrantUnauthorized { return &DeleteFrontendGrantUnauthorized{} } // WriteResponse to the client func (o *DeleteFrontendGrantUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(401) } // DeleteFrontendGrantNotFoundCode is the HTTP code returned for type DeleteFrontendGrantNotFound const DeleteFrontendGrantNotFoundCode int = 404 /* DeleteFrontendGrantNotFound not found swagger:response deleteFrontendGrantNotFound */ type DeleteFrontendGrantNotFound struct { /* In: Body */ Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"` } // NewDeleteFrontendGrantNotFound creates DeleteFrontendGrantNotFound with default headers values func NewDeleteFrontendGrantNotFound() *DeleteFrontendGrantNotFound { return &DeleteFrontendGrantNotFound{} } // WithPayload adds the payload to the delete frontend grant not found response func (o *DeleteFrontendGrantNotFound) WithPayload(payload rest_model_zrok.ErrorMessage) *DeleteFrontendGrantNotFound { o.Payload = payload return o } // SetPayload sets the payload to the delete frontend grant not found response func (o *DeleteFrontendGrantNotFound) SetPayload(payload rest_model_zrok.ErrorMessage) { o.Payload = payload } // WriteResponse to the client func (o *DeleteFrontendGrantNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(404) payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } // DeleteFrontendGrantInternalServerErrorCode is the HTTP code returned for type DeleteFrontendGrantInternalServerError const DeleteFrontendGrantInternalServerErrorCode int = 500 /* DeleteFrontendGrantInternalServerError internal server error swagger:response deleteFrontendGrantInternalServerError */ type DeleteFrontendGrantInternalServerError struct { } // NewDeleteFrontendGrantInternalServerError creates DeleteFrontendGrantInternalServerError with default headers values func NewDeleteFrontendGrantInternalServerError() *DeleteFrontendGrantInternalServerError { return &DeleteFrontendGrantInternalServerError{} } // WriteResponse to the client func (o *DeleteFrontendGrantInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(500) }