Cyclops 4 HPC is the purpose built stack to support large HPC centers with resource accounting and billing of cluster as well as cloud resources.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.2 KiB

// Code generated by go-swagger; DO NOT EDIT.
package trigger_management
// 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/Cyclops-Labs/cyclops-4-hpc.git/services/customerdb/models"
)
// ExecSampleOKCode is the HTTP code returned for type ExecSampleOK
const ExecSampleOKCode int = 200
/*ExecSampleOK Sample task executed successfully
swagger:response execSampleOK
*/
type ExecSampleOK struct {
}
// NewExecSampleOK creates ExecSampleOK with default headers values
func NewExecSampleOK() *ExecSampleOK {
return &ExecSampleOK{}
}
// WriteResponse to the client
func (o *ExecSampleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(200)
}
// ExecSampleInternalServerErrorCode is the HTTP code returned for type ExecSampleInternalServerError
const ExecSampleInternalServerErrorCode int = 500
/*ExecSampleInternalServerError Something unexpected happend, error raised
swagger:response execSampleInternalServerError
*/
type ExecSampleInternalServerError struct {
/*
In: Body
*/
Payload *models.ErrorResponse `json:"body,omitempty"`
}
// NewExecSampleInternalServerError creates ExecSampleInternalServerError with default headers values
func NewExecSampleInternalServerError() *ExecSampleInternalServerError {
return &ExecSampleInternalServerError{}
}
// WithPayload adds the payload to the exec sample internal server error response
func (o *ExecSampleInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecSampleInternalServerError {
o.Payload = payload
return o
}
// SetPayload sets the payload to the exec sample internal server error response
func (o *ExecSampleInternalServerError) SetPayload(payload *models.ErrorResponse) {
o.Payload = payload
}
// WriteResponse to the client
func (o *ExecSampleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(500)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}