mirror of
https://github.com/openziti/zrok.git
synced 2024-12-01 20:43:51 +01:00
160 lines
4.4 KiB
Go
160 lines
4.4 KiB
Go
// 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"
|
|
)
|
|
|
|
// CreateFrontendCreatedCode is the HTTP code returned for type CreateFrontendCreated
|
|
const CreateFrontendCreatedCode int = 201
|
|
|
|
/*
|
|
CreateFrontendCreated frontend created
|
|
|
|
swagger:response createFrontendCreated
|
|
*/
|
|
type CreateFrontendCreated struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *rest_model_zrok.CreateFrontendResponse `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewCreateFrontendCreated creates CreateFrontendCreated with default headers values
|
|
func NewCreateFrontendCreated() *CreateFrontendCreated {
|
|
|
|
return &CreateFrontendCreated{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the create frontend created response
|
|
func (o *CreateFrontendCreated) WithPayload(payload *rest_model_zrok.CreateFrontendResponse) *CreateFrontendCreated {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the create frontend created response
|
|
func (o *CreateFrontendCreated) SetPayload(payload *rest_model_zrok.CreateFrontendResponse) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateFrontendCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.WriteHeader(201)
|
|
if o.Payload != nil {
|
|
payload := o.Payload
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
panic(err) // let the recovery middleware deal with this
|
|
}
|
|
}
|
|
}
|
|
|
|
// CreateFrontendBadRequestCode is the HTTP code returned for type CreateFrontendBadRequest
|
|
const CreateFrontendBadRequestCode int = 400
|
|
|
|
/*
|
|
CreateFrontendBadRequest bad request
|
|
|
|
swagger:response createFrontendBadRequest
|
|
*/
|
|
type CreateFrontendBadRequest struct {
|
|
}
|
|
|
|
// NewCreateFrontendBadRequest creates CreateFrontendBadRequest with default headers values
|
|
func NewCreateFrontendBadRequest() *CreateFrontendBadRequest {
|
|
|
|
return &CreateFrontendBadRequest{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateFrontendBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(400)
|
|
}
|
|
|
|
// CreateFrontendUnauthorizedCode is the HTTP code returned for type CreateFrontendUnauthorized
|
|
const CreateFrontendUnauthorizedCode int = 401
|
|
|
|
/*
|
|
CreateFrontendUnauthorized unauthorized
|
|
|
|
swagger:response createFrontendUnauthorized
|
|
*/
|
|
type CreateFrontendUnauthorized struct {
|
|
}
|
|
|
|
// NewCreateFrontendUnauthorized creates CreateFrontendUnauthorized with default headers values
|
|
func NewCreateFrontendUnauthorized() *CreateFrontendUnauthorized {
|
|
|
|
return &CreateFrontendUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateFrontendUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// CreateFrontendNotFoundCode is the HTTP code returned for type CreateFrontendNotFound
|
|
const CreateFrontendNotFoundCode int = 404
|
|
|
|
/*
|
|
CreateFrontendNotFound not found
|
|
|
|
swagger:response createFrontendNotFound
|
|
*/
|
|
type CreateFrontendNotFound struct {
|
|
}
|
|
|
|
// NewCreateFrontendNotFound creates CreateFrontendNotFound with default headers values
|
|
func NewCreateFrontendNotFound() *CreateFrontendNotFound {
|
|
|
|
return &CreateFrontendNotFound{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateFrontendNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(404)
|
|
}
|
|
|
|
// CreateFrontendInternalServerErrorCode is the HTTP code returned for type CreateFrontendInternalServerError
|
|
const CreateFrontendInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
CreateFrontendInternalServerError internal server error
|
|
|
|
swagger:response createFrontendInternalServerError
|
|
*/
|
|
type CreateFrontendInternalServerError struct {
|
|
}
|
|
|
|
// NewCreateFrontendInternalServerError creates CreateFrontendInternalServerError with default headers values
|
|
func NewCreateFrontendInternalServerError() *CreateFrontendInternalServerError {
|
|
|
|
return &CreateFrontendInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateFrontendInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|