zrok/rest_server_zrok/operations/metadata/version_inventory_responses.go

58 lines
1.4 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 (
"net/http"
"github.com/go-openapi/runtime"
)
// VersionInventoryOKCode is the HTTP code returned for type VersionInventoryOK
const VersionInventoryOKCode int = 200
/*
VersionInventoryOK ok
swagger:response versionInventoryOK
*/
type VersionInventoryOK struct {
/*
In: Body
*/
Payload *VersionInventoryOKBody `json:"body,omitempty"`
}
// NewVersionInventoryOK creates VersionInventoryOK with default headers values
func NewVersionInventoryOK() *VersionInventoryOK {
return &VersionInventoryOK{}
}
// WithPayload adds the payload to the version inventory o k response
func (o *VersionInventoryOK) WithPayload(payload *VersionInventoryOKBody) *VersionInventoryOK {
o.Payload = payload
return o
}
// SetPayload sets the payload to the version inventory o k response
func (o *VersionInventoryOK) SetPayload(payload *VersionInventoryOKBody) {
o.Payload = payload
}
// WriteResponse to the client
func (o *VersionInventoryOK) 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
}
}
}