mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 17:43:53 +01:00
108 lines
3.0 KiB
Go
108 lines
3.0 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"
|
|
)
|
|
|
|
// CreateIdentityCreatedCode is the HTTP code returned for type CreateIdentityCreated
|
|
const CreateIdentityCreatedCode int = 201
|
|
|
|
/*
|
|
CreateIdentityCreated created
|
|
|
|
swagger:response createIdentityCreated
|
|
*/
|
|
type CreateIdentityCreated struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *CreateIdentityCreatedBody `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewCreateIdentityCreated creates CreateIdentityCreated with default headers values
|
|
func NewCreateIdentityCreated() *CreateIdentityCreated {
|
|
|
|
return &CreateIdentityCreated{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the create identity created response
|
|
func (o *CreateIdentityCreated) WithPayload(payload *CreateIdentityCreatedBody) *CreateIdentityCreated {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the create identity created response
|
|
func (o *CreateIdentityCreated) SetPayload(payload *CreateIdentityCreatedBody) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateIdentityCreated) 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
|
|
}
|
|
}
|
|
}
|
|
|
|
// CreateIdentityUnauthorizedCode is the HTTP code returned for type CreateIdentityUnauthorized
|
|
const CreateIdentityUnauthorizedCode int = 401
|
|
|
|
/*
|
|
CreateIdentityUnauthorized unauthorized
|
|
|
|
swagger:response createIdentityUnauthorized
|
|
*/
|
|
type CreateIdentityUnauthorized struct {
|
|
}
|
|
|
|
// NewCreateIdentityUnauthorized creates CreateIdentityUnauthorized with default headers values
|
|
func NewCreateIdentityUnauthorized() *CreateIdentityUnauthorized {
|
|
|
|
return &CreateIdentityUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateIdentityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// CreateIdentityInternalServerErrorCode is the HTTP code returned for type CreateIdentityInternalServerError
|
|
const CreateIdentityInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
CreateIdentityInternalServerError internal server error
|
|
|
|
swagger:response createIdentityInternalServerError
|
|
*/
|
|
type CreateIdentityInternalServerError struct {
|
|
}
|
|
|
|
// NewCreateIdentityInternalServerError creates CreateIdentityInternalServerError with default headers values
|
|
func NewCreateIdentityInternalServerError() *CreateIdentityInternalServerError {
|
|
|
|
return &CreateIdentityInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateIdentityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|