// 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 ( "net/http" "github.com/go-openapi/runtime" "github.com/openziti/zrok/rest_model_zrok" ) // GetAccountDetailOKCode is the HTTP code returned for type GetAccountDetailOK const GetAccountDetailOKCode int = 200 /* GetAccountDetailOK ok swagger:response getAccountDetailOK */ type GetAccountDetailOK struct { /* In: Body */ Payload rest_model_zrok.Environments `json:"body,omitempty"` } // NewGetAccountDetailOK creates GetAccountDetailOK with default headers values func NewGetAccountDetailOK() *GetAccountDetailOK { return &GetAccountDetailOK{} } // WithPayload adds the payload to the get account detail o k response func (o *GetAccountDetailOK) WithPayload(payload rest_model_zrok.Environments) *GetAccountDetailOK { o.Payload = payload return o } // SetPayload sets the payload to the get account detail o k response func (o *GetAccountDetailOK) SetPayload(payload rest_model_zrok.Environments) { o.Payload = payload } // WriteResponse to the client func (o *GetAccountDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(200) payload := o.Payload if payload == nil { // return empty array payload = rest_model_zrok.Environments{} } if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } // GetAccountDetailInternalServerErrorCode is the HTTP code returned for type GetAccountDetailInternalServerError const GetAccountDetailInternalServerErrorCode int = 500 /* GetAccountDetailInternalServerError internal server error swagger:response getAccountDetailInternalServerError */ type GetAccountDetailInternalServerError struct { } // NewGetAccountDetailInternalServerError creates GetAccountDetailInternalServerError with default headers values func NewGetAccountDetailInternalServerError() *GetAccountDetailInternalServerError { return &GetAccountDetailInternalServerError{} } // WriteResponse to the client func (o *GetAccountDetailInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(500) }