zrok/rest_server_zrok/operations/metadata/get_share_detail_responses.go
2023-01-13 15:01:34 -05:00

135 lines
3.6 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"
)
// GetShareDetailOKCode is the HTTP code returned for type GetShareDetailOK
const GetShareDetailOKCode int = 200
/*
GetShareDetailOK ok
swagger:response getShareDetailOK
*/
type GetShareDetailOK struct {
/*
In: Body
*/
Payload *rest_model_zrok.Share `json:"body,omitempty"`
}
// NewGetShareDetailOK creates GetShareDetailOK with default headers values
func NewGetShareDetailOK() *GetShareDetailOK {
return &GetShareDetailOK{}
}
// WithPayload adds the payload to the get share detail o k response
func (o *GetShareDetailOK) WithPayload(payload *rest_model_zrok.Share) *GetShareDetailOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the get share detail o k response
func (o *GetShareDetailOK) SetPayload(payload *rest_model_zrok.Share) {
o.Payload = payload
}
// WriteResponse to the client
func (o *GetShareDetailOK) 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
}
}
}
// GetShareDetailUnauthorizedCode is the HTTP code returned for type GetShareDetailUnauthorized
const GetShareDetailUnauthorizedCode int = 401
/*
GetShareDetailUnauthorized unauthorized
swagger:response getShareDetailUnauthorized
*/
type GetShareDetailUnauthorized struct {
}
// NewGetShareDetailUnauthorized creates GetShareDetailUnauthorized with default headers values
func NewGetShareDetailUnauthorized() *GetShareDetailUnauthorized {
return &GetShareDetailUnauthorized{}
}
// WriteResponse to the client
func (o *GetShareDetailUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(401)
}
// GetShareDetailNotFoundCode is the HTTP code returned for type GetShareDetailNotFound
const GetShareDetailNotFoundCode int = 404
/*
GetShareDetailNotFound not found
swagger:response getShareDetailNotFound
*/
type GetShareDetailNotFound struct {
}
// NewGetShareDetailNotFound creates GetShareDetailNotFound with default headers values
func NewGetShareDetailNotFound() *GetShareDetailNotFound {
return &GetShareDetailNotFound{}
}
// WriteResponse to the client
func (o *GetShareDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(404)
}
// GetShareDetailInternalServerErrorCode is the HTTP code returned for type GetShareDetailInternalServerError
const GetShareDetailInternalServerErrorCode int = 500
/*
GetShareDetailInternalServerError internal server error
swagger:response getShareDetailInternalServerError
*/
type GetShareDetailInternalServerError struct {
}
// NewGetShareDetailInternalServerError creates GetShareDetailInternalServerError with default headers values
func NewGetShareDetailInternalServerError() *GetShareDetailInternalServerError {
return &GetShareDetailInternalServerError{}
}
// WriteResponse to the client
func (o *GetShareDetailInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(500)
}