mirror of
https://github.com/openziti/zrok.git
synced 2024-12-01 04:23:59 +01:00
290 lines
9.2 KiB
Go
290 lines
9.2 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 (
|
|
"fmt"
|
|
"io"
|
|
|
|
"github.com/go-openapi/runtime"
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
"github.com/openziti/zrok/rest_model_zrok"
|
|
)
|
|
|
|
// GetFrontendDetailReader is a Reader for the GetFrontendDetail structure.
|
|
type GetFrontendDetailReader struct {
|
|
formats strfmt.Registry
|
|
}
|
|
|
|
// ReadResponse reads a server response into the received o.
|
|
func (o *GetFrontendDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
|
switch response.Code() {
|
|
case 200:
|
|
result := NewGetFrontendDetailOK()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return result, nil
|
|
case 401:
|
|
result := NewGetFrontendDetailUnauthorized()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 404:
|
|
result := NewGetFrontendDetailNotFound()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 500:
|
|
result := NewGetFrontendDetailInternalServerError()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
default:
|
|
return nil, runtime.NewAPIError("[GET /detail/frontend/{feId}] getFrontendDetail", response, response.Code())
|
|
}
|
|
}
|
|
|
|
// NewGetFrontendDetailOK creates a GetFrontendDetailOK with default headers values
|
|
func NewGetFrontendDetailOK() *GetFrontendDetailOK {
|
|
return &GetFrontendDetailOK{}
|
|
}
|
|
|
|
/*
|
|
GetFrontendDetailOK describes a response with status code 200, with default header values.
|
|
|
|
ok
|
|
*/
|
|
type GetFrontendDetailOK struct {
|
|
Payload *rest_model_zrok.Frontend
|
|
}
|
|
|
|
// IsSuccess returns true when this get frontend detail o k response has a 2xx status code
|
|
func (o *GetFrontendDetailOK) IsSuccess() bool {
|
|
return true
|
|
}
|
|
|
|
// IsRedirect returns true when this get frontend detail o k response has a 3xx status code
|
|
func (o *GetFrontendDetailOK) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get frontend detail o k response has a 4xx status code
|
|
func (o *GetFrontendDetailOK) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this get frontend detail o k response has a 5xx status code
|
|
func (o *GetFrontendDetailOK) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get frontend detail o k response a status code equal to that given
|
|
func (o *GetFrontendDetailOK) IsCode(code int) bool {
|
|
return code == 200
|
|
}
|
|
|
|
// Code gets the status code for the get frontend detail o k response
|
|
func (o *GetFrontendDetailOK) Code() int {
|
|
return 200
|
|
}
|
|
|
|
func (o *GetFrontendDetailOK) Error() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailOK %+v", 200, o.Payload)
|
|
}
|
|
|
|
func (o *GetFrontendDetailOK) String() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailOK %+v", 200, o.Payload)
|
|
}
|
|
|
|
func (o *GetFrontendDetailOK) GetPayload() *rest_model_zrok.Frontend {
|
|
return o.Payload
|
|
}
|
|
|
|
func (o *GetFrontendDetailOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
o.Payload = new(rest_model_zrok.Frontend)
|
|
|
|
// response payload
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetFrontendDetailUnauthorized creates a GetFrontendDetailUnauthorized with default headers values
|
|
func NewGetFrontendDetailUnauthorized() *GetFrontendDetailUnauthorized {
|
|
return &GetFrontendDetailUnauthorized{}
|
|
}
|
|
|
|
/*
|
|
GetFrontendDetailUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
unauthorized
|
|
*/
|
|
type GetFrontendDetailUnauthorized struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this get frontend detail unauthorized response has a 2xx status code
|
|
func (o *GetFrontendDetailUnauthorized) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get frontend detail unauthorized response has a 3xx status code
|
|
func (o *GetFrontendDetailUnauthorized) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get frontend detail unauthorized response has a 4xx status code
|
|
func (o *GetFrontendDetailUnauthorized) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get frontend detail unauthorized response has a 5xx status code
|
|
func (o *GetFrontendDetailUnauthorized) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get frontend detail unauthorized response a status code equal to that given
|
|
func (o *GetFrontendDetailUnauthorized) IsCode(code int) bool {
|
|
return code == 401
|
|
}
|
|
|
|
// Code gets the status code for the get frontend detail unauthorized response
|
|
func (o *GetFrontendDetailUnauthorized) Code() int {
|
|
return 401
|
|
}
|
|
|
|
func (o *GetFrontendDetailUnauthorized) Error() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailUnauthorized ", 401)
|
|
}
|
|
|
|
func (o *GetFrontendDetailUnauthorized) String() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailUnauthorized ", 401)
|
|
}
|
|
|
|
func (o *GetFrontendDetailUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetFrontendDetailNotFound creates a GetFrontendDetailNotFound with default headers values
|
|
func NewGetFrontendDetailNotFound() *GetFrontendDetailNotFound {
|
|
return &GetFrontendDetailNotFound{}
|
|
}
|
|
|
|
/*
|
|
GetFrontendDetailNotFound describes a response with status code 404, with default header values.
|
|
|
|
not found
|
|
*/
|
|
type GetFrontendDetailNotFound struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this get frontend detail not found response has a 2xx status code
|
|
func (o *GetFrontendDetailNotFound) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get frontend detail not found response has a 3xx status code
|
|
func (o *GetFrontendDetailNotFound) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get frontend detail not found response has a 4xx status code
|
|
func (o *GetFrontendDetailNotFound) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this get frontend detail not found response has a 5xx status code
|
|
func (o *GetFrontendDetailNotFound) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this get frontend detail not found response a status code equal to that given
|
|
func (o *GetFrontendDetailNotFound) IsCode(code int) bool {
|
|
return code == 404
|
|
}
|
|
|
|
// Code gets the status code for the get frontend detail not found response
|
|
func (o *GetFrontendDetailNotFound) Code() int {
|
|
return 404
|
|
}
|
|
|
|
func (o *GetFrontendDetailNotFound) Error() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailNotFound ", 404)
|
|
}
|
|
|
|
func (o *GetFrontendDetailNotFound) String() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailNotFound ", 404)
|
|
}
|
|
|
|
func (o *GetFrontendDetailNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewGetFrontendDetailInternalServerError creates a GetFrontendDetailInternalServerError with default headers values
|
|
func NewGetFrontendDetailInternalServerError() *GetFrontendDetailInternalServerError {
|
|
return &GetFrontendDetailInternalServerError{}
|
|
}
|
|
|
|
/*
|
|
GetFrontendDetailInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
internal server error
|
|
*/
|
|
type GetFrontendDetailInternalServerError struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this get frontend detail internal server error response has a 2xx status code
|
|
func (o *GetFrontendDetailInternalServerError) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this get frontend detail internal server error response has a 3xx status code
|
|
func (o *GetFrontendDetailInternalServerError) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this get frontend detail internal server error response has a 4xx status code
|
|
func (o *GetFrontendDetailInternalServerError) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this get frontend detail internal server error response has a 5xx status code
|
|
func (o *GetFrontendDetailInternalServerError) IsServerError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsCode returns true when this get frontend detail internal server error response a status code equal to that given
|
|
func (o *GetFrontendDetailInternalServerError) IsCode(code int) bool {
|
|
return code == 500
|
|
}
|
|
|
|
// Code gets the status code for the get frontend detail internal server error response
|
|
func (o *GetFrontendDetailInternalServerError) Code() int {
|
|
return 500
|
|
}
|
|
|
|
func (o *GetFrontendDetailInternalServerError) Error() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailInternalServerError ", 500)
|
|
}
|
|
|
|
func (o *GetFrontendDetailInternalServerError) String() string {
|
|
return fmt.Sprintf("[GET /detail/frontend/{feId}][%d] getFrontendDetailInternalServerError ", 500)
|
|
}
|
|
|
|
func (o *GetFrontendDetailInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|