Documentation ¶
Index ¶
- Constants
- type DeleteModel
- type DeleteModelHandler
- type DeleteModelHandlerFunc
- type DeleteModelNotFound
- type DeleteModelOK
- type DeleteModelParams
- type DeleteModelURL
- func (o *DeleteModelURL) Build() (*url.URL, error)
- func (o *DeleteModelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteModelURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteModelURL) SetBasePath(bp string)
- func (o *DeleteModelURL) String() string
- func (o *DeleteModelURL) StringFull(scheme, host string) string
- func (o *DeleteModelURL) WithBasePath(bp string) *DeleteModelURL
- type DeleteModelUnauthorized
- type DownloadModelDefinition
- type DownloadModelDefinitionHandler
- type DownloadModelDefinitionHandlerFunc
- type DownloadModelDefinitionNotFound
- func (o *DownloadModelDefinitionNotFound) SetPayload(payload *restmodels.Error)
- func (o *DownloadModelDefinitionNotFound) WithPayload(payload *restmodels.Error) *DownloadModelDefinitionNotFound
- func (o *DownloadModelDefinitionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DownloadModelDefinitionOK
- type DownloadModelDefinitionParams
- type DownloadModelDefinitionURL
- func (o *DownloadModelDefinitionURL) Build() (*url.URL, error)
- func (o *DownloadModelDefinitionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DownloadModelDefinitionURL) Must(u *url.URL, err error) *url.URL
- func (o *DownloadModelDefinitionURL) SetBasePath(bp string)
- func (o *DownloadModelDefinitionURL) String() string
- func (o *DownloadModelDefinitionURL) StringFull(scheme, host string) string
- func (o *DownloadModelDefinitionURL) WithBasePath(bp string) *DownloadModelDefinitionURL
- type DownloadModelDefinitionUnauthorized
- func (o *DownloadModelDefinitionUnauthorized) SetPayload(payload *restmodels.Error)
- func (o *DownloadModelDefinitionUnauthorized) WithPayload(payload *restmodels.Error) *DownloadModelDefinitionUnauthorized
- func (o *DownloadModelDefinitionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DownloadTrainedModel
- type DownloadTrainedModelGone
- type DownloadTrainedModelHandler
- type DownloadTrainedModelHandlerFunc
- type DownloadTrainedModelNotFound
- type DownloadTrainedModelOK
- type DownloadTrainedModelParams
- type DownloadTrainedModelURL
- func (o *DownloadTrainedModelURL) Build() (*url.URL, error)
- func (o *DownloadTrainedModelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DownloadTrainedModelURL) Must(u *url.URL, err error) *url.URL
- func (o *DownloadTrainedModelURL) SetBasePath(bp string)
- func (o *DownloadTrainedModelURL) String() string
- func (o *DownloadTrainedModelURL) StringFull(scheme, host string) string
- func (o *DownloadTrainedModelURL) WithBasePath(bp string) *DownloadTrainedModelURL
- type DownloadTrainedModelUnauthorized
- func (o *DownloadTrainedModelUnauthorized) SetPayload(payload *restmodels.Error)
- func (o *DownloadTrainedModelUnauthorized) WithPayload(payload *restmodels.Error) *DownloadTrainedModelUnauthorized
- func (o *DownloadTrainedModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLogs
- type GetLogsHandler
- type GetLogsHandlerFunc
- type GetLogsNotFound
- type GetLogsOK
- type GetLogsParams
- type GetLogsURL
- func (o *GetLogsURL) Build() (*url.URL, error)
- func (o *GetLogsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLogsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLogsURL) SetBasePath(bp string)
- func (o *GetLogsURL) String() string
- func (o *GetLogsURL) StringFull(scheme, host string) string
- func (o *GetLogsURL) WithBasePath(bp string) *GetLogsURL
- type GetLogsUnauthorized
- type GetMetrics
- type GetMetricsHandler
- type GetMetricsHandlerFunc
- type GetMetricsNotFound
- type GetMetricsOK
- type GetMetricsParams
- type GetMetricsURL
- func (o *GetMetricsURL) Build() (*url.URL, error)
- func (o *GetMetricsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetMetricsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetMetricsURL) SetBasePath(bp string)
- func (o *GetMetricsURL) String() string
- func (o *GetMetricsURL) StringFull(scheme, host string) string
- func (o *GetMetricsURL) WithBasePath(bp string) *GetMetricsURL
- type GetMetricsUnauthorized
- type GetModel
- type GetModelHandler
- type GetModelHandlerFunc
- type GetModelNotFound
- type GetModelOK
- type GetModelParams
- type GetModelURL
- func (o *GetModelURL) Build() (*url.URL, error)
- func (o *GetModelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetModelURL) Must(u *url.URL, err error) *url.URL
- func (o *GetModelURL) SetBasePath(bp string)
- func (o *GetModelURL) String() string
- func (o *GetModelURL) StringFull(scheme, host string) string
- func (o *GetModelURL) WithBasePath(bp string) *GetModelURL
- type GetModelUnauthorized
- type ListModels
- type ListModelsHandler
- type ListModelsHandlerFunc
- type ListModelsOK
- type ListModelsParams
- type ListModelsURL
- func (o *ListModelsURL) Build() (*url.URL, error)
- func (o *ListModelsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListModelsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListModelsURL) SetBasePath(bp string)
- func (o *ListModelsURL) String() string
- func (o *ListModelsURL) StringFull(scheme, host string) string
- func (o *ListModelsURL) WithBasePath(bp string) *ListModelsURL
- type ListModelsUnauthorized
- type PatchModel
- type PatchModelAccepted
- type PatchModelBadRequest
- type PatchModelHandler
- type PatchModelHandlerFunc
- type PatchModelNotFound
- type PatchModelParams
- type PatchModelURL
- func (o *PatchModelURL) Build() (*url.URL, error)
- func (o *PatchModelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PatchModelURL) Must(u *url.URL, err error) *url.URL
- func (o *PatchModelURL) SetBasePath(bp string)
- func (o *PatchModelURL) String() string
- func (o *PatchModelURL) StringFull(scheme, host string) string
- func (o *PatchModelURL) WithBasePath(bp string) *PatchModelURL
- type PatchModelUnauthorized
- type PostModel
- type PostModelBadRequest
- type PostModelCreated
- func (o *PostModelCreated) SetLocation(location string)
- func (o *PostModelCreated) SetPayload(payload *restmodels.BasicNewModel)
- func (o *PostModelCreated) WithLocation(location string) *PostModelCreated
- func (o *PostModelCreated) WithPayload(payload *restmodels.BasicNewModel) *PostModelCreated
- func (o *PostModelCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostModelHandler
- type PostModelHandlerFunc
- type PostModelParams
- type PostModelURL
- func (o *PostModelURL) Build() (*url.URL, error)
- func (o *PostModelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostModelURL) Must(u *url.URL, err error) *url.URL
- func (o *PostModelURL) SetBasePath(bp string)
- func (o *PostModelURL) String() string
- func (o *PostModelURL) StringFull(scheme, host string) string
- func (o *PostModelURL) WithBasePath(bp string) *PostModelURL
- type PostModelUnauthorized
Constants ¶
const DeleteModelNotFoundCode int = 404
DeleteModelNotFoundCode is the HTTP code returned for type DeleteModelNotFound
const DeleteModelOKCode int = 200
DeleteModelOKCode is the HTTP code returned for type DeleteModelOK
DeleteModelUnauthorizedCode is the HTTP code returned for type DeleteModelUnauthorized
const DownloadModelDefinitionNotFoundCode int = 404
DownloadModelDefinitionNotFoundCode is the HTTP code returned for type DownloadModelDefinitionNotFound
const DownloadModelDefinitionOKCode int = 200
DownloadModelDefinitionOKCode is the HTTP code returned for type DownloadModelDefinitionOK
DownloadModelDefinitionUnauthorizedCode is the HTTP code returned for type DownloadModelDefinitionUnauthorized
const DownloadTrainedModelGoneCode int = 410
DownloadTrainedModelGoneCode is the HTTP code returned for type DownloadTrainedModelGone
const DownloadTrainedModelNotFoundCode int = 404
DownloadTrainedModelNotFoundCode is the HTTP code returned for type DownloadTrainedModelNotFound
const DownloadTrainedModelOKCode int = 200
DownloadTrainedModelOKCode is the HTTP code returned for type DownloadTrainedModelOK
DownloadTrainedModelUnauthorizedCode is the HTTP code returned for type DownloadTrainedModelUnauthorized
const GetLogsNotFoundCode int = 404
GetLogsNotFoundCode is the HTTP code returned for type GetLogsNotFound
const GetLogsOKCode int = 200
GetLogsOKCode is the HTTP code returned for type GetLogsOK
GetLogsUnauthorizedCode is the HTTP code returned for type GetLogsUnauthorized
const GetMetricsNotFoundCode int = 404
GetMetricsNotFoundCode is the HTTP code returned for type GetMetricsNotFound
const GetMetricsOKCode int = 200
GetMetricsOKCode is the HTTP code returned for type GetMetricsOK
GetMetricsUnauthorizedCode is the HTTP code returned for type GetMetricsUnauthorized
const GetModelNotFoundCode int = 404
GetModelNotFoundCode is the HTTP code returned for type GetModelNotFound
const GetModelOKCode int = 200
GetModelOKCode is the HTTP code returned for type GetModelOK
GetModelUnauthorizedCode is the HTTP code returned for type GetModelUnauthorized
const ListModelsOKCode int = 200
ListModelsOKCode is the HTTP code returned for type ListModelsOK
ListModelsUnauthorizedCode is the HTTP code returned for type ListModelsUnauthorized
const PatchModelAcceptedCode int = 202
PatchModelAcceptedCode is the HTTP code returned for type PatchModelAccepted
const PatchModelBadRequestCode int = 400
PatchModelBadRequestCode is the HTTP code returned for type PatchModelBadRequest
const PatchModelNotFoundCode int = 404
PatchModelNotFoundCode is the HTTP code returned for type PatchModelNotFound
PatchModelUnauthorizedCode is the HTTP code returned for type PatchModelUnauthorized
const PostModelBadRequestCode int = 400
PostModelBadRequestCode is the HTTP code returned for type PostModelBadRequest
const PostModelCreatedCode int = 201
PostModelCreatedCode is the HTTP code returned for type PostModelCreated
PostModelUnauthorizedCode is the HTTP code returned for type PostModelUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteModel ¶
type DeleteModel struct { Context *middleware.Context Handler DeleteModelHandler }
DeleteModel swagger:route DELETE /v1/models/{model_id} Models deleteModel
Deletes an existing model ¶
Deletes an existing model. It does not delete any data in the user's data store.
func NewDeleteModel ¶
func NewDeleteModel(ctx *middleware.Context, handler DeleteModelHandler) *DeleteModel
NewDeleteModel creates a new http.Handler for the delete model operation
func (*DeleteModel) ServeHTTP ¶
func (o *DeleteModel) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteModelHandler ¶
type DeleteModelHandler interface {
Handle(DeleteModelParams, interface{}) middleware.Responder
}
DeleteModelHandler interface for that can handle valid delete model params
type DeleteModelHandlerFunc ¶
type DeleteModelHandlerFunc func(DeleteModelParams, interface{}) middleware.Responder
DeleteModelHandlerFunc turns a function with the right signature into a delete model handler
func (DeleteModelHandlerFunc) Handle ¶
func (fn DeleteModelHandlerFunc) Handle(params DeleteModelParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteModelNotFound ¶
type DeleteModelNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
DeleteModelNotFound The model cannot be found.
swagger:response deleteModelNotFound
func NewDeleteModelNotFound ¶
func NewDeleteModelNotFound() *DeleteModelNotFound
NewDeleteModelNotFound creates DeleteModelNotFound with default headers values
func (*DeleteModelNotFound) SetPayload ¶
func (o *DeleteModelNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the delete model not found response
func (*DeleteModelNotFound) WithPayload ¶
func (o *DeleteModelNotFound) WithPayload(payload *restmodels.Error) *DeleteModelNotFound
WithPayload adds the payload to the delete model not found response
func (*DeleteModelNotFound) WriteResponse ¶
func (o *DeleteModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteModelOK ¶
type DeleteModelOK struct { /* In: Body */ Payload *restmodels.BasicModel `json:"body,omitempty"` }
DeleteModelOK Model deleted successfully.
swagger:response deleteModelOK
func NewDeleteModelOK ¶
func NewDeleteModelOK() *DeleteModelOK
NewDeleteModelOK creates DeleteModelOK with default headers values
func (*DeleteModelOK) SetPayload ¶
func (o *DeleteModelOK) SetPayload(payload *restmodels.BasicModel)
SetPayload sets the payload to the delete model o k response
func (*DeleteModelOK) WithPayload ¶
func (o *DeleteModelOK) WithPayload(payload *restmodels.BasicModel) *DeleteModelOK
WithPayload adds the payload to the delete model o k response
func (*DeleteModelOK) WriteResponse ¶
func (o *DeleteModelOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteModelParams ¶
type DeleteModelParams struct { // HTTP Request Object HTTPRequest *http.Request /*The id of the model. Required: true In: path */ ModelID string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
DeleteModelParams contains all the bound params for the delete model operation typically these are obtained from a http.Request
swagger:parameters deleteModel
func NewDeleteModelParams ¶
func NewDeleteModelParams() DeleteModelParams
NewDeleteModelParams creates a new DeleteModelParams object with the default values initialized.
func (*DeleteModelParams) BindRequest ¶
func (o *DeleteModelParams) 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 DeleteModelURL ¶
type DeleteModelURL struct { ModelID string Version string // contains filtered or unexported fields }
DeleteModelURL generates an URL for the delete model operation
func (*DeleteModelURL) Build ¶
func (o *DeleteModelURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteModelURL) BuildFull ¶
func (o *DeleteModelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteModelURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteModelURL) SetBasePath ¶
func (o *DeleteModelURL) 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 (*DeleteModelURL) String ¶
func (o *DeleteModelURL) String() string
String returns the string representation of the path with query string
func (*DeleteModelURL) StringFull ¶
func (o *DeleteModelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteModelURL) WithBasePath ¶
func (o *DeleteModelURL) WithBasePath(bp string) *DeleteModelURL
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 DeleteModelUnauthorized ¶
type DeleteModelUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
DeleteModelUnauthorized Unauthorized
swagger:response deleteModelUnauthorized
func NewDeleteModelUnauthorized ¶
func NewDeleteModelUnauthorized() *DeleteModelUnauthorized
NewDeleteModelUnauthorized creates DeleteModelUnauthorized with default headers values
func (*DeleteModelUnauthorized) SetPayload ¶
func (o *DeleteModelUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the delete model unauthorized response
func (*DeleteModelUnauthorized) WithPayload ¶
func (o *DeleteModelUnauthorized) WithPayload(payload *restmodels.Error) *DeleteModelUnauthorized
WithPayload adds the payload to the delete model unauthorized response
func (*DeleteModelUnauthorized) WriteResponse ¶
func (o *DeleteModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadModelDefinition ¶
type DownloadModelDefinition struct { Context *middleware.Context Handler DownloadModelDefinitionHandler }
DownloadModelDefinition swagger:route GET /v1/models/{model_id}/definition Models downloadModelDefinition
Downloads the model definition.
Downloads the model definition that was initial used for training as ZIP archive.
func NewDownloadModelDefinition ¶
func NewDownloadModelDefinition(ctx *middleware.Context, handler DownloadModelDefinitionHandler) *DownloadModelDefinition
NewDownloadModelDefinition creates a new http.Handler for the download model definition operation
func (*DownloadModelDefinition) ServeHTTP ¶
func (o *DownloadModelDefinition) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DownloadModelDefinitionHandler ¶
type DownloadModelDefinitionHandler interface {
Handle(DownloadModelDefinitionParams, interface{}) middleware.Responder
}
DownloadModelDefinitionHandler interface for that can handle valid download model definition params
type DownloadModelDefinitionHandlerFunc ¶
type DownloadModelDefinitionHandlerFunc func(DownloadModelDefinitionParams, interface{}) middleware.Responder
DownloadModelDefinitionHandlerFunc turns a function with the right signature into a download model definition handler
func (DownloadModelDefinitionHandlerFunc) Handle ¶
func (fn DownloadModelDefinitionHandlerFunc) Handle(params DownloadModelDefinitionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DownloadModelDefinitionNotFound ¶
type DownloadModelDefinitionNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
DownloadModelDefinitionNotFound The model cannot be found.
swagger:response downloadModelDefinitionNotFound
func NewDownloadModelDefinitionNotFound ¶
func NewDownloadModelDefinitionNotFound() *DownloadModelDefinitionNotFound
NewDownloadModelDefinitionNotFound creates DownloadModelDefinitionNotFound with default headers values
func (*DownloadModelDefinitionNotFound) SetPayload ¶
func (o *DownloadModelDefinitionNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the download model definition not found response
func (*DownloadModelDefinitionNotFound) WithPayload ¶
func (o *DownloadModelDefinitionNotFound) WithPayload(payload *restmodels.Error) *DownloadModelDefinitionNotFound
WithPayload adds the payload to the download model definition not found response
func (*DownloadModelDefinitionNotFound) WriteResponse ¶
func (o *DownloadModelDefinitionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadModelDefinitionOK ¶
type DownloadModelDefinitionOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
DownloadModelDefinitionOK Model definition
swagger:response downloadModelDefinitionOK
func NewDownloadModelDefinitionOK ¶
func NewDownloadModelDefinitionOK() *DownloadModelDefinitionOK
NewDownloadModelDefinitionOK creates DownloadModelDefinitionOK with default headers values
func (*DownloadModelDefinitionOK) SetPayload ¶
func (o *DownloadModelDefinitionOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the download model definition o k response
func (*DownloadModelDefinitionOK) WithPayload ¶
func (o *DownloadModelDefinitionOK) WithPayload(payload io.ReadCloser) *DownloadModelDefinitionOK
WithPayload adds the payload to the download model definition o k response
func (*DownloadModelDefinitionOK) WriteResponse ¶
func (o *DownloadModelDefinitionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadModelDefinitionParams ¶
type DownloadModelDefinitionParams struct { // HTTP Request Object HTTPRequest *http.Request /*The id of the model. Required: true In: path */ ModelID string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
DownloadModelDefinitionParams contains all the bound params for the download model definition operation typically these are obtained from a http.Request
swagger:parameters downloadModelDefinition
func NewDownloadModelDefinitionParams ¶
func NewDownloadModelDefinitionParams() DownloadModelDefinitionParams
NewDownloadModelDefinitionParams creates a new DownloadModelDefinitionParams object with the default values initialized.
func (*DownloadModelDefinitionParams) BindRequest ¶
func (o *DownloadModelDefinitionParams) 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 DownloadModelDefinitionURL ¶
type DownloadModelDefinitionURL struct { ModelID string Version string // contains filtered or unexported fields }
DownloadModelDefinitionURL generates an URL for the download model definition operation
func (*DownloadModelDefinitionURL) Build ¶
func (o *DownloadModelDefinitionURL) Build() (*url.URL, error)
Build a url path and query string
func (*DownloadModelDefinitionURL) BuildFull ¶
func (o *DownloadModelDefinitionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DownloadModelDefinitionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DownloadModelDefinitionURL) SetBasePath ¶
func (o *DownloadModelDefinitionURL) 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 (*DownloadModelDefinitionURL) String ¶
func (o *DownloadModelDefinitionURL) String() string
String returns the string representation of the path with query string
func (*DownloadModelDefinitionURL) StringFull ¶
func (o *DownloadModelDefinitionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DownloadModelDefinitionURL) WithBasePath ¶
func (o *DownloadModelDefinitionURL) WithBasePath(bp string) *DownloadModelDefinitionURL
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 DownloadModelDefinitionUnauthorized ¶
type DownloadModelDefinitionUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
DownloadModelDefinitionUnauthorized Unauthorized
swagger:response downloadModelDefinitionUnauthorized
func NewDownloadModelDefinitionUnauthorized ¶
func NewDownloadModelDefinitionUnauthorized() *DownloadModelDefinitionUnauthorized
NewDownloadModelDefinitionUnauthorized creates DownloadModelDefinitionUnauthorized with default headers values
func (*DownloadModelDefinitionUnauthorized) SetPayload ¶
func (o *DownloadModelDefinitionUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the download model definition unauthorized response
func (*DownloadModelDefinitionUnauthorized) WithPayload ¶
func (o *DownloadModelDefinitionUnauthorized) WithPayload(payload *restmodels.Error) *DownloadModelDefinitionUnauthorized
WithPayload adds the payload to the download model definition unauthorized response
func (*DownloadModelDefinitionUnauthorized) WriteResponse ¶
func (o *DownloadModelDefinitionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadTrainedModel ¶
type DownloadTrainedModel struct { Context *middleware.Context Handler DownloadTrainedModelHandler }
DownloadTrainedModel swagger:route GET /v1/models/{model_id}/trained_model Models downloadTrainedModel
Downloads the trained model.
Downloads the trained model as ZIP archive.
func NewDownloadTrainedModel ¶
func NewDownloadTrainedModel(ctx *middleware.Context, handler DownloadTrainedModelHandler) *DownloadTrainedModel
NewDownloadTrainedModel creates a new http.Handler for the download trained model operation
func (*DownloadTrainedModel) ServeHTTP ¶
func (o *DownloadTrainedModel) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DownloadTrainedModelGone ¶
type DownloadTrainedModelGone struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
DownloadTrainedModelGone If the trained model storage time has expired and it has been deleted. It only gets deleted if it not stored on an external data store.
swagger:response downloadTrainedModelGone
func NewDownloadTrainedModelGone ¶
func NewDownloadTrainedModelGone() *DownloadTrainedModelGone
NewDownloadTrainedModelGone creates DownloadTrainedModelGone with default headers values
func (*DownloadTrainedModelGone) SetPayload ¶
func (o *DownloadTrainedModelGone) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the download trained model gone response
func (*DownloadTrainedModelGone) WithPayload ¶
func (o *DownloadTrainedModelGone) WithPayload(payload *restmodels.Error) *DownloadTrainedModelGone
WithPayload adds the payload to the download trained model gone response
func (*DownloadTrainedModelGone) WriteResponse ¶
func (o *DownloadTrainedModelGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadTrainedModelHandler ¶
type DownloadTrainedModelHandler interface {
Handle(DownloadTrainedModelParams, interface{}) middleware.Responder
}
DownloadTrainedModelHandler interface for that can handle valid download trained model params
type DownloadTrainedModelHandlerFunc ¶
type DownloadTrainedModelHandlerFunc func(DownloadTrainedModelParams, interface{}) middleware.Responder
DownloadTrainedModelHandlerFunc turns a function with the right signature into a download trained model handler
func (DownloadTrainedModelHandlerFunc) Handle ¶
func (fn DownloadTrainedModelHandlerFunc) Handle(params DownloadTrainedModelParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DownloadTrainedModelNotFound ¶
type DownloadTrainedModelNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
DownloadTrainedModelNotFound The trained model cannot be found.
swagger:response downloadTrainedModelNotFound
func NewDownloadTrainedModelNotFound ¶
func NewDownloadTrainedModelNotFound() *DownloadTrainedModelNotFound
NewDownloadTrainedModelNotFound creates DownloadTrainedModelNotFound with default headers values
func (*DownloadTrainedModelNotFound) SetPayload ¶
func (o *DownloadTrainedModelNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the download trained model not found response
func (*DownloadTrainedModelNotFound) WithPayload ¶
func (o *DownloadTrainedModelNotFound) WithPayload(payload *restmodels.Error) *DownloadTrainedModelNotFound
WithPayload adds the payload to the download trained model not found response
func (*DownloadTrainedModelNotFound) WriteResponse ¶
func (o *DownloadTrainedModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadTrainedModelOK ¶
type DownloadTrainedModelOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
DownloadTrainedModelOK Model definition
swagger:response downloadTrainedModelOK
func NewDownloadTrainedModelOK ¶
func NewDownloadTrainedModelOK() *DownloadTrainedModelOK
NewDownloadTrainedModelOK creates DownloadTrainedModelOK with default headers values
func (*DownloadTrainedModelOK) SetPayload ¶
func (o *DownloadTrainedModelOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the download trained model o k response
func (*DownloadTrainedModelOK) WithPayload ¶
func (o *DownloadTrainedModelOK) WithPayload(payload io.ReadCloser) *DownloadTrainedModelOK
WithPayload adds the payload to the download trained model o k response
func (*DownloadTrainedModelOK) WriteResponse ¶
func (o *DownloadTrainedModelOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DownloadTrainedModelParams ¶
type DownloadTrainedModelParams struct { // HTTP Request Object HTTPRequest *http.Request /*The id of the model. Required: true In: path */ ModelID string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
DownloadTrainedModelParams contains all the bound params for the download trained model operation typically these are obtained from a http.Request
swagger:parameters downloadTrainedModel
func NewDownloadTrainedModelParams ¶
func NewDownloadTrainedModelParams() DownloadTrainedModelParams
NewDownloadTrainedModelParams creates a new DownloadTrainedModelParams object with the default values initialized.
func (*DownloadTrainedModelParams) BindRequest ¶
func (o *DownloadTrainedModelParams) 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 DownloadTrainedModelURL ¶
type DownloadTrainedModelURL struct { ModelID string Version string // contains filtered or unexported fields }
DownloadTrainedModelURL generates an URL for the download trained model operation
func (*DownloadTrainedModelURL) Build ¶
func (o *DownloadTrainedModelURL) Build() (*url.URL, error)
Build a url path and query string
func (*DownloadTrainedModelURL) BuildFull ¶
func (o *DownloadTrainedModelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DownloadTrainedModelURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DownloadTrainedModelURL) SetBasePath ¶
func (o *DownloadTrainedModelURL) 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 (*DownloadTrainedModelURL) String ¶
func (o *DownloadTrainedModelURL) String() string
String returns the string representation of the path with query string
func (*DownloadTrainedModelURL) StringFull ¶
func (o *DownloadTrainedModelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DownloadTrainedModelURL) WithBasePath ¶
func (o *DownloadTrainedModelURL) WithBasePath(bp string) *DownloadTrainedModelURL
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 DownloadTrainedModelUnauthorized ¶
type DownloadTrainedModelUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
DownloadTrainedModelUnauthorized Unauthorized
swagger:response downloadTrainedModelUnauthorized
func NewDownloadTrainedModelUnauthorized ¶
func NewDownloadTrainedModelUnauthorized() *DownloadTrainedModelUnauthorized
NewDownloadTrainedModelUnauthorized creates DownloadTrainedModelUnauthorized with default headers values
func (*DownloadTrainedModelUnauthorized) SetPayload ¶
func (o *DownloadTrainedModelUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the download trained model unauthorized response
func (*DownloadTrainedModelUnauthorized) WithPayload ¶
func (o *DownloadTrainedModelUnauthorized) WithPayload(payload *restmodels.Error) *DownloadTrainedModelUnauthorized
WithPayload adds the payload to the download trained model unauthorized response
func (*DownloadTrainedModelUnauthorized) WriteResponse ¶
func (o *DownloadTrainedModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogs ¶
type GetLogs struct { Context *middleware.Context Handler GetLogsHandler }
GetLogs swagger:route GET /v1/models/{model_id}/logs Models getLogs
Get training logs as websocket stream.
Get training logs for the given model as websocket stream. Each message can contain one or more log lines.
func NewGetLogs ¶
func NewGetLogs(ctx *middleware.Context, handler GetLogsHandler) *GetLogs
NewGetLogs creates a new http.Handler for the get logs operation
type GetLogsHandler ¶
type GetLogsHandler interface {
Handle(GetLogsParams) middleware.Responder
}
GetLogsHandler interface for that can handle valid get logs params
type GetLogsHandlerFunc ¶
type GetLogsHandlerFunc func(GetLogsParams) middleware.Responder
GetLogsHandlerFunc turns a function with the right signature into a get logs handler
func (GetLogsHandlerFunc) Handle ¶
func (fn GetLogsHandlerFunc) Handle(params GetLogsParams) middleware.Responder
Handle executing the request and returning a response
type GetLogsNotFound ¶
type GetLogsNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
GetLogsNotFound The model cannot be found.
swagger:response getLogsNotFound
func NewGetLogsNotFound ¶
func NewGetLogsNotFound() *GetLogsNotFound
NewGetLogsNotFound creates GetLogsNotFound with default headers values
func (*GetLogsNotFound) SetPayload ¶
func (o *GetLogsNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get logs not found response
func (*GetLogsNotFound) WithPayload ¶
func (o *GetLogsNotFound) WithPayload(payload *restmodels.Error) *GetLogsNotFound
WithPayload adds the payload to the get logs not found response
func (*GetLogsNotFound) WriteResponse ¶
func (o *GetLogsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsOK ¶
type GetLogsOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
GetLogsOK Dump of the training log to-date
swagger:response getLogsOK
func NewGetLogsOK ¶
func NewGetLogsOK() *GetLogsOK
NewGetLogsOK creates GetLogsOK with default headers values
func (*GetLogsOK) SetPayload ¶
func (o *GetLogsOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the get logs o k response
func (*GetLogsOK) WithPayload ¶
func (o *GetLogsOK) WithPayload(payload io.ReadCloser) *GetLogsOK
WithPayload adds the payload to the get logs o k response
func (*GetLogsOK) WriteResponse ¶
func (o *GetLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogsParams ¶
type GetLogsParams struct { // HTTP Request Object HTTPRequest *http.Request /*Follow the log stream if true. Default false. In: query Default: false */ Follow *bool /*The id of the model. Required: true In: path */ ModelID string /*An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. In: query Default: "" */ SinceTime *string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
GetLogsParams contains all the bound params for the get logs operation typically these are obtained from a http.Request
swagger:parameters getLogs
func NewGetLogsParams ¶
func NewGetLogsParams() GetLogsParams
NewGetLogsParams creates a new GetLogsParams object with the default values initialized.
func (*GetLogsParams) BindRequest ¶
func (o *GetLogsParams) 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 GetLogsURL ¶
type GetLogsURL struct { ModelID string Follow *bool SinceTime *string Version string // contains filtered or unexported fields }
GetLogsURL generates an URL for the get logs operation
func (*GetLogsURL) Build ¶
func (o *GetLogsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLogsURL) BuildFull ¶
func (o *GetLogsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLogsURL) SetBasePath ¶
func (o *GetLogsURL) 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 (*GetLogsURL) String ¶
func (o *GetLogsURL) String() string
String returns the string representation of the path with query string
func (*GetLogsURL) StringFull ¶
func (o *GetLogsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLogsURL) WithBasePath ¶
func (o *GetLogsURL) WithBasePath(bp string) *GetLogsURL
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 GetLogsUnauthorized ¶
type GetLogsUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
GetLogsUnauthorized Unauthorized
swagger:response getLogsUnauthorized
func NewGetLogsUnauthorized ¶
func NewGetLogsUnauthorized() *GetLogsUnauthorized
NewGetLogsUnauthorized creates GetLogsUnauthorized with default headers values
func (*GetLogsUnauthorized) SetPayload ¶
func (o *GetLogsUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get logs unauthorized response
func (*GetLogsUnauthorized) WithPayload ¶
func (o *GetLogsUnauthorized) WithPayload(payload *restmodels.Error) *GetLogsUnauthorized
WithPayload adds the payload to the get logs unauthorized response
func (*GetLogsUnauthorized) WriteResponse ¶
func (o *GetLogsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetMetrics ¶
type GetMetrics struct { Context *middleware.Context Handler GetMetricsHandler }
GetMetrics swagger:route GET /v1/models/{model_id}/metrics Models getMetrics
Get training metrics from a model training as websocket.
Get training metrics such as learning rate, accurarcy, loss from a model training via a websocket. It returns one or more JSON payloads at a time with the following schema.
func NewGetMetrics ¶
func NewGetMetrics(ctx *middleware.Context, handler GetMetricsHandler) *GetMetrics
NewGetMetrics creates a new http.Handler for the get metrics operation
func (*GetMetrics) ServeHTTP ¶
func (o *GetMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetMetricsHandler ¶
type GetMetricsHandler interface {
Handle(GetMetricsParams) middleware.Responder
}
GetMetricsHandler interface for that can handle valid get metrics params
type GetMetricsHandlerFunc ¶
type GetMetricsHandlerFunc func(GetMetricsParams) middleware.Responder
GetMetricsHandlerFunc turns a function with the right signature into a get metrics handler
func (GetMetricsHandlerFunc) Handle ¶
func (fn GetMetricsHandlerFunc) Handle(params GetMetricsParams) middleware.Responder
Handle executing the request and returning a response
type GetMetricsNotFound ¶
type GetMetricsNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
GetMetricsNotFound The training job cannot be found.
swagger:response getMetricsNotFound
func NewGetMetricsNotFound ¶
func NewGetMetricsNotFound() *GetMetricsNotFound
NewGetMetricsNotFound creates GetMetricsNotFound with default headers values
func (*GetMetricsNotFound) SetPayload ¶
func (o *GetMetricsNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get metrics not found response
func (*GetMetricsNotFound) WithPayload ¶
func (o *GetMetricsNotFound) WithPayload(payload *restmodels.Error) *GetMetricsNotFound
WithPayload adds the payload to the get metrics not found response
func (*GetMetricsNotFound) WriteResponse ¶
func (o *GetMetricsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetMetricsOK ¶
type GetMetricsOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
GetMetricsOK Dump of the training log to-date
swagger:response getMetricsOK
func NewGetMetricsOK ¶
func NewGetMetricsOK() *GetMetricsOK
NewGetMetricsOK creates GetMetricsOK with default headers values
func (*GetMetricsOK) SetPayload ¶
func (o *GetMetricsOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the get metrics o k response
func (*GetMetricsOK) WithPayload ¶
func (o *GetMetricsOK) WithPayload(payload io.ReadCloser) *GetMetricsOK
WithPayload adds the payload to the get metrics o k response
func (*GetMetricsOK) WriteResponse ¶
func (o *GetMetricsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetMetricsParams ¶
type GetMetricsParams struct { // HTTP Request Object HTTPRequest *http.Request /*Follow the log stream if true. Default false. In: query Default: false */ Follow *bool /*The id of the model. Required: true In: path */ ModelID string /*An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no metrics will be returned. In: query Default: "" */ SinceTime *string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-06-07" */ Version string }
GetMetricsParams contains all the bound params for the get metrics operation typically these are obtained from a http.Request
swagger:parameters getMetrics
func NewGetMetricsParams ¶
func NewGetMetricsParams() GetMetricsParams
NewGetMetricsParams creates a new GetMetricsParams object with the default values initialized.
func (*GetMetricsParams) BindRequest ¶
func (o *GetMetricsParams) 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 GetMetricsURL ¶
type GetMetricsURL struct { ModelID string Follow *bool SinceTime *string Version string // contains filtered or unexported fields }
GetMetricsURL generates an URL for the get metrics operation
func (*GetMetricsURL) Build ¶
func (o *GetMetricsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetMetricsURL) BuildFull ¶
func (o *GetMetricsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetMetricsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetMetricsURL) SetBasePath ¶
func (o *GetMetricsURL) 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 (*GetMetricsURL) String ¶
func (o *GetMetricsURL) String() string
String returns the string representation of the path with query string
func (*GetMetricsURL) StringFull ¶
func (o *GetMetricsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetMetricsURL) WithBasePath ¶
func (o *GetMetricsURL) WithBasePath(bp string) *GetMetricsURL
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 GetMetricsUnauthorized ¶
type GetMetricsUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
GetMetricsUnauthorized Unauthorized
swagger:response getMetricsUnauthorized
func NewGetMetricsUnauthorized ¶
func NewGetMetricsUnauthorized() *GetMetricsUnauthorized
NewGetMetricsUnauthorized creates GetMetricsUnauthorized with default headers values
func (*GetMetricsUnauthorized) SetPayload ¶
func (o *GetMetricsUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get metrics unauthorized response
func (*GetMetricsUnauthorized) WithPayload ¶
func (o *GetMetricsUnauthorized) WithPayload(payload *restmodels.Error) *GetMetricsUnauthorized
WithPayload adds the payload to the get metrics unauthorized response
func (*GetMetricsUnauthorized) WriteResponse ¶
func (o *GetMetricsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetModel ¶
type GetModel struct { Context *middleware.Context Handler GetModelHandler }
GetModel swagger:route GET /v1/models/{model_id} Models getModel
Get detailed information about a model.
Get detailed information about a model such as training status.
func NewGetModel ¶
func NewGetModel(ctx *middleware.Context, handler GetModelHandler) *GetModel
NewGetModel creates a new http.Handler for the get model operation
type GetModelHandler ¶
type GetModelHandler interface {
Handle(GetModelParams, interface{}) middleware.Responder
}
GetModelHandler interface for that can handle valid get model params
type GetModelHandlerFunc ¶
type GetModelHandlerFunc func(GetModelParams, interface{}) middleware.Responder
GetModelHandlerFunc turns a function with the right signature into a get model handler
func (GetModelHandlerFunc) Handle ¶
func (fn GetModelHandlerFunc) Handle(params GetModelParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetModelNotFound ¶
type GetModelNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
GetModelNotFound Model with the given ID not found.
swagger:response getModelNotFound
func NewGetModelNotFound ¶
func NewGetModelNotFound() *GetModelNotFound
NewGetModelNotFound creates GetModelNotFound with default headers values
func (*GetModelNotFound) SetPayload ¶
func (o *GetModelNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get model not found response
func (*GetModelNotFound) WithPayload ¶
func (o *GetModelNotFound) WithPayload(payload *restmodels.Error) *GetModelNotFound
WithPayload adds the payload to the get model not found response
func (*GetModelNotFound) WriteResponse ¶
func (o *GetModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetModelOK ¶
type GetModelOK struct { /* In: Body */ Payload *restmodels.Model `json:"body,omitempty"` }
GetModelOK Detailed model and training information.
swagger:response getModelOK
func NewGetModelOK ¶
func NewGetModelOK() *GetModelOK
NewGetModelOK creates GetModelOK with default headers values
func (*GetModelOK) SetPayload ¶
func (o *GetModelOK) SetPayload(payload *restmodels.Model)
SetPayload sets the payload to the get model o k response
func (*GetModelOK) WithPayload ¶
func (o *GetModelOK) WithPayload(payload *restmodels.Model) *GetModelOK
WithPayload adds the payload to the get model o k response
func (*GetModelOK) WriteResponse ¶
func (o *GetModelOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetModelParams ¶
type GetModelParams struct { // HTTP Request Object HTTPRequest *http.Request /*The id of the model. Required: true In: path */ ModelID string /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
GetModelParams contains all the bound params for the get model operation typically these are obtained from a http.Request
swagger:parameters getModel
func NewGetModelParams ¶
func NewGetModelParams() GetModelParams
NewGetModelParams creates a new GetModelParams object with the default values initialized.
func (*GetModelParams) BindRequest ¶
func (o *GetModelParams) 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 GetModelURL ¶
GetModelURL generates an URL for the get model operation
func (*GetModelURL) Build ¶
func (o *GetModelURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetModelURL) BuildFull ¶
func (o *GetModelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetModelURL) SetBasePath ¶
func (o *GetModelURL) 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 (*GetModelURL) String ¶
func (o *GetModelURL) String() string
String returns the string representation of the path with query string
func (*GetModelURL) StringFull ¶
func (o *GetModelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetModelURL) WithBasePath ¶
func (o *GetModelURL) WithBasePath(bp string) *GetModelURL
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 GetModelUnauthorized ¶
type GetModelUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
GetModelUnauthorized Unauthorized
swagger:response getModelUnauthorized
func NewGetModelUnauthorized ¶
func NewGetModelUnauthorized() *GetModelUnauthorized
NewGetModelUnauthorized creates GetModelUnauthorized with default headers values
func (*GetModelUnauthorized) SetPayload ¶
func (o *GetModelUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the get model unauthorized response
func (*GetModelUnauthorized) WithPayload ¶
func (o *GetModelUnauthorized) WithPayload(payload *restmodels.Error) *GetModelUnauthorized
WithPayload adds the payload to the get model unauthorized response
func (*GetModelUnauthorized) WriteResponse ¶
func (o *GetModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListModels ¶
type ListModels struct { Context *middleware.Context Handler ListModelsHandler }
ListModels swagger:route GET /v1/models Models listModels
Get a list of available deep learning models.
Get a list of all available deep learning models and their configuration that a user can see.
func NewListModels ¶
func NewListModels(ctx *middleware.Context, handler ListModelsHandler) *ListModels
NewListModels creates a new http.Handler for the list models operation
func (*ListModels) ServeHTTP ¶
func (o *ListModels) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListModelsHandler ¶
type ListModelsHandler interface {
Handle(ListModelsParams, interface{}) middleware.Responder
}
ListModelsHandler interface for that can handle valid list models params
type ListModelsHandlerFunc ¶
type ListModelsHandlerFunc func(ListModelsParams, interface{}) middleware.Responder
ListModelsHandlerFunc turns a function with the right signature into a list models handler
func (ListModelsHandlerFunc) Handle ¶
func (fn ListModelsHandlerFunc) Handle(params ListModelsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListModelsOK ¶
type ListModelsOK struct { /* In: Body */ Payload *restmodels.ModelList `json:"body,omitempty"` }
ListModelsOK List of deep learning models.
swagger:response listModelsOK
func NewListModelsOK ¶
func NewListModelsOK() *ListModelsOK
NewListModelsOK creates ListModelsOK with default headers values
func (*ListModelsOK) SetPayload ¶
func (o *ListModelsOK) SetPayload(payload *restmodels.ModelList)
SetPayload sets the payload to the list models o k response
func (*ListModelsOK) WithPayload ¶
func (o *ListModelsOK) WithPayload(payload *restmodels.ModelList) *ListModelsOK
WithPayload adds the payload to the list models o k response
func (*ListModelsOK) WriteResponse ¶
func (o *ListModelsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListModelsParams ¶
type ListModelsParams struct { // HTTP Request Object HTTPRequest *http.Request /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
ListModelsParams contains all the bound params for the list models operation typically these are obtained from a http.Request
swagger:parameters listModels
func NewListModelsParams ¶
func NewListModelsParams() ListModelsParams
NewListModelsParams creates a new ListModelsParams object with the default values initialized.
func (*ListModelsParams) BindRequest ¶
func (o *ListModelsParams) 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 ListModelsURL ¶
type ListModelsURL struct { Version string // contains filtered or unexported fields }
ListModelsURL generates an URL for the list models operation
func (*ListModelsURL) Build ¶
func (o *ListModelsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListModelsURL) BuildFull ¶
func (o *ListModelsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListModelsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListModelsURL) SetBasePath ¶
func (o *ListModelsURL) 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 (*ListModelsURL) String ¶
func (o *ListModelsURL) String() string
String returns the string representation of the path with query string
func (*ListModelsURL) StringFull ¶
func (o *ListModelsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListModelsURL) WithBasePath ¶
func (o *ListModelsURL) WithBasePath(bp string) *ListModelsURL
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 ListModelsUnauthorized ¶
type ListModelsUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
ListModelsUnauthorized Unauthorized
swagger:response listModelsUnauthorized
func NewListModelsUnauthorized ¶
func NewListModelsUnauthorized() *ListModelsUnauthorized
NewListModelsUnauthorized creates ListModelsUnauthorized with default headers values
func (*ListModelsUnauthorized) SetPayload ¶
func (o *ListModelsUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the list models unauthorized response
func (*ListModelsUnauthorized) WithPayload ¶
func (o *ListModelsUnauthorized) WithPayload(payload *restmodels.Error) *ListModelsUnauthorized
WithPayload adds the payload to the list models unauthorized response
func (*ListModelsUnauthorized) WriteResponse ¶
func (o *ListModelsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchModel ¶
type PatchModel struct { Context *middleware.Context Handler PatchModelHandler }
PatchModel swagger:route PATCH /v1/models/{model_id} Models patchModel
Changes the status of the training progress.
Changes the status of the training progress to the given `status` value (currently `halt` only). Halt means the training will be stopped and the last snapshot will be stored and can be retrieved.
func NewPatchModel ¶
func NewPatchModel(ctx *middleware.Context, handler PatchModelHandler) *PatchModel
NewPatchModel creates a new http.Handler for the patch model operation
func (*PatchModel) ServeHTTP ¶
func (o *PatchModel) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PatchModelAccepted ¶
type PatchModelAccepted struct { /* In: Body */ Payload *restmodels.BasicModel `json:"body,omitempty"` }
PatchModelAccepted Training successfully halted.
swagger:response patchModelAccepted
func NewPatchModelAccepted ¶
func NewPatchModelAccepted() *PatchModelAccepted
NewPatchModelAccepted creates PatchModelAccepted with default headers values
func (*PatchModelAccepted) SetPayload ¶
func (o *PatchModelAccepted) SetPayload(payload *restmodels.BasicModel)
SetPayload sets the payload to the patch model accepted response
func (*PatchModelAccepted) WithPayload ¶
func (o *PatchModelAccepted) WithPayload(payload *restmodels.BasicModel) *PatchModelAccepted
WithPayload adds the payload to the patch model accepted response
func (*PatchModelAccepted) WriteResponse ¶
func (o *PatchModelAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchModelBadRequest ¶
type PatchModelBadRequest struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
PatchModelBadRequest Incorrect status specified.
swagger:response patchModelBadRequest
func NewPatchModelBadRequest ¶
func NewPatchModelBadRequest() *PatchModelBadRequest
NewPatchModelBadRequest creates PatchModelBadRequest with default headers values
func (*PatchModelBadRequest) SetPayload ¶
func (o *PatchModelBadRequest) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the patch model bad request response
func (*PatchModelBadRequest) WithPayload ¶
func (o *PatchModelBadRequest) WithPayload(payload *restmodels.Error) *PatchModelBadRequest
WithPayload adds the payload to the patch model bad request response
func (*PatchModelBadRequest) WriteResponse ¶
func (o *PatchModelBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchModelHandler ¶
type PatchModelHandler interface {
Handle(PatchModelParams, interface{}) middleware.Responder
}
PatchModelHandler interface for that can handle valid patch model params
type PatchModelHandlerFunc ¶
type PatchModelHandlerFunc func(PatchModelParams, interface{}) middleware.Responder
PatchModelHandlerFunc turns a function with the right signature into a patch model handler
func (PatchModelHandlerFunc) Handle ¶
func (fn PatchModelHandlerFunc) Handle(params PatchModelParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PatchModelNotFound ¶
type PatchModelNotFound struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
PatchModelNotFound Model with the given ID not found.
swagger:response patchModelNotFound
func NewPatchModelNotFound ¶
func NewPatchModelNotFound() *PatchModelNotFound
NewPatchModelNotFound creates PatchModelNotFound with default headers values
func (*PatchModelNotFound) SetPayload ¶
func (o *PatchModelNotFound) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the patch model not found response
func (*PatchModelNotFound) WithPayload ¶
func (o *PatchModelNotFound) WithPayload(payload *restmodels.Error) *PatchModelNotFound
WithPayload adds the payload to the patch model not found response
func (*PatchModelNotFound) WriteResponse ¶
func (o *PatchModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchModelParams ¶
type PatchModelParams struct { // HTTP Request Object HTTPRequest *http.Request /*The id of the model. Required: true In: path */ ModelID string /*Currently accepts "halt" as the only valid value. Required: true In: body */ Payload *restmodels.TrainingUpdate /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
PatchModelParams contains all the bound params for the patch model operation typically these are obtained from a http.Request
swagger:parameters patchModel
func NewPatchModelParams ¶
func NewPatchModelParams() PatchModelParams
NewPatchModelParams creates a new PatchModelParams object with the default values initialized.
func (*PatchModelParams) BindRequest ¶
func (o *PatchModelParams) 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 PatchModelURL ¶
type PatchModelURL struct { ModelID string Version string // contains filtered or unexported fields }
PatchModelURL generates an URL for the patch model operation
func (*PatchModelURL) Build ¶
func (o *PatchModelURL) Build() (*url.URL, error)
Build a url path and query string
func (*PatchModelURL) BuildFull ¶
func (o *PatchModelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PatchModelURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PatchModelURL) SetBasePath ¶
func (o *PatchModelURL) 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 (*PatchModelURL) String ¶
func (o *PatchModelURL) String() string
String returns the string representation of the path with query string
func (*PatchModelURL) StringFull ¶
func (o *PatchModelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PatchModelURL) WithBasePath ¶
func (o *PatchModelURL) WithBasePath(bp string) *PatchModelURL
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 PatchModelUnauthorized ¶
type PatchModelUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
PatchModelUnauthorized Unauthorized
swagger:response patchModelUnauthorized
func NewPatchModelUnauthorized ¶
func NewPatchModelUnauthorized() *PatchModelUnauthorized
NewPatchModelUnauthorized creates PatchModelUnauthorized with default headers values
func (*PatchModelUnauthorized) SetPayload ¶
func (o *PatchModelUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the patch model unauthorized response
func (*PatchModelUnauthorized) WithPayload ¶
func (o *PatchModelUnauthorized) WithPayload(payload *restmodels.Error) *PatchModelUnauthorized
WithPayload adds the payload to the patch model unauthorized response
func (*PatchModelUnauthorized) WriteResponse ¶
func (o *PatchModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostModel ¶
type PostModel struct { Context *middleware.Context Handler PostModelHandler }
PostModel swagger:route POST /v1/models Models postModel
Trains a new deep learning model.
Trains a deep neural network written in a DL framework supported by the DLaaS platform (such as Caffe, Tensorflow, etc.). The model code has to be uploaded and configuration parameters have to be provided.
func NewPostModel ¶
func NewPostModel(ctx *middleware.Context, handler PostModelHandler) *PostModel
NewPostModel creates a new http.Handler for the post model operation
type PostModelBadRequest ¶
type PostModelBadRequest struct { /* In: Body */ Payload *restmodels.Error `json:"body,omitempty"` }
PostModelBadRequest Error in the the model_definition or manifest.
swagger:response postModelBadRequest
func NewPostModelBadRequest ¶
func NewPostModelBadRequest() *PostModelBadRequest
NewPostModelBadRequest creates PostModelBadRequest with default headers values
func (*PostModelBadRequest) SetPayload ¶
func (o *PostModelBadRequest) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the post model bad request response
func (*PostModelBadRequest) WithPayload ¶
func (o *PostModelBadRequest) WithPayload(payload *restmodels.Error) *PostModelBadRequest
WithPayload adds the payload to the post model bad request response
func (*PostModelBadRequest) WriteResponse ¶
func (o *PostModelBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostModelCreated ¶
type PostModelCreated struct { /*Location header containing the model id. Required: true */ Location string `json:"Location"` /* In: Body */ Payload *restmodels.BasicNewModel `json:"body,omitempty"` }
PostModelCreated Deep learning model successfully accepted.
swagger:response postModelCreated
func NewPostModelCreated ¶
func NewPostModelCreated() *PostModelCreated
NewPostModelCreated creates PostModelCreated with default headers values
func (*PostModelCreated) SetLocation ¶
func (o *PostModelCreated) SetLocation(location string)
SetLocation sets the location to the post model created response
func (*PostModelCreated) SetPayload ¶
func (o *PostModelCreated) SetPayload(payload *restmodels.BasicNewModel)
SetPayload sets the payload to the post model created response
func (*PostModelCreated) WithLocation ¶
func (o *PostModelCreated) WithLocation(location string) *PostModelCreated
WithLocation adds the location to the post model created response
func (*PostModelCreated) WithPayload ¶
func (o *PostModelCreated) WithPayload(payload *restmodels.BasicNewModel) *PostModelCreated
WithPayload adds the payload to the post model created response
func (*PostModelCreated) WriteResponse ¶
func (o *PostModelCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostModelHandler ¶
type PostModelHandler interface {
Handle(PostModelParams, interface{}) middleware.Responder
}
PostModelHandler interface for that can handle valid post model params
type PostModelHandlerFunc ¶
type PostModelHandlerFunc func(PostModelParams, interface{}) middleware.Responder
PostModelHandlerFunc turns a function with the right signature into a post model handler
func (PostModelHandlerFunc) Handle ¶
func (fn PostModelHandlerFunc) Handle(params PostModelParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PostModelParams ¶
type PostModelParams struct { // HTTP Request Object HTTPRequest *http.Request /*The manifest providing configuration for the deep learning model, the training data and the training execution. Required: true In: formData */ Manifest runtime.File /*The deep learning model code as compressed archive (ZIP). In: formData */ ModelDefinition *runtime.File /*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. Required: true In: query Default: "2017-02-13" */ Version string }
PostModelParams contains all the bound params for the post model operation typically these are obtained from a http.Request
swagger:parameters postModel
func NewPostModelParams ¶
func NewPostModelParams() PostModelParams
NewPostModelParams creates a new PostModelParams object with the default values initialized.
func (*PostModelParams) BindRequest ¶
func (o *PostModelParams) 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 PostModelURL ¶
type PostModelURL struct { Version string // contains filtered or unexported fields }
PostModelURL generates an URL for the post model operation
func (*PostModelURL) Build ¶
func (o *PostModelURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostModelURL) BuildFull ¶
func (o *PostModelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostModelURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostModelURL) SetBasePath ¶
func (o *PostModelURL) 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 (*PostModelURL) String ¶
func (o *PostModelURL) String() string
String returns the string representation of the path with query string
func (*PostModelURL) StringFull ¶
func (o *PostModelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostModelURL) WithBasePath ¶
func (o *PostModelURL) WithBasePath(bp string) *PostModelURL
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 PostModelUnauthorized ¶
type PostModelUnauthorized struct { restmodels.Error `json:"body,omitempty"` }Payload *
PostModelUnauthorized Unauthorized
swagger:response postModelUnauthorized
func NewPostModelUnauthorized ¶
func NewPostModelUnauthorized() *PostModelUnauthorized
NewPostModelUnauthorized creates PostModelUnauthorized with default headers values
func (*PostModelUnauthorized) SetPayload ¶
func (o *PostModelUnauthorized) SetPayload(payload *restmodels.Error)
SetPayload sets the payload to the post model unauthorized response
func (*PostModelUnauthorized) WithPayload ¶
func (o *PostModelUnauthorized) WithPayload(payload *restmodels.Error) *PostModelUnauthorized
WithPayload adds the payload to the post model unauthorized response
func (*PostModelUnauthorized) WriteResponse ¶
func (o *PostModelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- delete_model.go
- delete_model_parameters.go
- delete_model_responses.go
- delete_model_urlbuilder.go
- download_model_definition.go
- download_model_definition_parameters.go
- download_model_definition_responses.go
- download_model_definition_urlbuilder.go
- download_trained_model.go
- download_trained_model_parameters.go
- download_trained_model_responses.go
- download_trained_model_urlbuilder.go
- get_logs.go
- get_logs_parameters.go
- get_logs_responses.go
- get_logs_urlbuilder.go
- get_metrics.go
- get_metrics_parameters.go
- get_metrics_responses.go
- get_metrics_urlbuilder.go
- get_model.go
- get_model_parameters.go
- get_model_responses.go
- get_model_urlbuilder.go
- list_models.go
- list_models_parameters.go
- list_models_responses.go
- list_models_urlbuilder.go
- patch_model.go
- patch_model_parameters.go
- patch_model_responses.go
- patch_model_urlbuilder.go
- post_model.go
- post_model_parameters.go
- post_model_responses.go
- post_model_urlbuilder.go