mirror of
https://github.com/openziti/zrok.git
synced 2025-01-21 13:28:57 +01:00
59 lines
1.5 KiB
Go
59 lines
1.5 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package identity
|
|
|
|
// 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-test-kitchen/zrok/rest_model"
|
|
)
|
|
|
|
// CreateAccountCreatedCode is the HTTP code returned for type CreateAccountCreated
|
|
const CreateAccountCreatedCode int = 201
|
|
|
|
/*CreateAccountCreated account created
|
|
|
|
swagger:response createAccountCreated
|
|
*/
|
|
type CreateAccountCreated struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *rest_model.AccountResponse `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewCreateAccountCreated creates CreateAccountCreated with default headers values
|
|
func NewCreateAccountCreated() *CreateAccountCreated {
|
|
|
|
return &CreateAccountCreated{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the create account created response
|
|
func (o *CreateAccountCreated) WithPayload(payload *rest_model.AccountResponse) *CreateAccountCreated {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the create account created response
|
|
func (o *CreateAccountCreated) SetPayload(payload *rest_model.AccountResponse) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *CreateAccountCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.WriteHeader(201)
|
|
if o.Payload != nil {
|
|
payload := o.Payload
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
panic(err) // let the recovery middleware deal with this
|
|
}
|
|
}
|
|
}
|