models

package
v0.1.1-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2018 License: Apache-2.0, CC-BY-4.0, MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const DeleteModelNotFoundCode int = 404

DeleteModelNotFoundCode is the HTTP code returned for type DeleteModelNotFound

View Source
const DeleteModelOKCode int = 200

DeleteModelOKCode is the HTTP code returned for type DeleteModelOK

View Source
const DeleteModelUnauthorizedCode int = 401

DeleteModelUnauthorizedCode is the HTTP code returned for type DeleteModelUnauthorized

View Source
const DownloadModelDefinitionNotFoundCode int = 404

DownloadModelDefinitionNotFoundCode is the HTTP code returned for type DownloadModelDefinitionNotFound

View Source
const DownloadModelDefinitionOKCode int = 200

DownloadModelDefinitionOKCode is the HTTP code returned for type DownloadModelDefinitionOK

View Source
const DownloadModelDefinitionUnauthorizedCode int = 401

DownloadModelDefinitionUnauthorizedCode is the HTTP code returned for type DownloadModelDefinitionUnauthorized

View Source
const DownloadTrainedModelGoneCode int = 410

DownloadTrainedModelGoneCode is the HTTP code returned for type DownloadTrainedModelGone

View Source
const DownloadTrainedModelNotFoundCode int = 404

DownloadTrainedModelNotFoundCode is the HTTP code returned for type DownloadTrainedModelNotFound

View Source
const DownloadTrainedModelOKCode int = 200

DownloadTrainedModelOKCode is the HTTP code returned for type DownloadTrainedModelOK

View Source
const DownloadTrainedModelUnauthorizedCode int = 401

DownloadTrainedModelUnauthorizedCode is the HTTP code returned for type DownloadTrainedModelUnauthorized

View Source
const GetLogsNotFoundCode int = 404

GetLogsNotFoundCode is the HTTP code returned for type GetLogsNotFound

View Source
const GetLogsOKCode int = 200

GetLogsOKCode is the HTTP code returned for type GetLogsOK

View Source
const GetLogsUnauthorizedCode int = 401

GetLogsUnauthorizedCode is the HTTP code returned for type GetLogsUnauthorized

View Source
const GetMetricsNotFoundCode int = 404

GetMetricsNotFoundCode is the HTTP code returned for type GetMetricsNotFound

View Source
const GetMetricsOKCode int = 200

GetMetricsOKCode is the HTTP code returned for type GetMetricsOK

View Source
const GetMetricsUnauthorizedCode int = 401

GetMetricsUnauthorizedCode is the HTTP code returned for type GetMetricsUnauthorized

View Source
const GetModelNotFoundCode int = 404

GetModelNotFoundCode is the HTTP code returned for type GetModelNotFound

View Source
const GetModelOKCode int = 200

GetModelOKCode is the HTTP code returned for type GetModelOK

View Source
const GetModelUnauthorizedCode int = 401

GetModelUnauthorizedCode is the HTTP code returned for type GetModelUnauthorized

View Source
const ListModelsOKCode int = 200

ListModelsOKCode is the HTTP code returned for type ListModelsOK

View Source
const ListModelsUnauthorizedCode int = 401

ListModelsUnauthorizedCode is the HTTP code returned for type ListModelsUnauthorized

View Source
const PatchModelAcceptedCode int = 202

PatchModelAcceptedCode is the HTTP code returned for type PatchModelAccepted

View Source
const PatchModelBadRequestCode int = 400

PatchModelBadRequestCode is the HTTP code returned for type PatchModelBadRequest

View Source
const PatchModelNotFoundCode int = 404

PatchModelNotFoundCode is the HTTP code returned for type PatchModelNotFound

View Source
const PatchModelUnauthorizedCode int = 401

PatchModelUnauthorizedCode is the HTTP code returned for type PatchModelUnauthorized

View Source
const PostModelBadRequestCode int = 400

PostModelBadRequestCode is the HTTP code returned for type PostModelBadRequest

View Source
const PostModelCreatedCode int = 201

PostModelCreatedCode is the HTTP code returned for type PostModelCreated

View Source
const PostModelUnauthorizedCode int = 401

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

func (o *DeleteModelURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

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

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

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

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

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

func (o *DownloadModelDefinitionURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

WithPayload adds the payload to the download model definition unauthorized response

func (*DownloadModelDefinitionUnauthorized) WriteResponse

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

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

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

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

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

func (o *DownloadTrainedModelURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

func (*GetLogs) ServeHTTP

func (o *GetLogs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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) Must

func (o *GetLogsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

func (o *GetMetricsURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

func (*GetModel) ServeHTTP

func (o *GetModel) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

type GetModelURL struct {
	ModelID string

	Version string
	// contains filtered or unexported fields
}

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) Must

func (o *GetModelURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

func (o *ListModelsURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

func (o *PatchModelURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

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

func (*PostModel) ServeHTTP

func (o *PostModel) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

func (o *PostModelURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL