Documentation
¶
Index ¶
- Constants
- type GetRestorationByID
- type GetRestorationByIDBadRequest
- type GetRestorationByIDHandler
- type GetRestorationByIDHandlerFunc
- type GetRestorationByIDNotFound
- type GetRestorationByIDOK
- type GetRestorationByIDParams
- type GetRestorationByIDURL
- func (o *GetRestorationByIDURL) Build() (*url.URL, error)
- func (o *GetRestorationByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRestorationByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRestorationByIDURL) SetBasePath(bp string)
- func (o *GetRestorationByIDURL) String() string
- func (o *GetRestorationByIDURL) StringFull(scheme, host string) string
- func (o *GetRestorationByIDURL) WithBasePath(bp string) *GetRestorationByIDURL
- type GetRestorations
- type GetRestorationsForbidden
- type GetRestorationsHandler
- type GetRestorationsHandlerFunc
- type GetRestorationsInternalServerError
- func (o *GetRestorationsInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *GetRestorationsInternalServerError) WithPayload(payload *models.APIResponse) *GetRestorationsInternalServerError
- func (o *GetRestorationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRestorationsMethodNotAllowed
- func (o *GetRestorationsMethodNotAllowed) SetPayload(payload *models.APIResponse)
- func (o *GetRestorationsMethodNotAllowed) WithPayload(payload *models.APIResponse) *GetRestorationsMethodNotAllowed
- func (o *GetRestorationsMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRestorationsNotFound
- type GetRestorationsOK
- type GetRestorationsParams
- type GetRestorationsServiceUnavailable
- func (o *GetRestorationsServiceUnavailable) SetPayload(payload *models.APIResponse)
- func (o *GetRestorationsServiceUnavailable) WithPayload(payload *models.APIResponse) *GetRestorationsServiceUnavailable
- func (o *GetRestorationsServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRestorationsURL
- func (o *GetRestorationsURL) Build() (*url.URL, error)
- func (o *GetRestorationsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRestorationsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRestorationsURL) SetBasePath(bp string)
- func (o *GetRestorationsURL) String() string
- func (o *GetRestorationsURL) StringFull(scheme, host string) string
- func (o *GetRestorationsURL) WithBasePath(bp string) *GetRestorationsURL
- type NewRestoration
- type NewRestorationBadGateway
- type NewRestorationForbidden
- type NewRestorationGatewayTimeout
- type NewRestorationHandler
- type NewRestorationHandlerFunc
- type NewRestorationInternalServerError
- func (o *NewRestorationInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *NewRestorationInternalServerError) WithPayload(payload *models.APIResponse) *NewRestorationInternalServerError
- func (o *NewRestorationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NewRestorationMethodNotAllowed
- func (o *NewRestorationMethodNotAllowed) SetPayload(payload *models.APIResponse)
- func (o *NewRestorationMethodNotAllowed) WithPayload(payload *models.APIResponse) *NewRestorationMethodNotAllowed
- func (o *NewRestorationMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NewRestorationNotFound
- type NewRestorationOK
- type NewRestorationParams
- type NewRestorationServiceUnavailable
- func (o *NewRestorationServiceUnavailable) SetPayload(payload *models.APIResponse)
- func (o *NewRestorationServiceUnavailable) WithPayload(payload *models.APIResponse) *NewRestorationServiceUnavailable
- func (o *NewRestorationServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type NewRestorationURL
- func (o *NewRestorationURL) Build() (*url.URL, error)
- func (o *NewRestorationURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NewRestorationURL) Must(u *url.URL, err error) *url.URL
- func (o *NewRestorationURL) SetBasePath(bp string)
- func (o *NewRestorationURL) String() string
- func (o *NewRestorationURL) StringFull(scheme, host string) string
- func (o *NewRestorationURL) WithBasePath(bp string) *NewRestorationURL
- type UpdateRestoration
- type UpdateRestorationBadGateway
- type UpdateRestorationForbidden
- type UpdateRestorationGatewayTimeout
- func (o *UpdateRestorationGatewayTimeout) SetPayload(payload *models.APIResponse)
- func (o *UpdateRestorationGatewayTimeout) WithPayload(payload *models.APIResponse) *UpdateRestorationGatewayTimeout
- func (o *UpdateRestorationGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRestorationHandler
- type UpdateRestorationHandlerFunc
- type UpdateRestorationInternalServerError
- func (o *UpdateRestorationInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *UpdateRestorationInternalServerError) WithPayload(payload *models.APIResponse) *UpdateRestorationInternalServerError
- func (o *UpdateRestorationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRestorationMethodNotAllowed
- func (o *UpdateRestorationMethodNotAllowed) SetPayload(payload *models.APIResponse)
- func (o *UpdateRestorationMethodNotAllowed) WithPayload(payload *models.APIResponse) *UpdateRestorationMethodNotAllowed
- func (o *UpdateRestorationMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRestorationNotFound
- type UpdateRestorationOK
- type UpdateRestorationParams
- type UpdateRestorationServiceUnavailable
- func (o *UpdateRestorationServiceUnavailable) SetPayload(payload *models.APIResponse)
- func (o *UpdateRestorationServiceUnavailable) WithPayload(payload *models.APIResponse) *UpdateRestorationServiceUnavailable
- func (o *UpdateRestorationServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRestorationURL
- func (o *UpdateRestorationURL) Build() (*url.URL, error)
- func (o *UpdateRestorationURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRestorationURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRestorationURL) SetBasePath(bp string)
- func (o *UpdateRestorationURL) String() string
- func (o *UpdateRestorationURL) StringFull(scheme, host string) string
- func (o *UpdateRestorationURL) WithBasePath(bp string) *UpdateRestorationURL
Constants ¶
const GetRestorationByIDBadRequestCode int = 400
GetRestorationByIDBadRequestCode is the HTTP code returned for type GetRestorationByIDBadRequest
const GetRestorationByIDNotFoundCode int = 404
GetRestorationByIDNotFoundCode is the HTTP code returned for type GetRestorationByIDNotFound
const GetRestorationByIDOKCode int = 200
GetRestorationByIDOKCode is the HTTP code returned for type GetRestorationByIDOK
const GetRestorationsForbiddenCode int = 403
GetRestorationsForbiddenCode is the HTTP code returned for type GetRestorationsForbidden
const GetRestorationsInternalServerErrorCode int = 500
GetRestorationsInternalServerErrorCode is the HTTP code returned for type GetRestorationsInternalServerError
const GetRestorationsMethodNotAllowedCode int = 405
GetRestorationsMethodNotAllowedCode is the HTTP code returned for type GetRestorationsMethodNotAllowed
const GetRestorationsNotFoundCode int = 404
GetRestorationsNotFoundCode is the HTTP code returned for type GetRestorationsNotFound
const GetRestorationsOKCode int = 200
GetRestorationsOKCode is the HTTP code returned for type GetRestorationsOK
GetRestorationsServiceUnavailableCode is the HTTP code returned for type GetRestorationsServiceUnavailable
const NewRestorationBadGatewayCode int = 502
NewRestorationBadGatewayCode is the HTTP code returned for type NewRestorationBadGateway
const NewRestorationForbiddenCode int = 403
NewRestorationForbiddenCode is the HTTP code returned for type NewRestorationForbidden
const NewRestorationGatewayTimeoutCode int = 504
NewRestorationGatewayTimeoutCode is the HTTP code returned for type NewRestorationGatewayTimeout
const NewRestorationInternalServerErrorCode int = 500
NewRestorationInternalServerErrorCode is the HTTP code returned for type NewRestorationInternalServerError
const NewRestorationMethodNotAllowedCode int = 405
NewRestorationMethodNotAllowedCode is the HTTP code returned for type NewRestorationMethodNotAllowed
const NewRestorationNotFoundCode int = 404
NewRestorationNotFoundCode is the HTTP code returned for type NewRestorationNotFound
const NewRestorationOKCode int = 200
NewRestorationOKCode is the HTTP code returned for type NewRestorationOK
NewRestorationServiceUnavailableCode is the HTTP code returned for type NewRestorationServiceUnavailable
const UpdateRestorationBadGatewayCode int = 502
UpdateRestorationBadGatewayCode is the HTTP code returned for type UpdateRestorationBadGateway
const UpdateRestorationForbiddenCode int = 403
UpdateRestorationForbiddenCode is the HTTP code returned for type UpdateRestorationForbidden
const UpdateRestorationGatewayTimeoutCode int = 504
UpdateRestorationGatewayTimeoutCode is the HTTP code returned for type UpdateRestorationGatewayTimeout
const UpdateRestorationInternalServerErrorCode int = 500
UpdateRestorationInternalServerErrorCode is the HTTP code returned for type UpdateRestorationInternalServerError
const UpdateRestorationMethodNotAllowedCode int = 405
UpdateRestorationMethodNotAllowedCode is the HTTP code returned for type UpdateRestorationMethodNotAllowed
const UpdateRestorationNotFoundCode int = 404
UpdateRestorationNotFoundCode is the HTTP code returned for type UpdateRestorationNotFound
const UpdateRestorationOKCode int = 200
UpdateRestorationOKCode is the HTTP code returned for type UpdateRestorationOK
UpdateRestorationServiceUnavailableCode is the HTTP code returned for type UpdateRestorationServiceUnavailable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRestorationByID ¶
type GetRestorationByID struct { Context *middleware.Context Handler GetRestorationByIDHandler }
GetRestorationByID swagger:route GET /restorations/{restorationId} restoration getRestorationById
Find restoration by ID ¶
Query a single restoration
func NewGetRestorationByID ¶
func NewGetRestorationByID(ctx *middleware.Context, handler GetRestorationByIDHandler) *GetRestorationByID
NewGetRestorationByID creates a new http.Handler for the get restoration by Id operation
func (*GetRestorationByID) ServeHTTP ¶
func (o *GetRestorationByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRestorationByIDBadRequest ¶
type GetRestorationByIDBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationByIDBadRequest Invalid ID supplied
swagger:response getRestorationByIdBadRequest
func NewGetRestorationByIDBadRequest ¶
func NewGetRestorationByIDBadRequest() *GetRestorationByIDBadRequest
NewGetRestorationByIDBadRequest creates GetRestorationByIDBadRequest with default headers values
func (*GetRestorationByIDBadRequest) SetPayload ¶
func (o *GetRestorationByIDBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restoration by Id bad request response
func (*GetRestorationByIDBadRequest) WithPayload ¶
func (o *GetRestorationByIDBadRequest) WithPayload(payload *models.APIResponse) *GetRestorationByIDBadRequest
WithPayload adds the payload to the get restoration by Id bad request response
func (*GetRestorationByIDBadRequest) WriteResponse ¶
func (o *GetRestorationByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationByIDHandler ¶
type GetRestorationByIDHandler interface {
Handle(GetRestorationByIDParams) middleware.Responder
}
GetRestorationByIDHandler interface for that can handle valid get restoration by Id params
type GetRestorationByIDHandlerFunc ¶
type GetRestorationByIDHandlerFunc func(GetRestorationByIDParams) middleware.Responder
GetRestorationByIDHandlerFunc turns a function with the right signature into a get restoration by Id handler
func (GetRestorationByIDHandlerFunc) Handle ¶
func (fn GetRestorationByIDHandlerFunc) Handle(params GetRestorationByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetRestorationByIDNotFound ¶
type GetRestorationByIDNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationByIDNotFound Restoration not found
swagger:response getRestorationByIdNotFound
func NewGetRestorationByIDNotFound ¶
func NewGetRestorationByIDNotFound() *GetRestorationByIDNotFound
NewGetRestorationByIDNotFound creates GetRestorationByIDNotFound with default headers values
func (*GetRestorationByIDNotFound) SetPayload ¶
func (o *GetRestorationByIDNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restoration by Id not found response
func (*GetRestorationByIDNotFound) WithPayload ¶
func (o *GetRestorationByIDNotFound) WithPayload(payload *models.APIResponse) *GetRestorationByIDNotFound
WithPayload adds the payload to the get restoration by Id not found response
func (*GetRestorationByIDNotFound) WriteResponse ¶
func (o *GetRestorationByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationByIDOK ¶
type GetRestorationByIDOK struct { /* In: Body */ Payload *models.Restoration `json:"body,omitempty"` }
GetRestorationByIDOK successful operation
swagger:response getRestorationByIdOK
func NewGetRestorationByIDOK ¶
func NewGetRestorationByIDOK() *GetRestorationByIDOK
NewGetRestorationByIDOK creates GetRestorationByIDOK with default headers values
func (*GetRestorationByIDOK) SetPayload ¶
func (o *GetRestorationByIDOK) SetPayload(payload *models.Restoration)
SetPayload sets the payload to the get restoration by Id o k response
func (*GetRestorationByIDOK) WithPayload ¶
func (o *GetRestorationByIDOK) WithPayload(payload *models.Restoration) *GetRestorationByIDOK
WithPayload adds the payload to the get restoration by Id o k response
func (*GetRestorationByIDOK) WriteResponse ¶
func (o *GetRestorationByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationByIDParams ¶
type GetRestorationByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of restoration to return Required: true In: path */ RestorationID int64 }
GetRestorationByIDParams contains all the bound params for the get restoration by Id operation typically these are obtained from a http.Request
swagger:parameters getRestorationById
func NewGetRestorationByIDParams ¶
func NewGetRestorationByIDParams() GetRestorationByIDParams
NewGetRestorationByIDParams creates a new GetRestorationByIDParams object
There are no default values defined in the spec.
func (*GetRestorationByIDParams) BindRequest ¶
func (o *GetRestorationByIDParams) 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.
To ensure default values, the struct must have been initialized with NewGetRestorationByIDParams() beforehand.
type GetRestorationByIDURL ¶
type GetRestorationByIDURL struct { RestorationID int64 // contains filtered or unexported fields }
GetRestorationByIDURL generates an URL for the get restoration by Id operation
func (*GetRestorationByIDURL) Build ¶
func (o *GetRestorationByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRestorationByIDURL) BuildFull ¶
func (o *GetRestorationByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRestorationByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRestorationByIDURL) SetBasePath ¶
func (o *GetRestorationByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRestorationByIDURL) String ¶
func (o *GetRestorationByIDURL) String() string
String returns the string representation of the path with query string
func (*GetRestorationByIDURL) StringFull ¶
func (o *GetRestorationByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRestorationByIDURL) WithBasePath ¶
func (o *GetRestorationByIDURL) WithBasePath(bp string) *GetRestorationByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetRestorations ¶
type GetRestorations struct { Context *middleware.Context Handler GetRestorationsHandler }
GetRestorations swagger:route GET /restorations restoration getRestorations
Query restoration info ¶
Retrieve information and state of all restorations, their backup and snapshots
func NewGetRestorations ¶
func NewGetRestorations(ctx *middleware.Context, handler GetRestorationsHandler) *GetRestorations
NewGetRestorations creates a new http.Handler for the get restorations operation
func (*GetRestorations) ServeHTTP ¶
func (o *GetRestorations) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRestorationsForbidden ¶
type GetRestorationsForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationsForbidden Forbidden from querying restoration info
swagger:response getRestorationsForbidden
func NewGetRestorationsForbidden ¶
func NewGetRestorationsForbidden() *GetRestorationsForbidden
NewGetRestorationsForbidden creates GetRestorationsForbidden with default headers values
func (*GetRestorationsForbidden) SetPayload ¶
func (o *GetRestorationsForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restorations forbidden response
func (*GetRestorationsForbidden) WithPayload ¶
func (o *GetRestorationsForbidden) WithPayload(payload *models.APIResponse) *GetRestorationsForbidden
WithPayload adds the payload to the get restorations forbidden response
func (*GetRestorationsForbidden) WriteResponse ¶
func (o *GetRestorationsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsHandler ¶
type GetRestorationsHandler interface {
Handle(GetRestorationsParams) middleware.Responder
}
GetRestorationsHandler interface for that can handle valid get restorations params
type GetRestorationsHandlerFunc ¶
type GetRestorationsHandlerFunc func(GetRestorationsParams) middleware.Responder
GetRestorationsHandlerFunc turns a function with the right signature into a get restorations handler
func (GetRestorationsHandlerFunc) Handle ¶
func (fn GetRestorationsHandlerFunc) Handle(params GetRestorationsParams) middleware.Responder
Handle executing the request and returning a response
type GetRestorationsInternalServerError ¶
type GetRestorationsInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationsInternalServerError TOC controller error
swagger:response getRestorationsInternalServerError
func NewGetRestorationsInternalServerError ¶
func NewGetRestorationsInternalServerError() *GetRestorationsInternalServerError
NewGetRestorationsInternalServerError creates GetRestorationsInternalServerError with default headers values
func (*GetRestorationsInternalServerError) SetPayload ¶
func (o *GetRestorationsInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restorations internal server error response
func (*GetRestorationsInternalServerError) WithPayload ¶
func (o *GetRestorationsInternalServerError) WithPayload(payload *models.APIResponse) *GetRestorationsInternalServerError
WithPayload adds the payload to the get restorations internal server error response
func (*GetRestorationsInternalServerError) WriteResponse ¶
func (o *GetRestorationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsMethodNotAllowed ¶
type GetRestorationsMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationsMethodNotAllowed Bad request
swagger:response getRestorationsMethodNotAllowed
func NewGetRestorationsMethodNotAllowed ¶
func NewGetRestorationsMethodNotAllowed() *GetRestorationsMethodNotAllowed
NewGetRestorationsMethodNotAllowed creates GetRestorationsMethodNotAllowed with default headers values
func (*GetRestorationsMethodNotAllowed) SetPayload ¶
func (o *GetRestorationsMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restorations method not allowed response
func (*GetRestorationsMethodNotAllowed) WithPayload ¶
func (o *GetRestorationsMethodNotAllowed) WithPayload(payload *models.APIResponse) *GetRestorationsMethodNotAllowed
WithPayload adds the payload to the get restorations method not allowed response
func (*GetRestorationsMethodNotAllowed) WriteResponse ¶
func (o *GetRestorationsMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsNotFound ¶
type GetRestorationsNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRestorationsNotFound Restoration not found
swagger:response getRestorationsNotFound
func NewGetRestorationsNotFound ¶
func NewGetRestorationsNotFound() *GetRestorationsNotFound
NewGetRestorationsNotFound creates GetRestorationsNotFound with default headers values
func (*GetRestorationsNotFound) SetPayload ¶
func (o *GetRestorationsNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restorations not found response
func (*GetRestorationsNotFound) WithPayload ¶
func (o *GetRestorationsNotFound) WithPayload(payload *models.APIResponse) *GetRestorationsNotFound
WithPayload adds the payload to the get restorations not found response
func (*GetRestorationsNotFound) WriteResponse ¶
func (o *GetRestorationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsOK ¶
type GetRestorationsOK struct { /* In: Body */ Payload []*models.Restoration `json:"body,omitempty"` }
GetRestorationsOK Restoration info retrieved
swagger:response getRestorationsOK
func NewGetRestorationsOK ¶
func NewGetRestorationsOK() *GetRestorationsOK
NewGetRestorationsOK creates GetRestorationsOK with default headers values
func (*GetRestorationsOK) SetPayload ¶
func (o *GetRestorationsOK) SetPayload(payload []*models.Restoration)
SetPayload sets the payload to the get restorations o k response
func (*GetRestorationsOK) WithPayload ¶
func (o *GetRestorationsOK) WithPayload(payload []*models.Restoration) *GetRestorationsOK
WithPayload adds the payload to the get restorations o k response
func (*GetRestorationsOK) WriteResponse ¶
func (o *GetRestorationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsParams ¶
GetRestorationsParams contains all the bound params for the get restorations operation typically these are obtained from a http.Request
swagger:parameters getRestorations
func NewGetRestorationsParams ¶
func NewGetRestorationsParams() GetRestorationsParams
NewGetRestorationsParams creates a new GetRestorationsParams object
There are no default values defined in the spec.
func (*GetRestorationsParams) BindRequest ¶
func (o *GetRestorationsParams) 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.
To ensure default values, the struct must have been initialized with NewGetRestorationsParams() beforehand.
type GetRestorationsServiceUnavailable ¶
type GetRestorationsServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
GetRestorationsServiceUnavailable Service unavailable
swagger:response getRestorationsServiceUnavailable
func NewGetRestorationsServiceUnavailable ¶
func NewGetRestorationsServiceUnavailable() *GetRestorationsServiceUnavailable
NewGetRestorationsServiceUnavailable creates GetRestorationsServiceUnavailable with default headers values
func (*GetRestorationsServiceUnavailable) SetPayload ¶
func (o *GetRestorationsServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get restorations service unavailable response
func (*GetRestorationsServiceUnavailable) WithPayload ¶
func (o *GetRestorationsServiceUnavailable) WithPayload(payload *models.APIResponse) *GetRestorationsServiceUnavailable
WithPayload adds the payload to the get restorations service unavailable response
func (*GetRestorationsServiceUnavailable) WriteResponse ¶
func (o *GetRestorationsServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRestorationsURL ¶
type GetRestorationsURL struct {
// contains filtered or unexported fields
}
GetRestorationsURL generates an URL for the get restorations operation
func (*GetRestorationsURL) Build ¶
func (o *GetRestorationsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRestorationsURL) BuildFull ¶
func (o *GetRestorationsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRestorationsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRestorationsURL) SetBasePath ¶
func (o *GetRestorationsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRestorationsURL) String ¶
func (o *GetRestorationsURL) String() string
String returns the string representation of the path with query string
func (*GetRestorationsURL) StringFull ¶
func (o *GetRestorationsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRestorationsURL) WithBasePath ¶
func (o *GetRestorationsURL) WithBasePath(bp string) *GetRestorationsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type NewRestoration ¶
type NewRestoration struct { Context *middleware.Context Handler NewRestorationHandler }
NewRestoration swagger:route POST /restorations restoration newRestoration
Start a backup restoration attempt ¶
Run backup restoration and return immediately without waiting
func NewNewRestoration ¶
func NewNewRestoration(ctx *middleware.Context, handler NewRestorationHandler) *NewRestoration
NewNewRestoration creates a new http.Handler for the new restoration operation
func (*NewRestoration) ServeHTTP ¶
func (o *NewRestoration) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type NewRestorationBadGateway ¶
type NewRestorationBadGateway struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationBadGateway Bad gateway. Stepup backup server error
swagger:response newRestorationBadGateway
func NewNewRestorationBadGateway ¶
func NewNewRestorationBadGateway() *NewRestorationBadGateway
NewNewRestorationBadGateway creates NewRestorationBadGateway with default headers values
func (*NewRestorationBadGateway) SetPayload ¶
func (o *NewRestorationBadGateway) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration bad gateway response
func (*NewRestorationBadGateway) WithPayload ¶
func (o *NewRestorationBadGateway) WithPayload(payload *models.APIResponse) *NewRestorationBadGateway
WithPayload adds the payload to the new restoration bad gateway response
func (*NewRestorationBadGateway) WriteResponse ¶
func (o *NewRestorationBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationForbidden ¶
type NewRestorationForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationForbidden Forbidden from creating duplicate/repeat restoration
swagger:response newRestorationForbidden
func NewNewRestorationForbidden ¶
func NewNewRestorationForbidden() *NewRestorationForbidden
NewNewRestorationForbidden creates NewRestorationForbidden with default headers values
func (*NewRestorationForbidden) SetPayload ¶
func (o *NewRestorationForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration forbidden response
func (*NewRestorationForbidden) WithPayload ¶
func (o *NewRestorationForbidden) WithPayload(payload *models.APIResponse) *NewRestorationForbidden
WithPayload adds the payload to the new restoration forbidden response
func (*NewRestorationForbidden) WriteResponse ¶
func (o *NewRestorationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationGatewayTimeout ¶
type NewRestorationGatewayTimeout struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationGatewayTimeout Gateway timeout. Stepup backup server did not reply.
swagger:response newRestorationGatewayTimeout
func NewNewRestorationGatewayTimeout ¶
func NewNewRestorationGatewayTimeout() *NewRestorationGatewayTimeout
NewNewRestorationGatewayTimeout creates NewRestorationGatewayTimeout with default headers values
func (*NewRestorationGatewayTimeout) SetPayload ¶
func (o *NewRestorationGatewayTimeout) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration gateway timeout response
func (*NewRestorationGatewayTimeout) WithPayload ¶
func (o *NewRestorationGatewayTimeout) WithPayload(payload *models.APIResponse) *NewRestorationGatewayTimeout
WithPayload adds the payload to the new restoration gateway timeout response
func (*NewRestorationGatewayTimeout) WriteResponse ¶
func (o *NewRestorationGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationHandler ¶
type NewRestorationHandler interface {
Handle(NewRestorationParams) middleware.Responder
}
NewRestorationHandler interface for that can handle valid new restoration params
type NewRestorationHandlerFunc ¶
type NewRestorationHandlerFunc func(NewRestorationParams) middleware.Responder
NewRestorationHandlerFunc turns a function with the right signature into a new restoration handler
func (NewRestorationHandlerFunc) Handle ¶
func (fn NewRestorationHandlerFunc) Handle(params NewRestorationParams) middleware.Responder
Handle executing the request and returning a response
type NewRestorationInternalServerError ¶
type NewRestorationInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationInternalServerError Stepup TOC controller error
swagger:response newRestorationInternalServerError
func NewNewRestorationInternalServerError ¶
func NewNewRestorationInternalServerError() *NewRestorationInternalServerError
NewNewRestorationInternalServerError creates NewRestorationInternalServerError with default headers values
func (*NewRestorationInternalServerError) SetPayload ¶
func (o *NewRestorationInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration internal server error response
func (*NewRestorationInternalServerError) WithPayload ¶
func (o *NewRestorationInternalServerError) WithPayload(payload *models.APIResponse) *NewRestorationInternalServerError
WithPayload adds the payload to the new restoration internal server error response
func (*NewRestorationInternalServerError) WriteResponse ¶
func (o *NewRestorationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationMethodNotAllowed ¶
type NewRestorationMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationMethodNotAllowed Bad request
swagger:response newRestorationMethodNotAllowed
func NewNewRestorationMethodNotAllowed ¶
func NewNewRestorationMethodNotAllowed() *NewRestorationMethodNotAllowed
NewNewRestorationMethodNotAllowed creates NewRestorationMethodNotAllowed with default headers values
func (*NewRestorationMethodNotAllowed) SetPayload ¶
func (o *NewRestorationMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration method not allowed response
func (*NewRestorationMethodNotAllowed) WithPayload ¶
func (o *NewRestorationMethodNotAllowed) WithPayload(payload *models.APIResponse) *NewRestorationMethodNotAllowed
WithPayload adds the payload to the new restoration method not allowed response
func (*NewRestorationMethodNotAllowed) WriteResponse ¶
func (o *NewRestorationMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationNotFound ¶
type NewRestorationNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewRestorationNotFound Stepup backup server not found
swagger:response newRestorationNotFound
func NewNewRestorationNotFound ¶
func NewNewRestorationNotFound() *NewRestorationNotFound
NewNewRestorationNotFound creates NewRestorationNotFound with default headers values
func (*NewRestorationNotFound) SetPayload ¶
func (o *NewRestorationNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration not found response
func (*NewRestorationNotFound) WithPayload ¶
func (o *NewRestorationNotFound) WithPayload(payload *models.APIResponse) *NewRestorationNotFound
WithPayload adds the payload to the new restoration not found response
func (*NewRestorationNotFound) WriteResponse ¶
func (o *NewRestorationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationOK ¶
type NewRestorationOK struct { /* In: Body */ Payload *models.Restoration `json:"body,omitempty"` }
NewRestorationOK Restoration started
swagger:response newRestorationOK
func NewNewRestorationOK ¶
func NewNewRestorationOK() *NewRestorationOK
NewNewRestorationOK creates NewRestorationOK with default headers values
func (*NewRestorationOK) SetPayload ¶
func (o *NewRestorationOK) SetPayload(payload *models.Restoration)
SetPayload sets the payload to the new restoration o k response
func (*NewRestorationOK) WithPayload ¶
func (o *NewRestorationOK) WithPayload(payload *models.Restoration) *NewRestorationOK
WithPayload adds the payload to the new restoration o k response
func (*NewRestorationOK) WriteResponse ¶
func (o *NewRestorationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationParams ¶
type NewRestorationParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup and associated snapshots for restoration Required: true In: body */ Body *models.Backup }
NewRestorationParams contains all the bound params for the new restoration operation typically these are obtained from a http.Request
swagger:parameters newRestoration
func NewNewRestorationParams ¶
func NewNewRestorationParams() NewRestorationParams
NewNewRestorationParams creates a new NewRestorationParams object
There are no default values defined in the spec.
func (*NewRestorationParams) BindRequest ¶
func (o *NewRestorationParams) 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.
To ensure default values, the struct must have been initialized with NewNewRestorationParams() beforehand.
type NewRestorationServiceUnavailable ¶
type NewRestorationServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
NewRestorationServiceUnavailable Service unavailable on stepup TOC controller
swagger:response newRestorationServiceUnavailable
func NewNewRestorationServiceUnavailable ¶
func NewNewRestorationServiceUnavailable() *NewRestorationServiceUnavailable
NewNewRestorationServiceUnavailable creates NewRestorationServiceUnavailable with default headers values
func (*NewRestorationServiceUnavailable) SetPayload ¶
func (o *NewRestorationServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new restoration service unavailable response
func (*NewRestorationServiceUnavailable) WithPayload ¶
func (o *NewRestorationServiceUnavailable) WithPayload(payload *models.APIResponse) *NewRestorationServiceUnavailable
WithPayload adds the payload to the new restoration service unavailable response
func (*NewRestorationServiceUnavailable) WriteResponse ¶
func (o *NewRestorationServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewRestorationURL ¶
type NewRestorationURL struct {
// contains filtered or unexported fields
}
NewRestorationURL generates an URL for the new restoration operation
func (*NewRestorationURL) Build ¶
func (o *NewRestorationURL) Build() (*url.URL, error)
Build a url path and query string
func (*NewRestorationURL) BuildFull ¶
func (o *NewRestorationURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NewRestorationURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*NewRestorationURL) SetBasePath ¶
func (o *NewRestorationURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*NewRestorationURL) String ¶
func (o *NewRestorationURL) String() string
String returns the string representation of the path with query string
func (*NewRestorationURL) StringFull ¶
func (o *NewRestorationURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NewRestorationURL) WithBasePath ¶
func (o *NewRestorationURL) WithBasePath(bp string) *NewRestorationURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateRestoration ¶
type UpdateRestoration struct { Context *middleware.Context Handler UpdateRestorationHandler }
UpdateRestoration swagger:route PUT /restorations restoration updateRestoration
Update restoration status/info
Update restoration status/info
func NewUpdateRestoration ¶
func NewUpdateRestoration(ctx *middleware.Context, handler UpdateRestorationHandler) *UpdateRestoration
NewUpdateRestoration creates a new http.Handler for the update restoration operation
func (*UpdateRestoration) ServeHTTP ¶
func (o *UpdateRestoration) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRestorationBadGateway ¶
type UpdateRestorationBadGateway struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationBadGateway Bad gateway. TOC controller error
swagger:response updateRestorationBadGateway
func NewUpdateRestorationBadGateway ¶
func NewUpdateRestorationBadGateway() *UpdateRestorationBadGateway
NewUpdateRestorationBadGateway creates UpdateRestorationBadGateway with default headers values
func (*UpdateRestorationBadGateway) SetPayload ¶
func (o *UpdateRestorationBadGateway) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration bad gateway response
func (*UpdateRestorationBadGateway) WithPayload ¶
func (o *UpdateRestorationBadGateway) WithPayload(payload *models.APIResponse) *UpdateRestorationBadGateway
WithPayload adds the payload to the update restoration bad gateway response
func (*UpdateRestorationBadGateway) WriteResponse ¶
func (o *UpdateRestorationBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationForbidden ¶
type UpdateRestorationForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationForbidden Forbidden from updating restoration
swagger:response updateRestorationForbidden
func NewUpdateRestorationForbidden ¶
func NewUpdateRestorationForbidden() *UpdateRestorationForbidden
NewUpdateRestorationForbidden creates UpdateRestorationForbidden with default headers values
func (*UpdateRestorationForbidden) SetPayload ¶
func (o *UpdateRestorationForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration forbidden response
func (*UpdateRestorationForbidden) WithPayload ¶
func (o *UpdateRestorationForbidden) WithPayload(payload *models.APIResponse) *UpdateRestorationForbidden
WithPayload adds the payload to the update restoration forbidden response
func (*UpdateRestorationForbidden) WriteResponse ¶
func (o *UpdateRestorationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationGatewayTimeout ¶
type UpdateRestorationGatewayTimeout struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationGatewayTimeout Gateway timeout. TOC controller did not reply.
swagger:response updateRestorationGatewayTimeout
func NewUpdateRestorationGatewayTimeout ¶
func NewUpdateRestorationGatewayTimeout() *UpdateRestorationGatewayTimeout
NewUpdateRestorationGatewayTimeout creates UpdateRestorationGatewayTimeout with default headers values
func (*UpdateRestorationGatewayTimeout) SetPayload ¶
func (o *UpdateRestorationGatewayTimeout) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration gateway timeout response
func (*UpdateRestorationGatewayTimeout) WithPayload ¶
func (o *UpdateRestorationGatewayTimeout) WithPayload(payload *models.APIResponse) *UpdateRestorationGatewayTimeout
WithPayload adds the payload to the update restoration gateway timeout response
func (*UpdateRestorationGatewayTimeout) WriteResponse ¶
func (o *UpdateRestorationGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationHandler ¶
type UpdateRestorationHandler interface {
Handle(UpdateRestorationParams) middleware.Responder
}
UpdateRestorationHandler interface for that can handle valid update restoration params
type UpdateRestorationHandlerFunc ¶
type UpdateRestorationHandlerFunc func(UpdateRestorationParams) middleware.Responder
UpdateRestorationHandlerFunc turns a function with the right signature into a update restoration handler
func (UpdateRestorationHandlerFunc) Handle ¶
func (fn UpdateRestorationHandlerFunc) Handle(params UpdateRestorationParams) middleware.Responder
Handle executing the request and returning a response
type UpdateRestorationInternalServerError ¶
type UpdateRestorationInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationInternalServerError TOC controller error
swagger:response updateRestorationInternalServerError
func NewUpdateRestorationInternalServerError ¶
func NewUpdateRestorationInternalServerError() *UpdateRestorationInternalServerError
NewUpdateRestorationInternalServerError creates UpdateRestorationInternalServerError with default headers values
func (*UpdateRestorationInternalServerError) SetPayload ¶
func (o *UpdateRestorationInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration internal server error response
func (*UpdateRestorationInternalServerError) WithPayload ¶
func (o *UpdateRestorationInternalServerError) WithPayload(payload *models.APIResponse) *UpdateRestorationInternalServerError
WithPayload adds the payload to the update restoration internal server error response
func (*UpdateRestorationInternalServerError) WriteResponse ¶
func (o *UpdateRestorationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationMethodNotAllowed ¶
type UpdateRestorationMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationMethodNotAllowed Bad request
swagger:response updateRestorationMethodNotAllowed
func NewUpdateRestorationMethodNotAllowed ¶
func NewUpdateRestorationMethodNotAllowed() *UpdateRestorationMethodNotAllowed
NewUpdateRestorationMethodNotAllowed creates UpdateRestorationMethodNotAllowed with default headers values
func (*UpdateRestorationMethodNotAllowed) SetPayload ¶
func (o *UpdateRestorationMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration method not allowed response
func (*UpdateRestorationMethodNotAllowed) WithPayload ¶
func (o *UpdateRestorationMethodNotAllowed) WithPayload(payload *models.APIResponse) *UpdateRestorationMethodNotAllowed
WithPayload adds the payload to the update restoration method not allowed response
func (*UpdateRestorationMethodNotAllowed) WriteResponse ¶
func (o *UpdateRestorationMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationNotFound ¶
type UpdateRestorationNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateRestorationNotFound TOC controller not found
swagger:response updateRestorationNotFound
func NewUpdateRestorationNotFound ¶
func NewUpdateRestorationNotFound() *UpdateRestorationNotFound
NewUpdateRestorationNotFound creates UpdateRestorationNotFound with default headers values
func (*UpdateRestorationNotFound) SetPayload ¶
func (o *UpdateRestorationNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration not found response
func (*UpdateRestorationNotFound) WithPayload ¶
func (o *UpdateRestorationNotFound) WithPayload(payload *models.APIResponse) *UpdateRestorationNotFound
WithPayload adds the payload to the update restoration not found response
func (*UpdateRestorationNotFound) WriteResponse ¶
func (o *UpdateRestorationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationOK ¶
type UpdateRestorationOK struct { /* In: Body */ Payload *models.Restoration `json:"body,omitempty"` }
UpdateRestorationOK Restoration updated
swagger:response updateRestorationOK
func NewUpdateRestorationOK ¶
func NewUpdateRestorationOK() *UpdateRestorationOK
NewUpdateRestorationOK creates UpdateRestorationOK with default headers values
func (*UpdateRestorationOK) SetPayload ¶
func (o *UpdateRestorationOK) SetPayload(payload *models.Restoration)
SetPayload sets the payload to the update restoration o k response
func (*UpdateRestorationOK) WithPayload ¶
func (o *UpdateRestorationOK) WithPayload(payload *models.Restoration) *UpdateRestorationOK
WithPayload adds the payload to the update restoration o k response
func (*UpdateRestorationOK) WriteResponse ¶
func (o *UpdateRestorationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationParams ¶
type UpdateRestorationParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Restoration request to update Required: true In: body */ Body *models.Restoration }
UpdateRestorationParams contains all the bound params for the update restoration operation typically these are obtained from a http.Request
swagger:parameters updateRestoration
func NewUpdateRestorationParams ¶
func NewUpdateRestorationParams() UpdateRestorationParams
NewUpdateRestorationParams creates a new UpdateRestorationParams object
There are no default values defined in the spec.
func (*UpdateRestorationParams) BindRequest ¶
func (o *UpdateRestorationParams) 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.
To ensure default values, the struct must have been initialized with NewUpdateRestorationParams() beforehand.
type UpdateRestorationServiceUnavailable ¶
type UpdateRestorationServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
UpdateRestorationServiceUnavailable Service unavailable on TOC controller
swagger:response updateRestorationServiceUnavailable
func NewUpdateRestorationServiceUnavailable ¶
func NewUpdateRestorationServiceUnavailable() *UpdateRestorationServiceUnavailable
NewUpdateRestorationServiceUnavailable creates UpdateRestorationServiceUnavailable with default headers values
func (*UpdateRestorationServiceUnavailable) SetPayload ¶
func (o *UpdateRestorationServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update restoration service unavailable response
func (*UpdateRestorationServiceUnavailable) WithPayload ¶
func (o *UpdateRestorationServiceUnavailable) WithPayload(payload *models.APIResponse) *UpdateRestorationServiceUnavailable
WithPayload adds the payload to the update restoration service unavailable response
func (*UpdateRestorationServiceUnavailable) WriteResponse ¶
func (o *UpdateRestorationServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRestorationURL ¶
type UpdateRestorationURL struct {
// contains filtered or unexported fields
}
UpdateRestorationURL generates an URL for the update restoration operation
func (*UpdateRestorationURL) Build ¶
func (o *UpdateRestorationURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRestorationURL) BuildFull ¶
func (o *UpdateRestorationURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRestorationURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRestorationURL) SetBasePath ¶
func (o *UpdateRestorationURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateRestorationURL) String ¶
func (o *UpdateRestorationURL) String() string
String returns the string representation of the path with query string
func (*UpdateRestorationURL) StringFull ¶
func (o *UpdateRestorationURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRestorationURL) WithBasePath ¶
func (o *UpdateRestorationURL) WithBasePath(bp string) *UpdateRestorationURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files
¶
- get_restoration_by_id.go
- get_restoration_by_id_parameters.go
- get_restoration_by_id_responses.go
- get_restoration_by_id_urlbuilder.go
- get_restorations.go
- get_restorations_parameters.go
- get_restorations_responses.go
- get_restorations_urlbuilder.go
- new_restoration.go
- new_restoration_parameters.go
- new_restoration_responses.go
- new_restoration_urlbuilder.go
- update_restoration.go
- update_restoration_parameters.go
- update_restoration_responses.go
- update_restoration_urlbuilder.go