mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 11:49:51 +02:00
support for 'patch' access (frontend) to update description (for bind address) (#834)
This commit is contained in:
112
rest_server_zrok/operations/share/update_access_responses.go
Normal file
112
rest_server_zrok/operations/share/update_access_responses.go
Normal file
@@ -0,0 +1,112 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package share
|
||||
|
||||
// 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"
|
||||
)
|
||||
|
||||
// UpdateAccessOKCode is the HTTP code returned for type UpdateAccessOK
|
||||
const UpdateAccessOKCode int = 200
|
||||
|
||||
/*
|
||||
UpdateAccessOK access updated
|
||||
|
||||
swagger:response updateAccessOK
|
||||
*/
|
||||
type UpdateAccessOK struct {
|
||||
}
|
||||
|
||||
// NewUpdateAccessOK creates UpdateAccessOK with default headers values
|
||||
func NewUpdateAccessOK() *UpdateAccessOK {
|
||||
|
||||
return &UpdateAccessOK{}
|
||||
}
|
||||
|
||||
// WriteResponse to the client
|
||||
func (o *UpdateAccessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
||||
|
||||
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
||||
|
||||
rw.WriteHeader(200)
|
||||
}
|
||||
|
||||
// UpdateAccessUnauthorizedCode is the HTTP code returned for type UpdateAccessUnauthorized
|
||||
const UpdateAccessUnauthorizedCode int = 401
|
||||
|
||||
/*
|
||||
UpdateAccessUnauthorized unauthorized
|
||||
|
||||
swagger:response updateAccessUnauthorized
|
||||
*/
|
||||
type UpdateAccessUnauthorized struct {
|
||||
}
|
||||
|
||||
// NewUpdateAccessUnauthorized creates UpdateAccessUnauthorized with default headers values
|
||||
func NewUpdateAccessUnauthorized() *UpdateAccessUnauthorized {
|
||||
|
||||
return &UpdateAccessUnauthorized{}
|
||||
}
|
||||
|
||||
// WriteResponse to the client
|
||||
func (o *UpdateAccessUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
||||
|
||||
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
||||
|
||||
rw.WriteHeader(401)
|
||||
}
|
||||
|
||||
// UpdateAccessNotFoundCode is the HTTP code returned for type UpdateAccessNotFound
|
||||
const UpdateAccessNotFoundCode int = 404
|
||||
|
||||
/*
|
||||
UpdateAccessNotFound not found
|
||||
|
||||
swagger:response updateAccessNotFound
|
||||
*/
|
||||
type UpdateAccessNotFound struct {
|
||||
}
|
||||
|
||||
// NewUpdateAccessNotFound creates UpdateAccessNotFound with default headers values
|
||||
func NewUpdateAccessNotFound() *UpdateAccessNotFound {
|
||||
|
||||
return &UpdateAccessNotFound{}
|
||||
}
|
||||
|
||||
// WriteResponse to the client
|
||||
func (o *UpdateAccessNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
||||
|
||||
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
||||
|
||||
rw.WriteHeader(404)
|
||||
}
|
||||
|
||||
// UpdateAccessInternalServerErrorCode is the HTTP code returned for type UpdateAccessInternalServerError
|
||||
const UpdateAccessInternalServerErrorCode int = 500
|
||||
|
||||
/*
|
||||
UpdateAccessInternalServerError internal server error
|
||||
|
||||
swagger:response updateAccessInternalServerError
|
||||
*/
|
||||
type UpdateAccessInternalServerError struct {
|
||||
}
|
||||
|
||||
// NewUpdateAccessInternalServerError creates UpdateAccessInternalServerError with default headers values
|
||||
func NewUpdateAccessInternalServerError() *UpdateAccessInternalServerError {
|
||||
|
||||
return &UpdateAccessInternalServerError{}
|
||||
}
|
||||
|
||||
// WriteResponse to the client
|
||||
func (o *UpdateAccessInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
||||
|
||||
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
||||
|
||||
rw.WriteHeader(500)
|
||||
}
|
Reference in New Issue
Block a user