Files
zeekay b7d8ccb10f rebrand: openziti → hanzozt (Hanzo Zero Trust)
Global rebrand of all OpenZiti references to Hanzo ZT:
- Go module paths: github.com/openziti/* → github.com/hanzozt/*
- Docker images: openziti/* → hanzozt/*
- Java packages: org.openziti.* → org.hanzozt.*
- Brand: OpenZiti → Hanzo ZT
- URLs: openziti.io → hanzozt.dev
2026-02-18 16:13:41 -08:00

579 lines
18 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 session
// 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/go-openapi/swag"
"github.com/hanzozt/edge-api/rest_model"
)
// DeleteSessionOKCode is the HTTP code returned for type DeleteSessionOK
const DeleteSessionOKCode int = 200
/*
DeleteSessionOK The delete request was successful and the resource has been removed
swagger:response deleteSessionOK
*/
type DeleteSessionOK struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.Empty `json:"body,omitempty"`
}
// NewDeleteSessionOK creates DeleteSessionOK with default headers values
func NewDeleteSessionOK() *DeleteSessionOK {
return &DeleteSessionOK{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session o k response
func (o *DeleteSessionOK) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionOK {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session o k response
func (o *DeleteSessionOK) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session o k response
func (o *DeleteSessionOK) WithPayload(payload *rest_model.Empty) *DeleteSessionOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session o k response
func (o *DeleteSessionOK) SetPayload(payload *rest_model.Empty) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
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
}
}
}
// DeleteSessionBadRequestCode is the HTTP code returned for type DeleteSessionBadRequest
const DeleteSessionBadRequestCode int = 400
/*
DeleteSessionBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response deleteSessionBadRequest
*/
type DeleteSessionBadRequest struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionBadRequest creates DeleteSessionBadRequest with default headers values
func NewDeleteSessionBadRequest() *DeleteSessionBadRequest {
return &DeleteSessionBadRequest{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session bad request response
func (o *DeleteSessionBadRequest) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionBadRequest {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session bad request response
func (o *DeleteSessionBadRequest) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session bad request response
func (o *DeleteSessionBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionBadRequest {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session bad request response
func (o *DeleteSessionBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(400)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DeleteSessionUnauthorizedCode is the HTTP code returned for type DeleteSessionUnauthorized
const DeleteSessionUnauthorizedCode int = 401
/*
DeleteSessionUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response deleteSessionUnauthorized
*/
type DeleteSessionUnauthorized struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionUnauthorized creates DeleteSessionUnauthorized with default headers values
func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized {
return &DeleteSessionUnauthorized{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session unauthorized response
func (o *DeleteSessionUnauthorized) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionUnauthorized {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session unauthorized response
func (o *DeleteSessionUnauthorized) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session unauthorized response
func (o *DeleteSessionUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionUnauthorized {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session unauthorized response
func (o *DeleteSessionUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
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
}
}
}
// DeleteSessionNotFoundCode is the HTTP code returned for type DeleteSessionNotFound
const DeleteSessionNotFoundCode int = 404
/*
DeleteSessionNotFound The requested resource does not exist
swagger:response deleteSessionNotFound
*/
type DeleteSessionNotFound struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionNotFound creates DeleteSessionNotFound with default headers values
func NewDeleteSessionNotFound() *DeleteSessionNotFound {
return &DeleteSessionNotFound{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session not found response
func (o *DeleteSessionNotFound) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionNotFound {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session not found response
func (o *DeleteSessionNotFound) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session not found response
func (o *DeleteSessionNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionNotFound {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session not found response
func (o *DeleteSessionNotFound) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
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
}
}
}
// DeleteSessionConflictCode is the HTTP code returned for type DeleteSessionConflict
const DeleteSessionConflictCode int = 409
/*
DeleteSessionConflict The resource requested to be removed/altered cannot be as it is referenced by another object.
swagger:response deleteSessionConflict
*/
type DeleteSessionConflict struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionConflict creates DeleteSessionConflict with default headers values
func NewDeleteSessionConflict() *DeleteSessionConflict {
return &DeleteSessionConflict{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session conflict response
func (o *DeleteSessionConflict) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionConflict {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session conflict response
func (o *DeleteSessionConflict) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session conflict response
func (o *DeleteSessionConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionConflict {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session conflict response
func (o *DeleteSessionConflict) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(409)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
// DeleteSessionTooManyRequestsCode is the HTTP code returned for type DeleteSessionTooManyRequests
const DeleteSessionTooManyRequestsCode int = 429
/*
DeleteSessionTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response deleteSessionTooManyRequests
*/
type DeleteSessionTooManyRequests struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionTooManyRequests creates DeleteSessionTooManyRequests with default headers values
func NewDeleteSessionTooManyRequests() *DeleteSessionTooManyRequests {
return &DeleteSessionTooManyRequests{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session too many requests response
func (o *DeleteSessionTooManyRequests) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionTooManyRequests {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session too many requests response
func (o *DeleteSessionTooManyRequests) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session too many requests response
func (o *DeleteSessionTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionTooManyRequests {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session too many requests response
func (o *DeleteSessionTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
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
}
}
}
// DeleteSessionServiceUnavailableCode is the HTTP code returned for type DeleteSessionServiceUnavailable
const DeleteSessionServiceUnavailableCode int = 503
/*
DeleteSessionServiceUnavailable The request could not be completed due to the server being busy or in a temporarily bad state
swagger:response deleteSessionServiceUnavailable
*/
type DeleteSessionServiceUnavailable struct {
/*Denotes different type of security token related information
*/
WWWAuthenticate []string `json:"WWW-Authenticate"`
/*
In: Body
*/
Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}
// NewDeleteSessionServiceUnavailable creates DeleteSessionServiceUnavailable with default headers values
func NewDeleteSessionServiceUnavailable() *DeleteSessionServiceUnavailable {
return &DeleteSessionServiceUnavailable{}
}
// WithWWWAuthenticate adds the wWWAuthenticate to the delete session service unavailable response
func (o *DeleteSessionServiceUnavailable) WithWWWAuthenticate(wWWAuthenticate []string) *DeleteSessionServiceUnavailable {
o.WWWAuthenticate = wWWAuthenticate
return o
}
// SetWWWAuthenticate sets the wWWAuthenticate to the delete session service unavailable response
func (o *DeleteSessionServiceUnavailable) SetWWWAuthenticate(wWWAuthenticate []string) {
o.WWWAuthenticate = wWWAuthenticate
}
// WithPayload adds the payload to the delete session service unavailable response
func (o *DeleteSessionServiceUnavailable) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionServiceUnavailable {
o.Payload = payload
return o
}
// SetPayload sets the payload to the delete session service unavailable response
func (o *DeleteSessionServiceUnavailable) SetPayload(payload *rest_model.APIErrorEnvelope) {
o.Payload = payload
}
// WriteResponse to the client
func (o *DeleteSessionServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
// response header WWW-Authenticate
var wWWAuthenticateIR []string
for _, wWWAuthenticateI := range o.WWWAuthenticate {
wWWAuthenticateIS := wWWAuthenticateI
if wWWAuthenticateIS != "" {
wWWAuthenticateIR = append(wWWAuthenticateIR, wWWAuthenticateIS)
}
}
wWWAuthenticate := swag.JoinByFormat(wWWAuthenticateIR, "")
if len(wWWAuthenticate) > 0 {
hv := wWWAuthenticate[0]
if hv != "" {
rw.Header().Set("WWW-Authenticate", hv)
}
}
rw.WriteHeader(503)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}