mirror of
https://github.com/openziti/zrok.git
synced 2024-11-23 00:23:48 +01:00
337 lines
9.9 KiB
Go
337 lines
9.9 KiB
Go
// 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 (
|
|
"fmt"
|
|
|
|
"github.com/go-openapi/runtime"
|
|
"github.com/go-openapi/strfmt"
|
|
)
|
|
|
|
// UpdateShareReader is a Reader for the UpdateShare structure.
|
|
type UpdateShareReader struct {
|
|
formats strfmt.Registry
|
|
}
|
|
|
|
// ReadResponse reads a server response into the received o.
|
|
func (o *UpdateShareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
|
switch response.Code() {
|
|
case 200:
|
|
result := NewUpdateShareOK()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return result, nil
|
|
case 400:
|
|
result := NewUpdateShareBadRequest()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 401:
|
|
result := NewUpdateShareUnauthorized()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 404:
|
|
result := NewUpdateShareNotFound()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
case 500:
|
|
result := NewUpdateShareInternalServerError()
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
return nil, err
|
|
}
|
|
return nil, result
|
|
default:
|
|
return nil, runtime.NewAPIError("[PATCH /share] updateShare", response, response.Code())
|
|
}
|
|
}
|
|
|
|
// NewUpdateShareOK creates a UpdateShareOK with default headers values
|
|
func NewUpdateShareOK() *UpdateShareOK {
|
|
return &UpdateShareOK{}
|
|
}
|
|
|
|
/*
|
|
UpdateShareOK describes a response with status code 200, with default header values.
|
|
|
|
share updated
|
|
*/
|
|
type UpdateShareOK struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this update share o k response has a 2xx status code
|
|
func (o *UpdateShareOK) IsSuccess() bool {
|
|
return true
|
|
}
|
|
|
|
// IsRedirect returns true when this update share o k response has a 3xx status code
|
|
func (o *UpdateShareOK) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this update share o k response has a 4xx status code
|
|
func (o *UpdateShareOK) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this update share o k response has a 5xx status code
|
|
func (o *UpdateShareOK) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this update share o k response a status code equal to that given
|
|
func (o *UpdateShareOK) IsCode(code int) bool {
|
|
return code == 200
|
|
}
|
|
|
|
// Code gets the status code for the update share o k response
|
|
func (o *UpdateShareOK) Code() int {
|
|
return 200
|
|
}
|
|
|
|
func (o *UpdateShareOK) Error() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareOK ", 200)
|
|
}
|
|
|
|
func (o *UpdateShareOK) String() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareOK ", 200)
|
|
}
|
|
|
|
func (o *UpdateShareOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewUpdateShareBadRequest creates a UpdateShareBadRequest with default headers values
|
|
func NewUpdateShareBadRequest() *UpdateShareBadRequest {
|
|
return &UpdateShareBadRequest{}
|
|
}
|
|
|
|
/*
|
|
UpdateShareBadRequest describes a response with status code 400, with default header values.
|
|
|
|
bad request
|
|
*/
|
|
type UpdateShareBadRequest struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this update share bad request response has a 2xx status code
|
|
func (o *UpdateShareBadRequest) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this update share bad request response has a 3xx status code
|
|
func (o *UpdateShareBadRequest) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this update share bad request response has a 4xx status code
|
|
func (o *UpdateShareBadRequest) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this update share bad request response has a 5xx status code
|
|
func (o *UpdateShareBadRequest) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this update share bad request response a status code equal to that given
|
|
func (o *UpdateShareBadRequest) IsCode(code int) bool {
|
|
return code == 400
|
|
}
|
|
|
|
// Code gets the status code for the update share bad request response
|
|
func (o *UpdateShareBadRequest) Code() int {
|
|
return 400
|
|
}
|
|
|
|
func (o *UpdateShareBadRequest) Error() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareBadRequest ", 400)
|
|
}
|
|
|
|
func (o *UpdateShareBadRequest) String() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareBadRequest ", 400)
|
|
}
|
|
|
|
func (o *UpdateShareBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewUpdateShareUnauthorized creates a UpdateShareUnauthorized with default headers values
|
|
func NewUpdateShareUnauthorized() *UpdateShareUnauthorized {
|
|
return &UpdateShareUnauthorized{}
|
|
}
|
|
|
|
/*
|
|
UpdateShareUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
unauthorized
|
|
*/
|
|
type UpdateShareUnauthorized struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this update share unauthorized response has a 2xx status code
|
|
func (o *UpdateShareUnauthorized) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this update share unauthorized response has a 3xx status code
|
|
func (o *UpdateShareUnauthorized) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this update share unauthorized response has a 4xx status code
|
|
func (o *UpdateShareUnauthorized) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this update share unauthorized response has a 5xx status code
|
|
func (o *UpdateShareUnauthorized) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this update share unauthorized response a status code equal to that given
|
|
func (o *UpdateShareUnauthorized) IsCode(code int) bool {
|
|
return code == 401
|
|
}
|
|
|
|
// Code gets the status code for the update share unauthorized response
|
|
func (o *UpdateShareUnauthorized) Code() int {
|
|
return 401
|
|
}
|
|
|
|
func (o *UpdateShareUnauthorized) Error() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareUnauthorized ", 401)
|
|
}
|
|
|
|
func (o *UpdateShareUnauthorized) String() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareUnauthorized ", 401)
|
|
}
|
|
|
|
func (o *UpdateShareUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewUpdateShareNotFound creates a UpdateShareNotFound with default headers values
|
|
func NewUpdateShareNotFound() *UpdateShareNotFound {
|
|
return &UpdateShareNotFound{}
|
|
}
|
|
|
|
/*
|
|
UpdateShareNotFound describes a response with status code 404, with default header values.
|
|
|
|
not found
|
|
*/
|
|
type UpdateShareNotFound struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this update share not found response has a 2xx status code
|
|
func (o *UpdateShareNotFound) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this update share not found response has a 3xx status code
|
|
func (o *UpdateShareNotFound) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this update share not found response has a 4xx status code
|
|
func (o *UpdateShareNotFound) IsClientError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsServerError returns true when this update share not found response has a 5xx status code
|
|
func (o *UpdateShareNotFound) IsServerError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsCode returns true when this update share not found response a status code equal to that given
|
|
func (o *UpdateShareNotFound) IsCode(code int) bool {
|
|
return code == 404
|
|
}
|
|
|
|
// Code gets the status code for the update share not found response
|
|
func (o *UpdateShareNotFound) Code() int {
|
|
return 404
|
|
}
|
|
|
|
func (o *UpdateShareNotFound) Error() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareNotFound ", 404)
|
|
}
|
|
|
|
func (o *UpdateShareNotFound) String() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareNotFound ", 404)
|
|
}
|
|
|
|
func (o *UpdateShareNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
// NewUpdateShareInternalServerError creates a UpdateShareInternalServerError with default headers values
|
|
func NewUpdateShareInternalServerError() *UpdateShareInternalServerError {
|
|
return &UpdateShareInternalServerError{}
|
|
}
|
|
|
|
/*
|
|
UpdateShareInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
internal server error
|
|
*/
|
|
type UpdateShareInternalServerError struct {
|
|
}
|
|
|
|
// IsSuccess returns true when this update share internal server error response has a 2xx status code
|
|
func (o *UpdateShareInternalServerError) IsSuccess() bool {
|
|
return false
|
|
}
|
|
|
|
// IsRedirect returns true when this update share internal server error response has a 3xx status code
|
|
func (o *UpdateShareInternalServerError) IsRedirect() bool {
|
|
return false
|
|
}
|
|
|
|
// IsClientError returns true when this update share internal server error response has a 4xx status code
|
|
func (o *UpdateShareInternalServerError) IsClientError() bool {
|
|
return false
|
|
}
|
|
|
|
// IsServerError returns true when this update share internal server error response has a 5xx status code
|
|
func (o *UpdateShareInternalServerError) IsServerError() bool {
|
|
return true
|
|
}
|
|
|
|
// IsCode returns true when this update share internal server error response a status code equal to that given
|
|
func (o *UpdateShareInternalServerError) IsCode(code int) bool {
|
|
return code == 500
|
|
}
|
|
|
|
// Code gets the status code for the update share internal server error response
|
|
func (o *UpdateShareInternalServerError) Code() int {
|
|
return 500
|
|
}
|
|
|
|
func (o *UpdateShareInternalServerError) Error() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareInternalServerError ", 500)
|
|
}
|
|
|
|
func (o *UpdateShareInternalServerError) String() string {
|
|
return fmt.Sprintf("[PATCH /share][%d] updateShareInternalServerError ", 500)
|
|
}
|
|
|
|
func (o *UpdateShareInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
}
|