Files
zeekay 241625e7d9 rename: ziti → zt across all paths
- Repo names: ziti-* → zt-*
- Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt
- Docker images: hanzozt/ziti-* → hanzozt/zt-*
- C/Java/JS symbols: ziti_* → zt_*
- File and directory names updated
2026-02-18 18:34:19 -08:00

215 lines
6.1 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
//
// Copyright NetFoundry Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// __ __ _
// \ \ / / (_)
// \ \ /\ / /_ _ _ __ _ __ _ _ __ __ _
// \ \/ \/ / _` | '__| '_ \| | '_ \ / _` |
// \ /\ / (_| | | | | | | | | | | (_| | : This file is generated, do not edit it.
// \/ \/ \__,_|_| |_| |_|_|_| |_|\__, |
// __/ |
// |___/
package link
// 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/hanzozt/zt/v2/controller/rest_model"
)
// DetailLinkOKCode is the HTTP code returned for type DetailLinkOK
const DetailLinkOKCode int = 200
/*DetailLinkOK A single link
swagger:response detailLinkOK
*/
type DetailLinkOK struct {
/*
In: Body
*/
Payload *rest_model.DetailLinkEnvelope `json:"body,omitempty"`
}
// NewDetailLinkOK creates DetailLinkOK with default headers values
func NewDetailLinkOK() *DetailLinkOK {
return &DetailLinkOK{}
}
// WithPayload adds the payload to the detail link o k response
func (o *DetailLinkOK) WithPayload(payload *rest_model.DetailLinkEnvelope) *DetailLinkOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail link o k response
func (o *DetailLinkOK) SetPayload(payload *rest_model.DetailLinkEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailLinkOK) 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
}
}
}
// DetailLinkUnauthorizedCode is the HTTP code returned for type DetailLinkUnauthorized
const DetailLinkUnauthorizedCode int = 401
/*DetailLinkUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailLinkUnauthorized
*/
type DetailLinkUnauthorized struct {
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailLinkUnauthorized creates DetailLinkUnauthorized with default headers values
func NewDetailLinkUnauthorized() *DetailLinkUnauthorized {
return &DetailLinkUnauthorized{}
}
// WithPayload adds the payload to the detail link unauthorized response
func (o *DetailLinkUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkUnauthorized {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail link unauthorized response
func (o *DetailLinkUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailLinkUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(401)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DetailLinkNotFoundCode is the HTTP code returned for type DetailLinkNotFound
const DetailLinkNotFoundCode int = 404
/*DetailLinkNotFound The requested resource does not exist
swagger:response detailLinkNotFound
*/
type DetailLinkNotFound struct {
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailLinkNotFound creates DetailLinkNotFound with default headers values
func NewDetailLinkNotFound() *DetailLinkNotFound {
return &DetailLinkNotFound{}
}
// WithPayload adds the payload to the detail link not found response
func (o *DetailLinkNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkNotFound {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail link not found response
func (o *DetailLinkNotFound) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailLinkNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(404)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DetailLinkTooManyRequestsCode is the HTTP code returned for type DetailLinkTooManyRequests
const DetailLinkTooManyRequestsCode int = 429
/*DetailLinkTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response detailLinkTooManyRequests
*/
type DetailLinkTooManyRequests struct {
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDetailLinkTooManyRequests creates DetailLinkTooManyRequests with default headers values
func NewDetailLinkTooManyRequests() *DetailLinkTooManyRequests {
return &DetailLinkTooManyRequests{}
}
// WithPayload adds the payload to the detail link too many requests response
func (o *DetailLinkTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkTooManyRequests {
o.Payload = payload
return o
}
// SetPayload sets the payload to the detail link too many requests response
func (o *DetailLinkTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DetailLinkTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(429)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}