Documentation
¶
Index ¶
- type CreateProject
- type CreateProjectCreated
- func (o *CreateProjectCreated) SetPayload(payload *models.Project)
- func (o *CreateProjectCreated) SetXErrorCode(xErrorCode string)
- func (o *CreateProjectCreated) WithPayload(payload *models.Project) *CreateProjectCreated
- func (o *CreateProjectCreated) WithXErrorCode(xErrorCode string) *CreateProjectCreated
- func (o *CreateProjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateProjectHandler
- type CreateProjectHandlerFunc
- type CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *CreateProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *CreateProjectInternalServerError) WithPayload(payload *models.Error) *CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) WithXErrorCode(xErrorCode string) *CreateProjectInternalServerError
- func (o *CreateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateProjectParams
- type ListProjects
- type ListProjectsHandler
- type ListProjectsHandlerFunc
- type ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) SetPayload(payload *models.Error)
- func (o *ListProjectsInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *ListProjectsInternalServerError) WithPayload(payload *models.Error) *ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) WithXErrorCode(xErrorCode string) *ListProjectsInternalServerError
- func (o *ListProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListProjectsOK
- type ListProjectsParams
- type ReadProject
- type ReadProjectHandler
- type ReadProjectHandlerFunc
- type ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *ReadProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectInternalServerError) WithPayload(payload *models.Error) *ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) WithXErrorCode(xErrorCode string) *ReadProjectInternalServerError
- func (o *ReadProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectNotFound
- func (o *ReadProjectNotFound) SetPayload(payload *models.Project)
- func (o *ReadProjectNotFound) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectNotFound) WithPayload(payload *models.Project) *ReadProjectNotFound
- func (o *ReadProjectNotFound) WithXErrorCode(xErrorCode string) *ReadProjectNotFound
- func (o *ReadProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectOK
- func (o *ReadProjectOK) SetPayload(payload *models.Project)
- func (o *ReadProjectOK) SetXErrorCode(xErrorCode string)
- func (o *ReadProjectOK) WithPayload(payload *models.Project) *ReadProjectOK
- func (o *ReadProjectOK) WithXErrorCode(xErrorCode string) *ReadProjectOK
- func (o *ReadProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadProjectParams
- type UpdateProject
- type UpdateProjectHandler
- type UpdateProjectHandlerFunc
- type UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) SetPayload(payload *models.Error)
- func (o *UpdateProjectInternalServerError) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectInternalServerError) WithPayload(payload *models.Error) *UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) WithXErrorCode(xErrorCode string) *UpdateProjectInternalServerError
- func (o *UpdateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectNotFound
- func (o *UpdateProjectNotFound) SetPayload(payload *models.Project)
- func (o *UpdateProjectNotFound) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectNotFound) WithPayload(payload *models.Project) *UpdateProjectNotFound
- func (o *UpdateProjectNotFound) WithXErrorCode(xErrorCode string) *UpdateProjectNotFound
- func (o *UpdateProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectOK
- func (o *UpdateProjectOK) SetPayload(payload *models.Project)
- func (o *UpdateProjectOK) SetXErrorCode(xErrorCode string)
- func (o *UpdateProjectOK) WithPayload(payload *models.Project) *UpdateProjectOK
- func (o *UpdateProjectOK) WithXErrorCode(xErrorCode string) *UpdateProjectOK
- func (o *UpdateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateProjectParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProject ¶
type CreateProject struct {
Context *middleware.Context
Handler CreateProjectHandler
}
CreateProject swagger:route POST /projects project createProject
Create new projects
func NewCreateProject ¶
func NewCreateProject(ctx *middleware.Context, handler CreateProjectHandler) *CreateProject
NewCreateProject creates a new http.Handler for the create project operation
func (*CreateProject) ServeHTTP ¶
func (o *CreateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateProjectCreated ¶
type CreateProjectCreated struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Project `json:"body,omitempty"`
}
CreateProjectCreated Project response
swagger:response createProjectCreated
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates CreateProjectCreated with default headers values
func (*CreateProjectCreated) SetPayload ¶
func (o *CreateProjectCreated) SetPayload(payload *models.Project)
SetPayload sets the payload to the create project created response
func (*CreateProjectCreated) SetXErrorCode ¶
func (o *CreateProjectCreated) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the create project created response
func (*CreateProjectCreated) WithPayload ¶
func (o *CreateProjectCreated) WithPayload(payload *models.Project) *CreateProjectCreated
WithPayload adds the payload to the create project created response
func (*CreateProjectCreated) WithXErrorCode ¶
func (o *CreateProjectCreated) WithXErrorCode(xErrorCode string) *CreateProjectCreated
WithXErrorCode adds the xErrorCode to the create project created response
func (*CreateProjectCreated) WriteResponse ¶
func (o *CreateProjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectHandler ¶
type CreateProjectHandler interface {
Handle(CreateProjectParams) middleware.Responder
}
CreateProjectHandler interface for that can handle valid create project params
type CreateProjectHandlerFunc ¶
type CreateProjectHandlerFunc func(CreateProjectParams) middleware.Responder
CreateProjectHandlerFunc turns a function with the right signature into a create project handler
func (CreateProjectHandlerFunc) Handle ¶
func (fn CreateProjectHandlerFunc) Handle(params CreateProjectParams) middleware.Responder
Handle executing the request and returning a response
type CreateProjectInternalServerError ¶
type CreateProjectInternalServerError struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Error `json:"body,omitempty"`
}
CreateProjectInternalServerError Error response
swagger:response createProjectInternalServerError
func NewCreateProjectInternalServerError ¶
func NewCreateProjectInternalServerError() *CreateProjectInternalServerError
NewCreateProjectInternalServerError creates CreateProjectInternalServerError with default headers values
func (*CreateProjectInternalServerError) SetPayload ¶
func (o *CreateProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create project internal server error response
func (*CreateProjectInternalServerError) SetXErrorCode ¶
func (o *CreateProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the create project internal server error response
func (*CreateProjectInternalServerError) WithPayload ¶
func (o *CreateProjectInternalServerError) WithPayload(payload *models.Error) *CreateProjectInternalServerError
WithPayload adds the payload to the create project internal server error response
func (*CreateProjectInternalServerError) WithXErrorCode ¶
func (o *CreateProjectInternalServerError) WithXErrorCode(xErrorCode string) *CreateProjectInternalServerError
WithXErrorCode adds the xErrorCode to the create project internal server error response
func (*CreateProjectInternalServerError) WriteResponse ¶
func (o *CreateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectParams ¶
type CreateProjectParams struct {
// HTTP Request Object
HTTPRequest *http.Request
/*
In: body
*/
Body *models.Project
}
CreateProjectParams contains all the bound params for the create project operation typically these are obtained from a http.Request
swagger:parameters createProject
func NewCreateProjectParams ¶
func NewCreateProjectParams() CreateProjectParams
NewCreateProjectParams creates a new CreateProjectParams object with the default values initialized.
func (*CreateProjectParams) BindRequest ¶
func (o *CreateProjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type ListProjects ¶
type ListProjects struct {
Context *middleware.Context
Handler ListProjectsHandler
}
ListProjects swagger:route GET /projects project listProjects
List the projects ¶
Get all projects list.
func NewListProjects ¶
func NewListProjects(ctx *middleware.Context, handler ListProjectsHandler) *ListProjects
NewListProjects creates a new http.Handler for the list projects operation
func (*ListProjects) ServeHTTP ¶
func (o *ListProjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListProjectsHandler ¶
type ListProjectsHandler interface {
Handle(ListProjectsParams) middleware.Responder
}
ListProjectsHandler interface for that can handle valid list projects params
type ListProjectsHandlerFunc ¶
type ListProjectsHandlerFunc func(ListProjectsParams) middleware.Responder
ListProjectsHandlerFunc turns a function with the right signature into a list projects handler
func (ListProjectsHandlerFunc) Handle ¶
func (fn ListProjectsHandlerFunc) Handle(params ListProjectsParams) middleware.Responder
Handle executing the request and returning a response
type ListProjectsInternalServerError ¶
type ListProjectsInternalServerError struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Error `json:"body,omitempty"`
}
ListProjectsInternalServerError Error response
swagger:response listProjectsInternalServerError
func NewListProjectsInternalServerError ¶
func NewListProjectsInternalServerError() *ListProjectsInternalServerError
NewListProjectsInternalServerError creates ListProjectsInternalServerError with default headers values
func (*ListProjectsInternalServerError) SetPayload ¶
func (o *ListProjectsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list projects internal server error response
func (*ListProjectsInternalServerError) SetXErrorCode ¶
func (o *ListProjectsInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the list projects internal server error response
func (*ListProjectsInternalServerError) WithPayload ¶
func (o *ListProjectsInternalServerError) WithPayload(payload *models.Error) *ListProjectsInternalServerError
WithPayload adds the payload to the list projects internal server error response
func (*ListProjectsInternalServerError) WithXErrorCode ¶
func (o *ListProjectsInternalServerError) WithXErrorCode(xErrorCode string) *ListProjectsInternalServerError
WithXErrorCode adds the xErrorCode to the list projects internal server error response
func (*ListProjectsInternalServerError) WriteResponse ¶
func (o *ListProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsOK ¶
ListProjectsOK Successful response
swagger:response listProjectsOK
func NewListProjectsOK ¶
func NewListProjectsOK() *ListProjectsOK
NewListProjectsOK creates ListProjectsOK with default headers values
func (*ListProjectsOK) SetPayload ¶
func (o *ListProjectsOK) SetPayload(payload []*models.Project)
SetPayload sets the payload to the list projects o k response
func (*ListProjectsOK) WithPayload ¶
func (o *ListProjectsOK) WithPayload(payload []*models.Project) *ListProjectsOK
WithPayload adds the payload to the list projects o k response
func (*ListProjectsOK) WriteResponse ¶
func (o *ListProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsParams ¶
ListProjectsParams contains all the bound params for the list projects operation typically these are obtained from a http.Request
swagger:parameters listProjects
func NewListProjectsParams ¶
func NewListProjectsParams() ListProjectsParams
NewListProjectsParams creates a new ListProjectsParams object with the default values initialized.
func (*ListProjectsParams) BindRequest ¶
func (o *ListProjectsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type ReadProject ¶
type ReadProject struct {
Context *middleware.Context
Handler ReadProjectHandler
}
ReadProject swagger:route GET /projects/{id} project readProject
Read the projects ¶
Get all projects list
func NewReadProject ¶
func NewReadProject(ctx *middleware.Context, handler ReadProjectHandler) *ReadProject
NewReadProject creates a new http.Handler for the read project operation
func (*ReadProject) ServeHTTP ¶
func (o *ReadProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReadProjectHandler ¶
type ReadProjectHandler interface {
Handle(ReadProjectParams) middleware.Responder
}
ReadProjectHandler interface for that can handle valid read project params
type ReadProjectHandlerFunc ¶
type ReadProjectHandlerFunc func(ReadProjectParams) middleware.Responder
ReadProjectHandlerFunc turns a function with the right signature into a read project handler
func (ReadProjectHandlerFunc) Handle ¶
func (fn ReadProjectHandlerFunc) Handle(params ReadProjectParams) middleware.Responder
Handle executing the request and returning a response
type ReadProjectInternalServerError ¶
type ReadProjectInternalServerError struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Error `json:"body,omitempty"`
}
ReadProjectInternalServerError Error response
swagger:response readProjectInternalServerError
func NewReadProjectInternalServerError ¶
func NewReadProjectInternalServerError() *ReadProjectInternalServerError
NewReadProjectInternalServerError creates ReadProjectInternalServerError with default headers values
func (*ReadProjectInternalServerError) SetPayload ¶
func (o *ReadProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the read project internal server error response
func (*ReadProjectInternalServerError) SetXErrorCode ¶
func (o *ReadProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project internal server error response
func (*ReadProjectInternalServerError) WithPayload ¶
func (o *ReadProjectInternalServerError) WithPayload(payload *models.Error) *ReadProjectInternalServerError
WithPayload adds the payload to the read project internal server error response
func (*ReadProjectInternalServerError) WithXErrorCode ¶
func (o *ReadProjectInternalServerError) WithXErrorCode(xErrorCode string) *ReadProjectInternalServerError
WithXErrorCode adds the xErrorCode to the read project internal server error response
func (*ReadProjectInternalServerError) WriteResponse ¶
func (o *ReadProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectNotFound ¶
type ReadProjectNotFound struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Project `json:"body,omitempty"`
}
ReadProjectNotFound Project response
swagger:response readProjectNotFound
func NewReadProjectNotFound ¶
func NewReadProjectNotFound() *ReadProjectNotFound
NewReadProjectNotFound creates ReadProjectNotFound with default headers values
func (*ReadProjectNotFound) SetPayload ¶
func (o *ReadProjectNotFound) SetPayload(payload *models.Project)
SetPayload sets the payload to the read project not found response
func (*ReadProjectNotFound) SetXErrorCode ¶
func (o *ReadProjectNotFound) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project not found response
func (*ReadProjectNotFound) WithPayload ¶
func (o *ReadProjectNotFound) WithPayload(payload *models.Project) *ReadProjectNotFound
WithPayload adds the payload to the read project not found response
func (*ReadProjectNotFound) WithXErrorCode ¶
func (o *ReadProjectNotFound) WithXErrorCode(xErrorCode string) *ReadProjectNotFound
WithXErrorCode adds the xErrorCode to the read project not found response
func (*ReadProjectNotFound) WriteResponse ¶
func (o *ReadProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectOK ¶
type ReadProjectOK struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Project `json:"body,omitempty"`
}
ReadProjectOK Project response
swagger:response readProjectOK
func NewReadProjectOK ¶
func NewReadProjectOK() *ReadProjectOK
NewReadProjectOK creates ReadProjectOK with default headers values
func (*ReadProjectOK) SetPayload ¶
func (o *ReadProjectOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the read project o k response
func (*ReadProjectOK) SetXErrorCode ¶
func (o *ReadProjectOK) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the read project o k response
func (*ReadProjectOK) WithPayload ¶
func (o *ReadProjectOK) WithPayload(payload *models.Project) *ReadProjectOK
WithPayload adds the payload to the read project o k response
func (*ReadProjectOK) WithXErrorCode ¶
func (o *ReadProjectOK) WithXErrorCode(xErrorCode string) *ReadProjectOK
WithXErrorCode adds the xErrorCode to the read project o k response
func (*ReadProjectOK) WriteResponse ¶
func (o *ReadProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadProjectParams ¶
type ReadProjectParams struct {
// HTTP Request Object
HTTPRequest *http.Request
/*
Required: true
In: path
*/
ID uint64
}
ReadProjectParams contains all the bound params for the read project operation typically these are obtained from a http.Request
swagger:parameters readProject
func NewReadProjectParams ¶
func NewReadProjectParams() ReadProjectParams
NewReadProjectParams creates a new ReadProjectParams object with the default values initialized.
func (*ReadProjectParams) BindRequest ¶
func (o *ReadProjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type UpdateProject ¶
type UpdateProject struct {
Context *middleware.Context
Handler UpdateProjectHandler
}
UpdateProject swagger:route PUT /projects/{id} project updateProject
UpdateProject update project API
func NewUpdateProject ¶
func NewUpdateProject(ctx *middleware.Context, handler UpdateProjectHandler) *UpdateProject
NewUpdateProject creates a new http.Handler for the update project operation
func (*UpdateProject) ServeHTTP ¶
func (o *UpdateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateProjectHandler ¶
type UpdateProjectHandler interface {
Handle(UpdateProjectParams) middleware.Responder
}
UpdateProjectHandler interface for that can handle valid update project params
type UpdateProjectHandlerFunc ¶
type UpdateProjectHandlerFunc func(UpdateProjectParams) middleware.Responder
UpdateProjectHandlerFunc turns a function with the right signature into a update project handler
func (UpdateProjectHandlerFunc) Handle ¶
func (fn UpdateProjectHandlerFunc) Handle(params UpdateProjectParams) middleware.Responder
Handle executing the request and returning a response
type UpdateProjectInternalServerError ¶
type UpdateProjectInternalServerError struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Error `json:"body,omitempty"`
}
UpdateProjectInternalServerError Error response
swagger:response updateProjectInternalServerError
func NewUpdateProjectInternalServerError ¶
func NewUpdateProjectInternalServerError() *UpdateProjectInternalServerError
NewUpdateProjectInternalServerError creates UpdateProjectInternalServerError with default headers values
func (*UpdateProjectInternalServerError) SetPayload ¶
func (o *UpdateProjectInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update project internal server error response
func (*UpdateProjectInternalServerError) SetXErrorCode ¶
func (o *UpdateProjectInternalServerError) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project internal server error response
func (*UpdateProjectInternalServerError) WithPayload ¶
func (o *UpdateProjectInternalServerError) WithPayload(payload *models.Error) *UpdateProjectInternalServerError
WithPayload adds the payload to the update project internal server error response
func (*UpdateProjectInternalServerError) WithXErrorCode ¶
func (o *UpdateProjectInternalServerError) WithXErrorCode(xErrorCode string) *UpdateProjectInternalServerError
WithXErrorCode adds the xErrorCode to the update project internal server error response
func (*UpdateProjectInternalServerError) WriteResponse ¶
func (o *UpdateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectNotFound ¶
type UpdateProjectNotFound struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Project `json:"body,omitempty"`
}
UpdateProjectNotFound Project response
swagger:response updateProjectNotFound
func NewUpdateProjectNotFound ¶
func NewUpdateProjectNotFound() *UpdateProjectNotFound
NewUpdateProjectNotFound creates UpdateProjectNotFound with default headers values
func (*UpdateProjectNotFound) SetPayload ¶
func (o *UpdateProjectNotFound) SetPayload(payload *models.Project)
SetPayload sets the payload to the update project not found response
func (*UpdateProjectNotFound) SetXErrorCode ¶
func (o *UpdateProjectNotFound) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project not found response
func (*UpdateProjectNotFound) WithPayload ¶
func (o *UpdateProjectNotFound) WithPayload(payload *models.Project) *UpdateProjectNotFound
WithPayload adds the payload to the update project not found response
func (*UpdateProjectNotFound) WithXErrorCode ¶
func (o *UpdateProjectNotFound) WithXErrorCode(xErrorCode string) *UpdateProjectNotFound
WithXErrorCode adds the xErrorCode to the update project not found response
func (*UpdateProjectNotFound) WriteResponse ¶
func (o *UpdateProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectOK ¶
type UpdateProjectOK struct {
/*
Required: true
*/
XErrorCode string `json:"X-Error-Code"`
// In: body
Payload *models.Project `json:"body,omitempty"`
}
UpdateProjectOK Project response
swagger:response updateProjectOK
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates UpdateProjectOK with default headers values
func (*UpdateProjectOK) SetPayload ¶
func (o *UpdateProjectOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the update project o k response
func (*UpdateProjectOK) SetXErrorCode ¶
func (o *UpdateProjectOK) SetXErrorCode(xErrorCode string)
SetXErrorCode sets the xErrorCode to the update project o k response
func (*UpdateProjectOK) WithPayload ¶
func (o *UpdateProjectOK) WithPayload(payload *models.Project) *UpdateProjectOK
WithPayload adds the payload to the update project o k response
func (*UpdateProjectOK) WithXErrorCode ¶
func (o *UpdateProjectOK) WithXErrorCode(xErrorCode string) *UpdateProjectOK
WithXErrorCode adds the xErrorCode to the update project o k response
func (*UpdateProjectOK) WriteResponse ¶
func (o *UpdateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectParams ¶
type UpdateProjectParams struct {
// HTTP Request Object
HTTPRequest *http.Request
/*
In: body
*/
Body *models.Project
/*
Required: true
In: path
*/
ID uint64
}
UpdateProjectParams contains all the bound params for the update project operation typically these are obtained from a http.Request
swagger:parameters updateProject
func NewUpdateProjectParams ¶
func NewUpdateProjectParams() UpdateProjectParams
NewUpdateProjectParams creates a new UpdateProjectParams object with the default values initialized.
func (*UpdateProjectParams) BindRequest ¶
func (o *UpdateProjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls