2022-04-13 13:00:04 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
|
|
|
package operations
|
|
|
|
|
|
|
|
// 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/nspcc-dev/neofs-rest-gw/gen/models"
|
|
|
|
)
|
|
|
|
|
|
|
|
// PutContainerEACLOKCode is the HTTP code returned for type PutContainerEACLOK
|
|
|
|
const PutContainerEACLOKCode int = 200
|
|
|
|
|
2022-07-20 15:16:30 +00:00
|
|
|
/*PutContainerEACLOK Successful EACL updating.
|
2022-04-13 13:00:04 +00:00
|
|
|
|
|
|
|
swagger:response putContainerEAclOK
|
|
|
|
*/
|
|
|
|
type PutContainerEACLOK struct {
|
2022-07-07 09:29:51 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
In: Body
|
|
|
|
*/
|
|
|
|
Payload *models.SuccessResponse `json:"body,omitempty"`
|
2022-04-13 13:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewPutContainerEACLOK creates PutContainerEACLOK with default headers values
|
|
|
|
func NewPutContainerEACLOK() *PutContainerEACLOK {
|
|
|
|
|
|
|
|
return &PutContainerEACLOK{}
|
|
|
|
}
|
|
|
|
|
2022-07-07 09:29:51 +00:00
|
|
|
// WithPayload adds the payload to the put container e Acl o k response
|
|
|
|
func (o *PutContainerEACLOK) WithPayload(payload *models.SuccessResponse) *PutContainerEACLOK {
|
|
|
|
o.Payload = payload
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPayload sets the payload to the put container e Acl o k response
|
|
|
|
func (o *PutContainerEACLOK) SetPayload(payload *models.SuccessResponse) {
|
|
|
|
o.Payload = payload
|
|
|
|
}
|
|
|
|
|
2022-04-13 13:00:04 +00:00
|
|
|
// WriteResponse to the client
|
|
|
|
func (o *PutContainerEACLOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
|
|
|
|
rw.WriteHeader(200)
|
2022-07-07 09:29:51 +00:00
|
|
|
if o.Payload != nil {
|
|
|
|
payload := o.Payload
|
|
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
|
|
panic(err) // let the recovery middleware deal with this
|
|
|
|
}
|
|
|
|
}
|
2022-04-13 13:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// PutContainerEACLBadRequestCode is the HTTP code returned for type PutContainerEACLBadRequest
|
|
|
|
const PutContainerEACLBadRequestCode int = 400
|
|
|
|
|
2022-07-20 15:16:30 +00:00
|
|
|
/*PutContainerEACLBadRequest Bad request.
|
2022-04-13 13:00:04 +00:00
|
|
|
|
|
|
|
swagger:response putContainerEAclBadRequest
|
|
|
|
*/
|
|
|
|
type PutContainerEACLBadRequest struct {
|
|
|
|
|
|
|
|
/*
|
|
|
|
In: Body
|
|
|
|
*/
|
2022-07-07 12:59:38 +00:00
|
|
|
Payload *models.ErrorResponse `json:"body,omitempty"`
|
2022-04-13 13:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewPutContainerEACLBadRequest creates PutContainerEACLBadRequest with default headers values
|
|
|
|
func NewPutContainerEACLBadRequest() *PutContainerEACLBadRequest {
|
|
|
|
|
|
|
|
return &PutContainerEACLBadRequest{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithPayload adds the payload to the put container e Acl bad request response
|
2022-07-07 12:59:38 +00:00
|
|
|
func (o *PutContainerEACLBadRequest) WithPayload(payload *models.ErrorResponse) *PutContainerEACLBadRequest {
|
2022-04-13 13:00:04 +00:00
|
|
|
o.Payload = payload
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPayload sets the payload to the put container e Acl bad request response
|
2022-07-07 12:59:38 +00:00
|
|
|
func (o *PutContainerEACLBadRequest) SetPayload(payload *models.ErrorResponse) {
|
2022-04-13 13:00:04 +00:00
|
|
|
o.Payload = payload
|
|
|
|
}
|
|
|
|
|
|
|
|
// WriteResponse to the client
|
|
|
|
func (o *PutContainerEACLBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
|
|
|
|
rw.WriteHeader(400)
|
2022-07-07 12:59:38 +00:00
|
|
|
if o.Payload != nil {
|
|
|
|
payload := o.Payload
|
|
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
|
|
panic(err) // let the recovery middleware deal with this
|
|
|
|
}
|
2022-04-13 13:00:04 +00:00
|
|
|
}
|
|
|
|
}
|