zrok/rest_server_zrok/operations/admin/invite_generate_responses.go

113 lines
3.1 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"
)
// InviteGenerateCreatedCode is the HTTP code returned for type InviteGenerateCreated
const InviteGenerateCreatedCode int = 201
/*
InviteGenerateCreated invitation tokens created
swagger:response inviteGenerateCreated
*/
type InviteGenerateCreated struct {
}
// NewInviteGenerateCreated creates InviteGenerateCreated with default headers values
func NewInviteGenerateCreated() *InviteGenerateCreated {
return &InviteGenerateCreated{}
}
// WriteResponse to the client
func (o *InviteGenerateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(201)
}
// InviteGenerateBadRequestCode is the HTTP code returned for type InviteGenerateBadRequest
const InviteGenerateBadRequestCode int = 400
/*
InviteGenerateBadRequest invitation tokens not created
swagger:response inviteGenerateBadRequest
*/
type InviteGenerateBadRequest struct {
}
// NewInviteGenerateBadRequest creates InviteGenerateBadRequest with default headers values
func NewInviteGenerateBadRequest() *InviteGenerateBadRequest {
return &InviteGenerateBadRequest{}
}
// WriteResponse to the client
func (o *InviteGenerateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(400)
}
// InviteGenerateUnauthorizedCode is the HTTP code returned for type InviteGenerateUnauthorized
const InviteGenerateUnauthorizedCode int = 401
/*
InviteGenerateUnauthorized unauthorized
swagger:response inviteGenerateUnauthorized
*/
type InviteGenerateUnauthorized struct {
}
// NewInviteGenerateUnauthorized creates InviteGenerateUnauthorized with default headers values
func NewInviteGenerateUnauthorized() *InviteGenerateUnauthorized {
return &InviteGenerateUnauthorized{}
}
// WriteResponse to the client
func (o *InviteGenerateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(401)
}
// InviteGenerateInternalServerErrorCode is the HTTP code returned for type InviteGenerateInternalServerError
const InviteGenerateInternalServerErrorCode int = 500
/*
InviteGenerateInternalServerError internal server error
swagger:response inviteGenerateInternalServerError
*/
type InviteGenerateInternalServerError struct {
}
// NewInviteGenerateInternalServerError creates InviteGenerateInternalServerError with default headers values
func NewInviteGenerateInternalServerError() *InviteGenerateInternalServerError {
return &InviteGenerateInternalServerError{}
}
// WriteResponse to the client
func (o *InviteGenerateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(500)
}