zrok/rest_server_zrok/operations/environment/disable_responses.go
2022-11-30 11:43:00 -05:00

88 lines
2.1 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package environment
// 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"
)
// DisableOKCode is the HTTP code returned for type DisableOK
const DisableOKCode int = 200
/*
DisableOK environment disabled
swagger:response disableOK
*/
type DisableOK struct {
}
// NewDisableOK creates DisableOK with default headers values
func NewDisableOK() *DisableOK {
return &DisableOK{}
}
// WriteResponse to the client
func (o *DisableOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(200)
}
// DisableUnauthorizedCode is the HTTP code returned for type DisableUnauthorized
const DisableUnauthorizedCode int = 401
/*
DisableUnauthorized invalid environment
swagger:response disableUnauthorized
*/
type DisableUnauthorized struct {
}
// NewDisableUnauthorized creates DisableUnauthorized with default headers values
func NewDisableUnauthorized() *DisableUnauthorized {
return &DisableUnauthorized{}
}
// WriteResponse to the client
func (o *DisableUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(401)
}
// DisableInternalServerErrorCode is the HTTP code returned for type DisableInternalServerError
const DisableInternalServerErrorCode int = 500
/*
DisableInternalServerError internal server error
swagger:response disableInternalServerError
*/
type DisableInternalServerError struct {
}
// NewDisableInternalServerError creates DisableInternalServerError with default headers values
func NewDisableInternalServerError() *DisableInternalServerError {
return &DisableInternalServerError{}
}
// WriteResponse to the client
func (o *DisableInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(500)
}