model

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CreateModelBadRequestCode int = 400

CreateModelBadRequestCode is the HTTP code returned for type CreateModelBadRequest

View Source
const CreateModelInternalServerErrorCode int = 500

CreateModelInternalServerErrorCode is the HTTP code returned for type CreateModelInternalServerError

View Source
const CreateModelNotFoundCode int = 404

CreateModelNotFoundCode is the HTTP code returned for type CreateModelNotFound

View Source
const CreateModelOKCode int = 200

CreateModelOKCode is the HTTP code returned for type CreateModelOK

View Source
const DeleteModelBadRequestCode int = 400

DeleteModelBadRequestCode is the HTTP code returned for type DeleteModelBadRequest

View Source
const DeleteModelInternalServerErrorCode int = 500

DeleteModelInternalServerErrorCode is the HTTP code returned for type DeleteModelInternalServerError

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 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 GetModelsBadRequestCode int = 400

GetModelsBadRequestCode is the HTTP code returned for type GetModelsBadRequest

View Source
const GetModelsInternalServerErrorCode int = 500

GetModelsInternalServerErrorCode is the HTTP code returned for type GetModelsInternalServerError

View Source
const GetModelsOKCode int = 200

GetModelsOKCode is the HTTP code returned for type GetModelsOK

View Source
const UpdateModelBadRequestCode int = 400

UpdateModelBadRequestCode is the HTTP code returned for type UpdateModelBadRequest

View Source
const UpdateModelInternalServerErrorCode int = 500

UpdateModelInternalServerErrorCode is the HTTP code returned for type UpdateModelInternalServerError

View Source
const UpdateModelNotFoundCode int = 404

UpdateModelNotFoundCode is the HTTP code returned for type UpdateModelNotFound

View Source
const UpdateModelOKCode int = 200

UpdateModelOKCode is the HTTP code returned for type UpdateModelOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateModel

type CreateModel struct {
	Context *middleware.Context
	Handler CreateModelHandler
}

CreateModel swagger:route POST /models Model createModel

create device's model

func NewCreateModel

func NewCreateModel(ctx *middleware.Context, handler CreateModelHandler) *CreateModel

NewCreateModel creates a new http.Handler for the create model operation

func (*CreateModel) ServeHTTP

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

type CreateModelBadRequest

type CreateModelBadRequest struct {
}

CreateModelBadRequest bad request

swagger:response createModelBadRequest

func NewCreateModelBadRequest

func NewCreateModelBadRequest() *CreateModelBadRequest

NewCreateModelBadRequest creates CreateModelBadRequest with default headers values

func (*CreateModelBadRequest) WriteResponse

func (o *CreateModelBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateModelHandler

type CreateModelHandler interface {
	Handle(CreateModelParams, *models.Principal) middleware.Responder
}

CreateModelHandler interface for that can handle valid create model params

type CreateModelHandlerFunc

type CreateModelHandlerFunc func(CreateModelParams, *models.Principal) middleware.Responder

CreateModelHandlerFunc turns a function with the right signature into a create model handler

func (CreateModelHandlerFunc) Handle

Handle executing the request and returning a response

type CreateModelInternalServerError

type CreateModelInternalServerError struct {
}

CreateModelInternalServerError server internal error

swagger:response createModelInternalServerError

func NewCreateModelInternalServerError

func NewCreateModelInternalServerError() *CreateModelInternalServerError

NewCreateModelInternalServerError creates CreateModelInternalServerError with default headers values

func (*CreateModelInternalServerError) WriteResponse

func (o *CreateModelInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateModelNotFound

type CreateModelNotFound struct {
}

CreateModelNotFound device not found

swagger:response createModelNotFound

func NewCreateModelNotFound

func NewCreateModelNotFound() *CreateModelNotFound

NewCreateModelNotFound creates CreateModelNotFound with default headers values

func (*CreateModelNotFound) WriteResponse

func (o *CreateModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateModelOK

type CreateModelOK struct {
}

CreateModelOK successful operation

swagger:response createModelOK

func NewCreateModelOK

func NewCreateModelOK() *CreateModelOK

NewCreateModelOK creates CreateModelOK with default headers values

func (*CreateModelOK) WriteResponse

func (o *CreateModelOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateModelParams

type CreateModelParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	DeviceModel *models.DeviceModel
}

CreateModelParams contains all the bound params for the create model operation typically these are obtained from a http.Request

swagger:parameters createModel

func NewCreateModelParams

func NewCreateModelParams() CreateModelParams

NewCreateModelParams creates a new CreateModelParams object no default values defined in spec.

func (*CreateModelParams) BindRequest

func (o *CreateModelParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateModelParams() beforehand.

type CreateModelURL

type CreateModelURL struct {
	// contains filtered or unexported fields
}

CreateModelURL generates an URL for the create model operation

func (*CreateModelURL) Build

func (o *CreateModelURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateModelURL) BuildFull

func (o *CreateModelURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateModelURL) Must

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

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

func (*CreateModelURL) SetBasePath

func (o *CreateModelURL) 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 (*CreateModelURL) String

func (o *CreateModelURL) String() string

String returns the string representation of the path with query string

func (*CreateModelURL) StringFull

func (o *CreateModelURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateModelURL) WithBasePath

func (o *CreateModelURL) WithBasePath(bp string) *CreateModelURL

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 DeleteModel

type DeleteModel struct {
	Context *middleware.Context
	Handler DeleteModelHandler
}

DeleteModel swagger:route DELETE /models/{modelId} Model deleteModel

delete device's model

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 DeleteModelBadRequest

type DeleteModelBadRequest struct {
}

DeleteModelBadRequest bad request

swagger:response deleteModelBadRequest

func NewDeleteModelBadRequest

func NewDeleteModelBadRequest() *DeleteModelBadRequest

NewDeleteModelBadRequest creates DeleteModelBadRequest with default headers values

func (*DeleteModelBadRequest) WriteResponse

func (o *DeleteModelBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteModelHandler

type DeleteModelHandler interface {
	Handle(DeleteModelParams, *models.Principal) middleware.Responder
}

DeleteModelHandler interface for that can handle valid delete model params

type DeleteModelHandlerFunc

type DeleteModelHandlerFunc func(DeleteModelParams, *models.Principal) middleware.Responder

DeleteModelHandlerFunc turns a function with the right signature into a delete model handler

func (DeleteModelHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteModelInternalServerError

type DeleteModelInternalServerError struct {
}

DeleteModelInternalServerError server internal error

swagger:response deleteModelInternalServerError

func NewDeleteModelInternalServerError

func NewDeleteModelInternalServerError() *DeleteModelInternalServerError

NewDeleteModelInternalServerError creates DeleteModelInternalServerError with default headers values

func (*DeleteModelInternalServerError) WriteResponse

func (o *DeleteModelInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteModelNotFound

type DeleteModelNotFound struct {
}

DeleteModelNotFound model not found

swagger:response deleteModelNotFound

func NewDeleteModelNotFound

func NewDeleteModelNotFound() *DeleteModelNotFound

NewDeleteModelNotFound creates DeleteModelNotFound with default headers values

func (*DeleteModelNotFound) WriteResponse

func (o *DeleteModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteModelOK

type DeleteModelOK struct {
}

DeleteModelOK successful operation

swagger:response deleteModelOK

func NewDeleteModelOK

func NewDeleteModelOK() *DeleteModelOK

NewDeleteModelOK creates DeleteModelOK with default headers values

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 `json:"-"`

	/*device model identifier
	  Required: true
	  In: path
	*/
	ModelID 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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewDeleteModelParams() beforehand.

type DeleteModelURL

type DeleteModelURL struct {
	ModelID 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 GetModel

type GetModel struct {
	Context *middleware.Context
	Handler GetModelHandler
}

GetModel swagger:route GET /models/{modelId} Model getModel

get specified model

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, *models.Principal) middleware.Responder
}

GetModelHandler interface for that can handle valid get model params

type GetModelHandlerFunc

type GetModelHandlerFunc func(GetModelParams, *models.Principal) middleware.Responder

GetModelHandlerFunc turns a function with the right signature into a get model handler

func (GetModelHandlerFunc) Handle

Handle executing the request and returning a response

type GetModelNotFound

type GetModelNotFound struct {
}

GetModelNotFound model not found

swagger:response getModelNotFound

func NewGetModelNotFound

func NewGetModelNotFound() *GetModelNotFound

NewGetModelNotFound creates GetModelNotFound with default headers values

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 *models.DeviceModel `json:"body,omitempty"`
}

GetModelOK successfully operation

swagger:response getModelOK

func NewGetModelOK

func NewGetModelOK() *GetModelOK

NewGetModelOK creates GetModelOK with default headers values

func (*GetModelOK) SetPayload

func (o *GetModelOK) SetPayload(payload *models.DeviceModel)

SetPayload sets the payload to the get model o k response

func (*GetModelOK) WithPayload

func (o *GetModelOK) WithPayload(payload *models.DeviceModel) *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 `json:"-"`

	/*device model id
	  Required: true
	  In: path
	*/
	ModelID 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 no default values defined in spec.

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.

To ensure default values, the struct must have been initialized with NewGetModelParams() beforehand.

type GetModelURL

type GetModelURL struct {
	ModelID 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 GetModels

type GetModels struct {
	Context *middleware.Context
	Handler GetModelsHandler
}

GetModels swagger:route GET /models Model getModels

get specified all models

func NewGetModels

func NewGetModels(ctx *middleware.Context, handler GetModelsHandler) *GetModels

NewGetModels creates a new http.Handler for the get models operation

func (*GetModels) ServeHTTP

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

type GetModelsBadRequest

type GetModelsBadRequest struct {
}

GetModelsBadRequest Bad request

swagger:response getModelsBadRequest

func NewGetModelsBadRequest

func NewGetModelsBadRequest() *GetModelsBadRequest

NewGetModelsBadRequest creates GetModelsBadRequest with default headers values

func (*GetModelsBadRequest) WriteResponse

func (o *GetModelsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetModelsHandler

type GetModelsHandler interface {
	Handle(GetModelsParams, *models.Principal) middleware.Responder
}

GetModelsHandler interface for that can handle valid get models params

type GetModelsHandlerFunc

type GetModelsHandlerFunc func(GetModelsParams, *models.Principal) middleware.Responder

GetModelsHandlerFunc turns a function with the right signature into a get models handler

func (GetModelsHandlerFunc) Handle

Handle executing the request and returning a response

type GetModelsInternalServerError

type GetModelsInternalServerError struct {
}

GetModelsInternalServerError Internal error

swagger:response getModelsInternalServerError

func NewGetModelsInternalServerError

func NewGetModelsInternalServerError() *GetModelsInternalServerError

NewGetModelsInternalServerError creates GetModelsInternalServerError with default headers values

func (*GetModelsInternalServerError) WriteResponse

func (o *GetModelsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetModelsOK

type GetModelsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.DeviceModel `json:"body,omitempty"`
}

GetModelsOK successfully operation

swagger:response getModelsOK

func NewGetModelsOK

func NewGetModelsOK() *GetModelsOK

NewGetModelsOK creates GetModelsOK with default headers values

func (*GetModelsOK) SetPayload

func (o *GetModelsOK) SetPayload(payload []*models.DeviceModel)

SetPayload sets the payload to the get models o k response

func (*GetModelsOK) WithPayload

func (o *GetModelsOK) WithPayload(payload []*models.DeviceModel) *GetModelsOK

WithPayload adds the payload to the get models o k response

func (*GetModelsOK) WriteResponse

func (o *GetModelsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetModelsParams

type GetModelsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Page number
	  In: query
	*/
	PageNumber *int64
	/*Number of persons returned
	  In: query
	*/
	PageSize *int64
	/*query object for.You can get query key from rulechain object. This is a json string. For example:
	  * 模糊检索name,description,category
	  {"name": "product"}
	  {"description": "abcd"}
	  {"category": "abcd"}
	  * 多条件模糊检索(and)
	  {"name": "product", "description": "abcd"}
	  * (deprecated) 模糊检索created_at,updated_at
	  {"created_at": "2018-10-11T09:13:26Z"}
	  {"updated_at": "2018-10-11T09:13:26Z"}
	  * 精确检索user_id,id,template_id,key,secret,status,data_format
	  {"user_id": "bevh8dkvr53g2n6u9l70"}
	  {"id": "bevh8dkvr53g2n6u9l70"}
	  {"template_id": "bevh8dkvr53g2n6u9l70"}
	  {"key": "bevh8dkvr53g2n6u9l70"}
	  {"secret": "bevh8dkvr53g2n6u9l70"}
	  {"data_format": "JSON"}
	  {"data_format": "XML"}

	  In: query
	*/
	Q *string
}

GetModelsParams contains all the bound params for the get models operation typically these are obtained from a http.Request

swagger:parameters getModels

func NewGetModelsParams

func NewGetModelsParams() GetModelsParams

NewGetModelsParams creates a new GetModelsParams object no default values defined in spec.

func (*GetModelsParams) BindRequest

func (o *GetModelsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetModelsParams() beforehand.

type GetModelsURL

type GetModelsURL struct {
	PageNumber *int64
	PageSize   *int64
	Q          *string
	// contains filtered or unexported fields
}

GetModelsURL generates an URL for the get models operation

func (*GetModelsURL) Build

func (o *GetModelsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetModelsURL) BuildFull

func (o *GetModelsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetModelsURL) Must

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

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

func (*GetModelsURL) SetBasePath

func (o *GetModelsURL) 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 (*GetModelsURL) String

func (o *GetModelsURL) String() string

String returns the string representation of the path with query string

func (*GetModelsURL) StringFull

func (o *GetModelsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetModelsURL) WithBasePath

func (o *GetModelsURL) WithBasePath(bp string) *GetModelsURL

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 UpdateModel

type UpdateModel struct {
	Context *middleware.Context
	Handler UpdateModelHandler
}

UpdateModel swagger:route PUT /models Model updateModel

update device's model

func NewUpdateModel

func NewUpdateModel(ctx *middleware.Context, handler UpdateModelHandler) *UpdateModel

NewUpdateModel creates a new http.Handler for the update model operation

func (*UpdateModel) ServeHTTP

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

type UpdateModelBadRequest

type UpdateModelBadRequest struct {
}

UpdateModelBadRequest bad request

swagger:response updateModelBadRequest

func NewUpdateModelBadRequest

func NewUpdateModelBadRequest() *UpdateModelBadRequest

NewUpdateModelBadRequest creates UpdateModelBadRequest with default headers values

func (*UpdateModelBadRequest) WriteResponse

func (o *UpdateModelBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateModelHandler

type UpdateModelHandler interface {
	Handle(UpdateModelParams, *models.Principal) middleware.Responder
}

UpdateModelHandler interface for that can handle valid update model params

type UpdateModelHandlerFunc

type UpdateModelHandlerFunc func(UpdateModelParams, *models.Principal) middleware.Responder

UpdateModelHandlerFunc turns a function with the right signature into a update model handler

func (UpdateModelHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateModelInternalServerError

type UpdateModelInternalServerError struct {
}

UpdateModelInternalServerError server internal error

swagger:response updateModelInternalServerError

func NewUpdateModelInternalServerError

func NewUpdateModelInternalServerError() *UpdateModelInternalServerError

NewUpdateModelInternalServerError creates UpdateModelInternalServerError with default headers values

func (*UpdateModelInternalServerError) WriteResponse

func (o *UpdateModelInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateModelNotFound

type UpdateModelNotFound struct {
}

UpdateModelNotFound device not found

swagger:response updateModelNotFound

func NewUpdateModelNotFound

func NewUpdateModelNotFound() *UpdateModelNotFound

NewUpdateModelNotFound creates UpdateModelNotFound with default headers values

func (*UpdateModelNotFound) WriteResponse

func (o *UpdateModelNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateModelOK

type UpdateModelOK struct {
}

UpdateModelOK successful operation

swagger:response updateModelOK

func NewUpdateModelOK

func NewUpdateModelOK() *UpdateModelOK

NewUpdateModelOK creates UpdateModelOK with default headers values

func (*UpdateModelOK) WriteResponse

func (o *UpdateModelOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateModelParams

type UpdateModelParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	DeviceModel *models.DeviceModel
}

UpdateModelParams contains all the bound params for the update model operation typically these are obtained from a http.Request

swagger:parameters updateModel

func NewUpdateModelParams

func NewUpdateModelParams() UpdateModelParams

NewUpdateModelParams creates a new UpdateModelParams object no default values defined in spec.

func (*UpdateModelParams) BindRequest

func (o *UpdateModelParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateModelParams() beforehand.

type UpdateModelURL

type UpdateModelURL struct {
	// contains filtered or unexported fields
}

UpdateModelURL generates an URL for the update model operation

func (*UpdateModelURL) Build

func (o *UpdateModelURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateModelURL) BuildFull

func (o *UpdateModelURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateModelURL) Must

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

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

func (*UpdateModelURL) SetBasePath

func (o *UpdateModelURL) 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 (*UpdateModelURL) String

func (o *UpdateModelURL) String() string

String returns the string representation of the path with query string

func (*UpdateModelURL) StringFull

func (o *UpdateModelURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateModelURL) WithBasePath

func (o *UpdateModelURL) WithBasePath(bp string) *UpdateModelURL

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

Jump to

Keyboard shortcuts

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