mirror of
https://github.com/openziti/zrok.git
synced 2024-12-23 15:18:52 +01:00
135 lines
3.9 KiB
Go
135 lines
3.9 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package metadata
|
|
|
|
// 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"
|
|
)
|
|
|
|
// GetEnvironmentDetailOKCode is the HTTP code returned for type GetEnvironmentDetailOK
|
|
const GetEnvironmentDetailOKCode int = 200
|
|
|
|
/*
|
|
GetEnvironmentDetailOK ok
|
|
|
|
swagger:response getEnvironmentDetailOK
|
|
*/
|
|
type GetEnvironmentDetailOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *rest_model_zrok.EnvironmentAndResources `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewGetEnvironmentDetailOK creates GetEnvironmentDetailOK with default headers values
|
|
func NewGetEnvironmentDetailOK() *GetEnvironmentDetailOK {
|
|
|
|
return &GetEnvironmentDetailOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the get environment detail o k response
|
|
func (o *GetEnvironmentDetailOK) WithPayload(payload *rest_model_zrok.EnvironmentAndResources) *GetEnvironmentDetailOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the get environment detail o k response
|
|
func (o *GetEnvironmentDetailOK) SetPayload(payload *rest_model_zrok.EnvironmentAndResources) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetEnvironmentDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.WriteHeader(200)
|
|
if o.Payload != nil {
|
|
payload := o.Payload
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
panic(err) // let the recovery middleware deal with this
|
|
}
|
|
}
|
|
}
|
|
|
|
// GetEnvironmentDetailUnauthorizedCode is the HTTP code returned for type GetEnvironmentDetailUnauthorized
|
|
const GetEnvironmentDetailUnauthorizedCode int = 401
|
|
|
|
/*
|
|
GetEnvironmentDetailUnauthorized unauthorized
|
|
|
|
swagger:response getEnvironmentDetailUnauthorized
|
|
*/
|
|
type GetEnvironmentDetailUnauthorized struct {
|
|
}
|
|
|
|
// NewGetEnvironmentDetailUnauthorized creates GetEnvironmentDetailUnauthorized with default headers values
|
|
func NewGetEnvironmentDetailUnauthorized() *GetEnvironmentDetailUnauthorized {
|
|
|
|
return &GetEnvironmentDetailUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetEnvironmentDetailUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// GetEnvironmentDetailNotFoundCode is the HTTP code returned for type GetEnvironmentDetailNotFound
|
|
const GetEnvironmentDetailNotFoundCode int = 404
|
|
|
|
/*
|
|
GetEnvironmentDetailNotFound not found
|
|
|
|
swagger:response getEnvironmentDetailNotFound
|
|
*/
|
|
type GetEnvironmentDetailNotFound struct {
|
|
}
|
|
|
|
// NewGetEnvironmentDetailNotFound creates GetEnvironmentDetailNotFound with default headers values
|
|
func NewGetEnvironmentDetailNotFound() *GetEnvironmentDetailNotFound {
|
|
|
|
return &GetEnvironmentDetailNotFound{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetEnvironmentDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(404)
|
|
}
|
|
|
|
// GetEnvironmentDetailInternalServerErrorCode is the HTTP code returned for type GetEnvironmentDetailInternalServerError
|
|
const GetEnvironmentDetailInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
GetEnvironmentDetailInternalServerError internal server error
|
|
|
|
swagger:response getEnvironmentDetailInternalServerError
|
|
*/
|
|
type GetEnvironmentDetailInternalServerError struct {
|
|
}
|
|
|
|
// NewGetEnvironmentDetailInternalServerError creates GetEnvironmentDetailInternalServerError with default headers values
|
|
func NewGetEnvironmentDetailInternalServerError() *GetEnvironmentDetailInternalServerError {
|
|
|
|
return &GetEnvironmentDetailInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetEnvironmentDetailInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|