zrok/rest_server_zrok/operations/account/reset_token_responses.go
2024-01-25 09:55:45 -06:00

108 lines
2.6 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package account
// 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"
)
// ResetTokenOKCode is the HTTP code returned for type ResetTokenOK
const ResetTokenOKCode int = 200
/*
ResetTokenOK token reset
swagger:response resetTokenOK
*/
type ResetTokenOK struct {
/*
In: Body
*/
Payload *ResetTokenOKBody `json:"body,omitempty"`
}
// NewResetTokenOK creates ResetTokenOK with default headers values
func NewResetTokenOK() *ResetTokenOK {
return &ResetTokenOK{}
}
// WithPayload adds the payload to the reset token o k response
func (o *ResetTokenOK) WithPayload(payload *ResetTokenOKBody) *ResetTokenOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the reset token o k response
func (o *ResetTokenOK) SetPayload(payload *ResetTokenOKBody) {
o.Payload = payload
}
// WriteResponse to the client
func (o *ResetTokenOK) 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
}
}
}
// ResetTokenNotFoundCode is the HTTP code returned for type ResetTokenNotFound
const ResetTokenNotFoundCode int = 404
/*
ResetTokenNotFound account not found
swagger:response resetTokenNotFound
*/
type ResetTokenNotFound struct {
}
// NewResetTokenNotFound creates ResetTokenNotFound with default headers values
func NewResetTokenNotFound() *ResetTokenNotFound {
return &ResetTokenNotFound{}
}
// WriteResponse to the client
func (o *ResetTokenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(404)
}
// ResetTokenInternalServerErrorCode is the HTTP code returned for type ResetTokenInternalServerError
const ResetTokenInternalServerErrorCode int = 500
/*
ResetTokenInternalServerError internal server error
swagger:response resetTokenInternalServerError
*/
type ResetTokenInternalServerError struct {
}
// NewResetTokenInternalServerError creates ResetTokenInternalServerError with default headers values
func NewResetTokenInternalServerError() *ResetTokenInternalServerError {
return &ResetTokenInternalServerError{}
}
// WriteResponse to the client
func (o *ResetTokenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(500)
}