Documentation
¶
Index ¶
- Constants
- type AddProjectDevice
- type AddProjectDeviceBadRequest
- type AddProjectDeviceHandler
- type AddProjectDeviceHandlerFunc
- type AddProjectDeviceInternalServerError
- type AddProjectDeviceNotFound
- type AddProjectDeviceOK
- type AddProjectDeviceParams
- type AddProjectDeviceURL
- func (o *AddProjectDeviceURL) Build() (*url.URL, error)
- func (o *AddProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddProjectDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *AddProjectDeviceURL) SetBasePath(bp string)
- func (o *AddProjectDeviceURL) String() string
- func (o *AddProjectDeviceURL) StringFull(scheme, host string) string
- func (o *AddProjectDeviceURL) WithBasePath(bp string) *AddProjectDeviceURL
- type CreateProject
- type CreateProjectBadRequest
- type CreateProjectHandler
- type CreateProjectHandlerFunc
- type CreateProjectInternalServerError
- type CreateProjectOK
- type CreateProjectParams
- type CreateProjectURL
- func (o *CreateProjectURL) Build() (*url.URL, error)
- func (o *CreateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateProjectURL) SetBasePath(bp string)
- func (o *CreateProjectURL) String() string
- func (o *CreateProjectURL) StringFull(scheme, host string) string
- func (o *CreateProjectURL) WithBasePath(bp string) *CreateProjectURL
- type DeleteProject
- type DeleteProjectDevice
- type DeleteProjectDeviceBadRequest
- type DeleteProjectDeviceHandler
- type DeleteProjectDeviceHandlerFunc
- type DeleteProjectDeviceInternalServerError
- type DeleteProjectDeviceOK
- type DeleteProjectDeviceParams
- type DeleteProjectDeviceURL
- func (o *DeleteProjectDeviceURL) Build() (*url.URL, error)
- func (o *DeleteProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteProjectDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteProjectDeviceURL) SetBasePath(bp string)
- func (o *DeleteProjectDeviceURL) String() string
- func (o *DeleteProjectDeviceURL) StringFull(scheme, host string) string
- func (o *DeleteProjectDeviceURL) WithBasePath(bp string) *DeleteProjectDeviceURL
- type DeleteProjectHandler
- type DeleteProjectHandlerFunc
- type DeleteProjectInternalServerError
- type DeleteProjectNotFound
- type DeleteProjectOK
- type DeleteProjectParams
- type DeleteProjectURL
- func (o *DeleteProjectURL) Build() (*url.URL, error)
- func (o *DeleteProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteProjectURL) SetBasePath(bp string)
- func (o *DeleteProjectURL) String() string
- func (o *DeleteProjectURL) StringFull(scheme, host string) string
- func (o *DeleteProjectURL) WithBasePath(bp string) *DeleteProjectURL
- type GetProjectDevice
- type GetProjectDeviceHandler
- type GetProjectDeviceHandlerFunc
- type GetProjectDeviceNotFound
- type GetProjectDeviceOK
- type GetProjectDeviceParams
- type GetProjectDeviceURL
- func (o *GetProjectDeviceURL) Build() (*url.URL, error)
- func (o *GetProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectDeviceURL) SetBasePath(bp string)
- func (o *GetProjectDeviceURL) String() string
- func (o *GetProjectDeviceURL) StringFull(scheme, host string) string
- func (o *GetProjectDeviceURL) WithBasePath(bp string) *GetProjectDeviceURL
- type GetProjectDevices
- type GetProjectDevicesHandler
- type GetProjectDevicesHandlerFunc
- type GetProjectDevicesNotFound
- type GetProjectDevicesOK
- type GetProjectDevicesParams
- type GetProjectDevicesURL
- func (o *GetProjectDevicesURL) Build() (*url.URL, error)
- func (o *GetProjectDevicesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectDevicesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectDevicesURL) SetBasePath(bp string)
- func (o *GetProjectDevicesURL) String() string
- func (o *GetProjectDevicesURL) StringFull(scheme, host string) string
- func (o *GetProjectDevicesURL) WithBasePath(bp string) *GetProjectDevicesURL
- type GetProjectSummary
- type GetProjectSummaryHandler
- type GetProjectSummaryHandlerFunc
- type GetProjectSummaryNotFound
- type GetProjectSummaryOK
- type GetProjectSummaryParams
- type GetProjectSummaryURL
- func (o *GetProjectSummaryURL) Build() (*url.URL, error)
- func (o *GetProjectSummaryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectSummaryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectSummaryURL) SetBasePath(bp string)
- func (o *GetProjectSummaryURL) String() string
- func (o *GetProjectSummaryURL) StringFull(scheme, host string) string
- func (o *GetProjectSummaryURL) WithBasePath(bp string) *GetProjectSummaryURL
- type GetProjects
- type GetProjectsBadRequest
- type GetProjectsHandler
- type GetProjectsHandlerFunc
- type GetProjectsInternalServerError
- type GetProjectsOK
- type GetProjectsParams
- type GetProjectsProjectID
- type GetProjectsProjectIDHandler
- type GetProjectsProjectIDHandlerFunc
- type GetProjectsProjectIDNotFound
- type GetProjectsProjectIDOK
- type GetProjectsProjectIDParams
- type GetProjectsProjectIDURL
- func (o *GetProjectsProjectIDURL) Build() (*url.URL, error)
- func (o *GetProjectsProjectIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectsProjectIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectsProjectIDURL) SetBasePath(bp string)
- func (o *GetProjectsProjectIDURL) String() string
- func (o *GetProjectsProjectIDURL) StringFull(scheme, host string) string
- func (o *GetProjectsProjectIDURL) WithBasePath(bp string) *GetProjectsProjectIDURL
- type GetProjectsURL
- func (o *GetProjectsURL) Build() (*url.URL, error)
- func (o *GetProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectsURL) SetBasePath(bp string)
- func (o *GetProjectsURL) String() string
- func (o *GetProjectsURL) StringFull(scheme, host string) string
- func (o *GetProjectsURL) WithBasePath(bp string) *GetProjectsURL
- type UpdateProject
- type UpdateProjectDevice
- type UpdateProjectDeviceBadRequest
- type UpdateProjectDeviceHandler
- type UpdateProjectDeviceHandlerFunc
- type UpdateProjectDeviceInternalServerError
- type UpdateProjectDeviceOK
- type UpdateProjectDeviceParams
- type UpdateProjectDeviceStatus
- type UpdateProjectDeviceStatusBadRequest
- type UpdateProjectDeviceStatusHandler
- type UpdateProjectDeviceStatusHandlerFunc
- type UpdateProjectDeviceStatusInternalServerError
- type UpdateProjectDeviceStatusOK
- type UpdateProjectDeviceStatusParams
- type UpdateProjectDeviceStatusURL
- func (o *UpdateProjectDeviceStatusURL) Build() (*url.URL, error)
- func (o *UpdateProjectDeviceStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateProjectDeviceStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateProjectDeviceStatusURL) SetBasePath(bp string)
- func (o *UpdateProjectDeviceStatusURL) String() string
- func (o *UpdateProjectDeviceStatusURL) StringFull(scheme, host string) string
- func (o *UpdateProjectDeviceStatusURL) WithBasePath(bp string) *UpdateProjectDeviceStatusURL
- type UpdateProjectDeviceURL
- func (o *UpdateProjectDeviceURL) Build() (*url.URL, error)
- func (o *UpdateProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateProjectDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateProjectDeviceURL) SetBasePath(bp string)
- func (o *UpdateProjectDeviceURL) String() string
- func (o *UpdateProjectDeviceURL) StringFull(scheme, host string) string
- func (o *UpdateProjectDeviceURL) WithBasePath(bp string) *UpdateProjectDeviceURL
- type UpdateProjectHandler
- type UpdateProjectHandlerFunc
- type UpdateProjectInternalServerError
- type UpdateProjectNotFound
- type UpdateProjectOK
- type UpdateProjectParams
- type UpdateProjectURL
- func (o *UpdateProjectURL) Build() (*url.URL, error)
- func (o *UpdateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateProjectURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateProjectURL) SetBasePath(bp string)
- func (o *UpdateProjectURL) String() string
- func (o *UpdateProjectURL) StringFull(scheme, host string) string
- func (o *UpdateProjectURL) WithBasePath(bp string) *UpdateProjectURL
Constants ¶
const AddProjectDeviceBadRequestCode int = 400
AddProjectDeviceBadRequestCode is the HTTP code returned for type AddProjectDeviceBadRequest
const AddProjectDeviceInternalServerErrorCode int = 500
AddProjectDeviceInternalServerErrorCode is the HTTP code returned for type AddProjectDeviceInternalServerError
const AddProjectDeviceNotFoundCode int = 404
AddProjectDeviceNotFoundCode is the HTTP code returned for type AddProjectDeviceNotFound
const AddProjectDeviceOKCode int = 200
AddProjectDeviceOKCode is the HTTP code returned for type AddProjectDeviceOK
const CreateProjectBadRequestCode int = 400
CreateProjectBadRequestCode is the HTTP code returned for type CreateProjectBadRequest
const CreateProjectInternalServerErrorCode int = 500
CreateProjectInternalServerErrorCode is the HTTP code returned for type CreateProjectInternalServerError
const CreateProjectOKCode int = 200
CreateProjectOKCode is the HTTP code returned for type CreateProjectOK
const DeleteProjectDeviceBadRequestCode int = 400
DeleteProjectDeviceBadRequestCode is the HTTP code returned for type DeleteProjectDeviceBadRequest
const DeleteProjectDeviceInternalServerErrorCode int = 500
DeleteProjectDeviceInternalServerErrorCode is the HTTP code returned for type DeleteProjectDeviceInternalServerError
const DeleteProjectDeviceOKCode int = 200
DeleteProjectDeviceOKCode is the HTTP code returned for type DeleteProjectDeviceOK
const DeleteProjectInternalServerErrorCode int = 500
DeleteProjectInternalServerErrorCode is the HTTP code returned for type DeleteProjectInternalServerError
const DeleteProjectNotFoundCode int = 404
DeleteProjectNotFoundCode is the HTTP code returned for type DeleteProjectNotFound
const DeleteProjectOKCode int = 200
DeleteProjectOKCode is the HTTP code returned for type DeleteProjectOK
const GetProjectDeviceNotFoundCode int = 404
GetProjectDeviceNotFoundCode is the HTTP code returned for type GetProjectDeviceNotFound
const GetProjectDeviceOKCode int = 200
GetProjectDeviceOKCode is the HTTP code returned for type GetProjectDeviceOK
const GetProjectDevicesNotFoundCode int = 404
GetProjectDevicesNotFoundCode is the HTTP code returned for type GetProjectDevicesNotFound
const GetProjectDevicesOKCode int = 200
GetProjectDevicesOKCode is the HTTP code returned for type GetProjectDevicesOK
const GetProjectSummaryNotFoundCode int = 404
GetProjectSummaryNotFoundCode is the HTTP code returned for type GetProjectSummaryNotFound
const GetProjectSummaryOKCode int = 200
GetProjectSummaryOKCode is the HTTP code returned for type GetProjectSummaryOK
const GetProjectsBadRequestCode int = 400
GetProjectsBadRequestCode is the HTTP code returned for type GetProjectsBadRequest
const GetProjectsInternalServerErrorCode int = 500
GetProjectsInternalServerErrorCode is the HTTP code returned for type GetProjectsInternalServerError
const GetProjectsOKCode int = 200
GetProjectsOKCode is the HTTP code returned for type GetProjectsOK
const GetProjectsProjectIDNotFoundCode int = 404
GetProjectsProjectIDNotFoundCode is the HTTP code returned for type GetProjectsProjectIDNotFound
const GetProjectsProjectIDOKCode int = 200
GetProjectsProjectIDOKCode is the HTTP code returned for type GetProjectsProjectIDOK
const UpdateProjectDeviceBadRequestCode int = 400
UpdateProjectDeviceBadRequestCode is the HTTP code returned for type UpdateProjectDeviceBadRequest
const UpdateProjectDeviceInternalServerErrorCode int = 500
UpdateProjectDeviceInternalServerErrorCode is the HTTP code returned for type UpdateProjectDeviceInternalServerError
const UpdateProjectDeviceOKCode int = 200
UpdateProjectDeviceOKCode is the HTTP code returned for type UpdateProjectDeviceOK
const UpdateProjectDeviceStatusBadRequestCode int = 400
UpdateProjectDeviceStatusBadRequestCode is the HTTP code returned for type UpdateProjectDeviceStatusBadRequest
const UpdateProjectDeviceStatusInternalServerErrorCode int = 500
UpdateProjectDeviceStatusInternalServerErrorCode is the HTTP code returned for type UpdateProjectDeviceStatusInternalServerError
const UpdateProjectDeviceStatusOKCode int = 200
UpdateProjectDeviceStatusOKCode is the HTTP code returned for type UpdateProjectDeviceStatusOK
const UpdateProjectInternalServerErrorCode int = 500
UpdateProjectInternalServerErrorCode is the HTTP code returned for type UpdateProjectInternalServerError
const UpdateProjectNotFoundCode int = 404
UpdateProjectNotFoundCode is the HTTP code returned for type UpdateProjectNotFound
const UpdateProjectOKCode int = 200
UpdateProjectOKCode is the HTTP code returned for type UpdateProjectOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddProjectDevice ¶
type AddProjectDevice struct { Context *middleware.Context Handler AddProjectDeviceHandler }
AddProjectDevice swagger:route POST /projects/{projectId}/devices Project addProjectDevice
add device instance to project
add device instance to project
func NewAddProjectDevice ¶
func NewAddProjectDevice(ctx *middleware.Context, handler AddProjectDeviceHandler) *AddProjectDevice
NewAddProjectDevice creates a new http.Handler for the add project device operation
func (*AddProjectDevice) ServeHTTP ¶
func (o *AddProjectDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddProjectDeviceBadRequest ¶
type AddProjectDeviceBadRequest struct { }
AddProjectDeviceBadRequest bad request
swagger:response addProjectDeviceBadRequest
func NewAddProjectDeviceBadRequest ¶
func NewAddProjectDeviceBadRequest() *AddProjectDeviceBadRequest
NewAddProjectDeviceBadRequest creates AddProjectDeviceBadRequest with default headers values
func (*AddProjectDeviceBadRequest) WriteResponse ¶
func (o *AddProjectDeviceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddProjectDeviceHandler ¶
type AddProjectDeviceHandler interface {
Handle(AddProjectDeviceParams, *models.Principal) middleware.Responder
}
AddProjectDeviceHandler interface for that can handle valid add project device params
type AddProjectDeviceHandlerFunc ¶
type AddProjectDeviceHandlerFunc func(AddProjectDeviceParams, *models.Principal) middleware.Responder
AddProjectDeviceHandlerFunc turns a function with the right signature into a add project device handler
func (AddProjectDeviceHandlerFunc) Handle ¶
func (fn AddProjectDeviceHandlerFunc) Handle(params AddProjectDeviceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddProjectDeviceInternalServerError ¶
type AddProjectDeviceInternalServerError struct { }
AddProjectDeviceInternalServerError server internal error
swagger:response addProjectDeviceInternalServerError
func NewAddProjectDeviceInternalServerError ¶
func NewAddProjectDeviceInternalServerError() *AddProjectDeviceInternalServerError
NewAddProjectDeviceInternalServerError creates AddProjectDeviceInternalServerError with default headers values
func (*AddProjectDeviceInternalServerError) WriteResponse ¶
func (o *AddProjectDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddProjectDeviceNotFound ¶
type AddProjectDeviceNotFound struct { }
AddProjectDeviceNotFound project not found
swagger:response addProjectDeviceNotFound
func NewAddProjectDeviceNotFound ¶
func NewAddProjectDeviceNotFound() *AddProjectDeviceNotFound
NewAddProjectDeviceNotFound creates AddProjectDeviceNotFound with default headers values
func (*AddProjectDeviceNotFound) WriteResponse ¶
func (o *AddProjectDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddProjectDeviceOK ¶
type AddProjectDeviceOK struct { }
AddProjectDeviceOK successful operation
swagger:response addProjectDeviceOK
func NewAddProjectDeviceOK ¶
func NewAddProjectDeviceOK() *AddProjectDeviceOK
NewAddProjectDeviceOK creates AddProjectDeviceOK with default headers values
func (*AddProjectDeviceOK) WriteResponse ¶
func (o *AddProjectDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddProjectDeviceParams ¶
type AddProjectDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Device *models.Device /*specified project Required: true In: path */ ProjectID string }
AddProjectDeviceParams contains all the bound params for the add project device operation typically these are obtained from a http.Request
swagger:parameters addProjectDevice
func NewAddProjectDeviceParams ¶
func NewAddProjectDeviceParams() AddProjectDeviceParams
NewAddProjectDeviceParams creates a new AddProjectDeviceParams object no default values defined in spec.
func (*AddProjectDeviceParams) BindRequest ¶
func (o *AddProjectDeviceParams) 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 NewAddProjectDeviceParams() beforehand.
type AddProjectDeviceURL ¶
type AddProjectDeviceURL struct { ProjectID string // contains filtered or unexported fields }
AddProjectDeviceURL generates an URL for the add project device operation
func (*AddProjectDeviceURL) Build ¶
func (o *AddProjectDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddProjectDeviceURL) BuildFull ¶
func (o *AddProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddProjectDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddProjectDeviceURL) SetBasePath ¶
func (o *AddProjectDeviceURL) 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 (*AddProjectDeviceURL) String ¶
func (o *AddProjectDeviceURL) String() string
String returns the string representation of the path with query string
func (*AddProjectDeviceURL) StringFull ¶
func (o *AddProjectDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddProjectDeviceURL) WithBasePath ¶
func (o *AddProjectDeviceURL) WithBasePath(bp string) *AddProjectDeviceURL
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 CreateProject ¶
type CreateProject struct { Context *middleware.Context Handler CreateProjectHandler }
CreateProject swagger:route POST /projects Project createProject
create new project
func NewCreateProject ¶
func NewCreateProject(ctx *middleware.Context, handler CreateProjectHandler) *CreateProject
NewCreateProject creates a new http.Handler for the create project operation
func (*CreateProject) ServeHTTP ¶
func (o *CreateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateProjectBadRequest ¶
type CreateProjectBadRequest struct { }
CreateProjectBadRequest Bad request
swagger:response createProjectBadRequest
func NewCreateProjectBadRequest ¶
func NewCreateProjectBadRequest() *CreateProjectBadRequest
NewCreateProjectBadRequest creates CreateProjectBadRequest with default headers values
func (*CreateProjectBadRequest) WriteResponse ¶
func (o *CreateProjectBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectHandler ¶
type CreateProjectHandler interface {
Handle(CreateProjectParams, *models.Principal) middleware.Responder
}
CreateProjectHandler interface for that can handle valid create project params
type CreateProjectHandlerFunc ¶
type CreateProjectHandlerFunc func(CreateProjectParams, *models.Principal) middleware.Responder
CreateProjectHandlerFunc turns a function with the right signature into a create project handler
func (CreateProjectHandlerFunc) Handle ¶
func (fn CreateProjectHandlerFunc) Handle(params CreateProjectParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateProjectInternalServerError ¶
type CreateProjectInternalServerError struct { }
CreateProjectInternalServerError Server internal error
swagger:response createProjectInternalServerError
func NewCreateProjectInternalServerError ¶
func NewCreateProjectInternalServerError() *CreateProjectInternalServerError
NewCreateProjectInternalServerError creates CreateProjectInternalServerError with default headers values
func (*CreateProjectInternalServerError) WriteResponse ¶
func (o *CreateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectOK ¶
CreateProjectOK Successful operation
swagger:response createProjectOK
func NewCreateProjectOK ¶
func NewCreateProjectOK() *CreateProjectOK
NewCreateProjectOK creates CreateProjectOK with default headers values
func (*CreateProjectOK) SetPayload ¶
func (o *CreateProjectOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the create project o k response
func (*CreateProjectOK) WithPayload ¶
func (o *CreateProjectOK) WithPayload(payload *models.Project) *CreateProjectOK
WithPayload adds the payload to the create project o k response
func (*CreateProjectOK) WriteResponse ¶
func (o *CreateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateProjectParams ¶
type CreateProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*new created project Required: true In: body */ Project *models.Project }
CreateProjectParams contains all the bound params for the create project operation typically these are obtained from a http.Request
swagger:parameters createProject
func NewCreateProjectParams ¶
func NewCreateProjectParams() CreateProjectParams
NewCreateProjectParams creates a new CreateProjectParams object no default values defined in spec.
func (*CreateProjectParams) BindRequest ¶
func (o *CreateProjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateProjectParams() beforehand.
type CreateProjectURL ¶
type CreateProjectURL struct {
// contains filtered or unexported fields
}
CreateProjectURL generates an URL for the create project operation
func (*CreateProjectURL) Build ¶
func (o *CreateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateProjectURL) BuildFull ¶
func (o *CreateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateProjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateProjectURL) SetBasePath ¶
func (o *CreateProjectURL) 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 (*CreateProjectURL) String ¶
func (o *CreateProjectURL) String() string
String returns the string representation of the path with query string
func (*CreateProjectURL) StringFull ¶
func (o *CreateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateProjectURL) WithBasePath ¶
func (o *CreateProjectURL) WithBasePath(bp string) *CreateProjectURL
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 DeleteProject ¶
type DeleteProject struct { Context *middleware.Context Handler DeleteProjectHandler }
DeleteProject swagger:route DELETE /projects/{projectId} Project deleteProject
delete project
delete specifed project
func NewDeleteProject ¶
func NewDeleteProject(ctx *middleware.Context, handler DeleteProjectHandler) *DeleteProject
NewDeleteProject creates a new http.Handler for the delete project operation
func (*DeleteProject) ServeHTTP ¶
func (o *DeleteProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteProjectDevice ¶
type DeleteProjectDevice struct { Context *middleware.Context Handler DeleteProjectDeviceHandler }
DeleteProjectDevice swagger:route DELETE /project/{projectId}/devices/{deviceId} Project deleteProjectDevice
delete project's specified device
delete project's specified device
func NewDeleteProjectDevice ¶
func NewDeleteProjectDevice(ctx *middleware.Context, handler DeleteProjectDeviceHandler) *DeleteProjectDevice
NewDeleteProjectDevice creates a new http.Handler for the delete project device operation
func (*DeleteProjectDevice) ServeHTTP ¶
func (o *DeleteProjectDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteProjectDeviceBadRequest ¶
type DeleteProjectDeviceBadRequest struct { }
DeleteProjectDeviceBadRequest Bad request
swagger:response deleteProjectDeviceBadRequest
func NewDeleteProjectDeviceBadRequest ¶
func NewDeleteProjectDeviceBadRequest() *DeleteProjectDeviceBadRequest
NewDeleteProjectDeviceBadRequest creates DeleteProjectDeviceBadRequest with default headers values
func (*DeleteProjectDeviceBadRequest) WriteResponse ¶
func (o *DeleteProjectDeviceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectDeviceHandler ¶
type DeleteProjectDeviceHandler interface {
Handle(DeleteProjectDeviceParams, *models.Principal) middleware.Responder
}
DeleteProjectDeviceHandler interface for that can handle valid delete project device params
type DeleteProjectDeviceHandlerFunc ¶
type DeleteProjectDeviceHandlerFunc func(DeleteProjectDeviceParams, *models.Principal) middleware.Responder
DeleteProjectDeviceHandlerFunc turns a function with the right signature into a delete project device handler
func (DeleteProjectDeviceHandlerFunc) Handle ¶
func (fn DeleteProjectDeviceHandlerFunc) Handle(params DeleteProjectDeviceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteProjectDeviceInternalServerError ¶
type DeleteProjectDeviceInternalServerError struct { }
DeleteProjectDeviceInternalServerError server internal error
swagger:response deleteProjectDeviceInternalServerError
func NewDeleteProjectDeviceInternalServerError ¶
func NewDeleteProjectDeviceInternalServerError() *DeleteProjectDeviceInternalServerError
NewDeleteProjectDeviceInternalServerError creates DeleteProjectDeviceInternalServerError with default headers values
func (*DeleteProjectDeviceInternalServerError) WriteResponse ¶
func (o *DeleteProjectDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectDeviceOK ¶
type DeleteProjectDeviceOK struct { }
DeleteProjectDeviceOK successful operation
swagger:response deleteProjectDeviceOK
func NewDeleteProjectDeviceOK ¶
func NewDeleteProjectDeviceOK() *DeleteProjectDeviceOK
NewDeleteProjectDeviceOK creates DeleteProjectDeviceOK with default headers values
func (*DeleteProjectDeviceOK) WriteResponse ¶
func (o *DeleteProjectDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectDeviceParams ¶
type DeleteProjectDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*deviceId Required: true In: path */ DeviceID string /*projectId Required: true In: path */ ProjectID string }
DeleteProjectDeviceParams contains all the bound params for the delete project device operation typically these are obtained from a http.Request
swagger:parameters deleteProjectDevice
func NewDeleteProjectDeviceParams ¶
func NewDeleteProjectDeviceParams() DeleteProjectDeviceParams
NewDeleteProjectDeviceParams creates a new DeleteProjectDeviceParams object no default values defined in spec.
func (*DeleteProjectDeviceParams) BindRequest ¶
func (o *DeleteProjectDeviceParams) 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 NewDeleteProjectDeviceParams() beforehand.
type DeleteProjectDeviceURL ¶
type DeleteProjectDeviceURL struct { DeviceID string ProjectID string // contains filtered or unexported fields }
DeleteProjectDeviceURL generates an URL for the delete project device operation
func (*DeleteProjectDeviceURL) Build ¶
func (o *DeleteProjectDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteProjectDeviceURL) BuildFull ¶
func (o *DeleteProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteProjectDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteProjectDeviceURL) SetBasePath ¶
func (o *DeleteProjectDeviceURL) 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 (*DeleteProjectDeviceURL) String ¶
func (o *DeleteProjectDeviceURL) String() string
String returns the string representation of the path with query string
func (*DeleteProjectDeviceURL) StringFull ¶
func (o *DeleteProjectDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteProjectDeviceURL) WithBasePath ¶
func (o *DeleteProjectDeviceURL) WithBasePath(bp string) *DeleteProjectDeviceURL
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 DeleteProjectHandler ¶
type DeleteProjectHandler interface {
Handle(DeleteProjectParams, *models.Principal) middleware.Responder
}
DeleteProjectHandler interface for that can handle valid delete project params
type DeleteProjectHandlerFunc ¶
type DeleteProjectHandlerFunc func(DeleteProjectParams, *models.Principal) middleware.Responder
DeleteProjectHandlerFunc turns a function with the right signature into a delete project handler
func (DeleteProjectHandlerFunc) Handle ¶
func (fn DeleteProjectHandlerFunc) Handle(params DeleteProjectParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteProjectInternalServerError ¶
type DeleteProjectInternalServerError struct { }
DeleteProjectInternalServerError server internal error
swagger:response deleteProjectInternalServerError
func NewDeleteProjectInternalServerError ¶
func NewDeleteProjectInternalServerError() *DeleteProjectInternalServerError
NewDeleteProjectInternalServerError creates DeleteProjectInternalServerError with default headers values
func (*DeleteProjectInternalServerError) WriteResponse ¶
func (o *DeleteProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectNotFound ¶
type DeleteProjectNotFound struct { }
DeleteProjectNotFound project not found
swagger:response deleteProjectNotFound
func NewDeleteProjectNotFound ¶
func NewDeleteProjectNotFound() *DeleteProjectNotFound
NewDeleteProjectNotFound creates DeleteProjectNotFound with default headers values
func (*DeleteProjectNotFound) WriteResponse ¶
func (o *DeleteProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectOK ¶
type DeleteProjectOK struct { }
DeleteProjectOK OK
swagger:response deleteProjectOK
func NewDeleteProjectOK ¶
func NewDeleteProjectOK() *DeleteProjectOK
NewDeleteProjectOK creates DeleteProjectOK with default headers values
func (*DeleteProjectOK) WriteResponse ¶
func (o *DeleteProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProjectParams ¶
type DeleteProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*project id Required: true In: path */ ProjectID string }
DeleteProjectParams contains all the bound params for the delete project operation typically these are obtained from a http.Request
swagger:parameters deleteProject
func NewDeleteProjectParams ¶
func NewDeleteProjectParams() DeleteProjectParams
NewDeleteProjectParams creates a new DeleteProjectParams object no default values defined in spec.
func (*DeleteProjectParams) BindRequest ¶
func (o *DeleteProjectParams) 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 NewDeleteProjectParams() beforehand.
type DeleteProjectURL ¶
type DeleteProjectURL struct { ProjectID string // contains filtered or unexported fields }
DeleteProjectURL generates an URL for the delete project operation
func (*DeleteProjectURL) Build ¶
func (o *DeleteProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteProjectURL) BuildFull ¶
func (o *DeleteProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteProjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteProjectURL) SetBasePath ¶
func (o *DeleteProjectURL) 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 (*DeleteProjectURL) String ¶
func (o *DeleteProjectURL) String() string
String returns the string representation of the path with query string
func (*DeleteProjectURL) StringFull ¶
func (o *DeleteProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteProjectURL) WithBasePath ¶
func (o *DeleteProjectURL) WithBasePath(bp string) *DeleteProjectURL
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 GetProjectDevice ¶
type GetProjectDevice struct { Context *middleware.Context Handler GetProjectDeviceHandler }
GetProjectDevice swagger:route GET /project/{projectId}/devices/{deviceId} Project getProjectDevice
geet project's specified device
get project's specified device
func NewGetProjectDevice ¶
func NewGetProjectDevice(ctx *middleware.Context, handler GetProjectDeviceHandler) *GetProjectDevice
NewGetProjectDevice creates a new http.Handler for the get project device operation
func (*GetProjectDevice) ServeHTTP ¶
func (o *GetProjectDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectDeviceHandler ¶
type GetProjectDeviceHandler interface {
Handle(GetProjectDeviceParams, *models.Principal) middleware.Responder
}
GetProjectDeviceHandler interface for that can handle valid get project device params
type GetProjectDeviceHandlerFunc ¶
type GetProjectDeviceHandlerFunc func(GetProjectDeviceParams, *models.Principal) middleware.Responder
GetProjectDeviceHandlerFunc turns a function with the right signature into a get project device handler
func (GetProjectDeviceHandlerFunc) Handle ¶
func (fn GetProjectDeviceHandlerFunc) Handle(params GetProjectDeviceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetProjectDeviceNotFound ¶
type GetProjectDeviceNotFound struct { }
GetProjectDeviceNotFound project or device not found
swagger:response getProjectDeviceNotFound
func NewGetProjectDeviceNotFound ¶
func NewGetProjectDeviceNotFound() *GetProjectDeviceNotFound
NewGetProjectDeviceNotFound creates GetProjectDeviceNotFound with default headers values
func (*GetProjectDeviceNotFound) WriteResponse ¶
func (o *GetProjectDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectDeviceOK ¶
GetProjectDeviceOK successful operation
swagger:response getProjectDeviceOK
func NewGetProjectDeviceOK ¶
func NewGetProjectDeviceOK() *GetProjectDeviceOK
NewGetProjectDeviceOK creates GetProjectDeviceOK with default headers values
func (*GetProjectDeviceOK) SetPayload ¶
func (o *GetProjectDeviceOK) SetPayload(payload *models.Device)
SetPayload sets the payload to the get project device o k response
func (*GetProjectDeviceOK) WithPayload ¶
func (o *GetProjectDeviceOK) WithPayload(payload *models.Device) *GetProjectDeviceOK
WithPayload adds the payload to the get project device o k response
func (*GetProjectDeviceOK) WriteResponse ¶
func (o *GetProjectDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectDeviceParams ¶
type GetProjectDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*deviceId Required: true In: path */ DeviceID string /*projectId Required: true In: path */ ProjectID string }
GetProjectDeviceParams contains all the bound params for the get project device operation typically these are obtained from a http.Request
swagger:parameters getProjectDevice
func NewGetProjectDeviceParams ¶
func NewGetProjectDeviceParams() GetProjectDeviceParams
NewGetProjectDeviceParams creates a new GetProjectDeviceParams object no default values defined in spec.
func (*GetProjectDeviceParams) BindRequest ¶
func (o *GetProjectDeviceParams) 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 NewGetProjectDeviceParams() beforehand.
type GetProjectDeviceURL ¶
type GetProjectDeviceURL struct { DeviceID string ProjectID string // contains filtered or unexported fields }
GetProjectDeviceURL generates an URL for the get project device operation
func (*GetProjectDeviceURL) Build ¶
func (o *GetProjectDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectDeviceURL) BuildFull ¶
func (o *GetProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectDeviceURL) SetBasePath ¶
func (o *GetProjectDeviceURL) 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 (*GetProjectDeviceURL) String ¶
func (o *GetProjectDeviceURL) String() string
String returns the string representation of the path with query string
func (*GetProjectDeviceURL) StringFull ¶
func (o *GetProjectDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectDeviceURL) WithBasePath ¶
func (o *GetProjectDeviceURL) WithBasePath(bp string) *GetProjectDeviceURL
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 GetProjectDevices ¶
type GetProjectDevices struct { Context *middleware.Context Handler GetProjectDevicesHandler }
GetProjectDevices swagger:route GET /projects/{projectId}/devices Project getProjectDevices
get project's all devices
get project's devices
func NewGetProjectDevices ¶
func NewGetProjectDevices(ctx *middleware.Context, handler GetProjectDevicesHandler) *GetProjectDevices
NewGetProjectDevices creates a new http.Handler for the get project devices operation
func (*GetProjectDevices) ServeHTTP ¶
func (o *GetProjectDevices) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectDevicesHandler ¶
type GetProjectDevicesHandler interface {
Handle(GetProjectDevicesParams, *models.Principal) middleware.Responder
}
GetProjectDevicesHandler interface for that can handle valid get project devices params
type GetProjectDevicesHandlerFunc ¶
type GetProjectDevicesHandlerFunc func(GetProjectDevicesParams, *models.Principal) middleware.Responder
GetProjectDevicesHandlerFunc turns a function with the right signature into a get project devices handler
func (GetProjectDevicesHandlerFunc) Handle ¶
func (fn GetProjectDevicesHandlerFunc) Handle(params GetProjectDevicesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetProjectDevicesNotFound ¶
type GetProjectDevicesNotFound struct { }
GetProjectDevicesNotFound project not found
swagger:response getProjectDevicesNotFound
func NewGetProjectDevicesNotFound ¶
func NewGetProjectDevicesNotFound() *GetProjectDevicesNotFound
NewGetProjectDevicesNotFound creates GetProjectDevicesNotFound with default headers values
func (*GetProjectDevicesNotFound) WriteResponse ¶
func (o *GetProjectDevicesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectDevicesOK ¶
GetProjectDevicesOK successful operation
swagger:response getProjectDevicesOK
func NewGetProjectDevicesOK ¶
func NewGetProjectDevicesOK() *GetProjectDevicesOK
NewGetProjectDevicesOK creates GetProjectDevicesOK with default headers values
func (*GetProjectDevicesOK) SetPayload ¶
func (o *GetProjectDevicesOK) SetPayload(payload []*models.Device)
SetPayload sets the payload to the get project devices o k response
func (*GetProjectDevicesOK) WithPayload ¶
func (o *GetProjectDevicesOK) WithPayload(payload []*models.Device) *GetProjectDevicesOK
WithPayload adds the payload to the get project devices o k response
func (*GetProjectDevicesOK) WriteResponse ¶
func (o *GetProjectDevicesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectDevicesParams ¶
type GetProjectDevicesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*projectId Required: true In: path */ ProjectID string }
GetProjectDevicesParams contains all the bound params for the get project devices operation typically these are obtained from a http.Request
swagger:parameters getProjectDevices
func NewGetProjectDevicesParams ¶
func NewGetProjectDevicesParams() GetProjectDevicesParams
NewGetProjectDevicesParams creates a new GetProjectDevicesParams object no default values defined in spec.
func (*GetProjectDevicesParams) BindRequest ¶
func (o *GetProjectDevicesParams) 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 NewGetProjectDevicesParams() beforehand.
type GetProjectDevicesURL ¶
type GetProjectDevicesURL struct { ProjectID string // contains filtered or unexported fields }
GetProjectDevicesURL generates an URL for the get project devices operation
func (*GetProjectDevicesURL) Build ¶
func (o *GetProjectDevicesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectDevicesURL) BuildFull ¶
func (o *GetProjectDevicesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectDevicesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectDevicesURL) SetBasePath ¶
func (o *GetProjectDevicesURL) 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 (*GetProjectDevicesURL) String ¶
func (o *GetProjectDevicesURL) String() string
String returns the string representation of the path with query string
func (*GetProjectDevicesURL) StringFull ¶
func (o *GetProjectDevicesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectDevicesURL) WithBasePath ¶
func (o *GetProjectDevicesURL) WithBasePath(bp string) *GetProjectDevicesURL
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 GetProjectSummary ¶
type GetProjectSummary struct { Context *middleware.Context Handler GetProjectSummaryHandler }
GetProjectSummary swagger:route GET /projects/{projectId}/summary Project getProjectSummary
get project's summary
get project's summary
func NewGetProjectSummary ¶
func NewGetProjectSummary(ctx *middleware.Context, handler GetProjectSummaryHandler) *GetProjectSummary
NewGetProjectSummary creates a new http.Handler for the get project summary operation
func (*GetProjectSummary) ServeHTTP ¶
func (o *GetProjectSummary) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectSummaryHandler ¶
type GetProjectSummaryHandler interface {
Handle(GetProjectSummaryParams, *models.Principal) middleware.Responder
}
GetProjectSummaryHandler interface for that can handle valid get project summary params
type GetProjectSummaryHandlerFunc ¶
type GetProjectSummaryHandlerFunc func(GetProjectSummaryParams, *models.Principal) middleware.Responder
GetProjectSummaryHandlerFunc turns a function with the right signature into a get project summary handler
func (GetProjectSummaryHandlerFunc) Handle ¶
func (fn GetProjectSummaryHandlerFunc) Handle(params GetProjectSummaryParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetProjectSummaryNotFound ¶
type GetProjectSummaryNotFound struct { }
GetProjectSummaryNotFound project not found
swagger:response getProjectSummaryNotFound
func NewGetProjectSummaryNotFound ¶
func NewGetProjectSummaryNotFound() *GetProjectSummaryNotFound
NewGetProjectSummaryNotFound creates GetProjectSummaryNotFound with default headers values
func (*GetProjectSummaryNotFound) WriteResponse ¶
func (o *GetProjectSummaryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectSummaryOK ¶
type GetProjectSummaryOK struct { /* In: Body */ Payload models.ProjectSummary `json:"body,omitempty"` }
GetProjectSummaryOK successful operation
swagger:response getProjectSummaryOK
func NewGetProjectSummaryOK ¶
func NewGetProjectSummaryOK() *GetProjectSummaryOK
NewGetProjectSummaryOK creates GetProjectSummaryOK with default headers values
func (*GetProjectSummaryOK) SetPayload ¶
func (o *GetProjectSummaryOK) SetPayload(payload models.ProjectSummary)
SetPayload sets the payload to the get project summary o k response
func (*GetProjectSummaryOK) WithPayload ¶
func (o *GetProjectSummaryOK) WithPayload(payload models.ProjectSummary) *GetProjectSummaryOK
WithPayload adds the payload to the get project summary o k response
func (*GetProjectSummaryOK) WriteResponse ¶
func (o *GetProjectSummaryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectSummaryParams ¶
type GetProjectSummaryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*projectId Required: true In: path */ ProjectID string }
GetProjectSummaryParams contains all the bound params for the get project summary operation typically these are obtained from a http.Request
swagger:parameters getProjectSummary
func NewGetProjectSummaryParams ¶
func NewGetProjectSummaryParams() GetProjectSummaryParams
NewGetProjectSummaryParams creates a new GetProjectSummaryParams object no default values defined in spec.
func (*GetProjectSummaryParams) BindRequest ¶
func (o *GetProjectSummaryParams) 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 NewGetProjectSummaryParams() beforehand.
type GetProjectSummaryURL ¶
type GetProjectSummaryURL struct { ProjectID string // contains filtered or unexported fields }
GetProjectSummaryURL generates an URL for the get project summary operation
func (*GetProjectSummaryURL) Build ¶
func (o *GetProjectSummaryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectSummaryURL) BuildFull ¶
func (o *GetProjectSummaryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectSummaryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectSummaryURL) SetBasePath ¶
func (o *GetProjectSummaryURL) 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 (*GetProjectSummaryURL) String ¶
func (o *GetProjectSummaryURL) String() string
String returns the string representation of the path with query string
func (*GetProjectSummaryURL) StringFull ¶
func (o *GetProjectSummaryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectSummaryURL) WithBasePath ¶
func (o *GetProjectSummaryURL) WithBasePath(bp string) *GetProjectSummaryURL
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 GetProjects ¶
type GetProjects struct { Context *middleware.Context Handler GetProjectsHandler }
GetProjects swagger:route GET /projects Project getProjects
retrieve all projects
func NewGetProjects ¶
func NewGetProjects(ctx *middleware.Context, handler GetProjectsHandler) *GetProjects
NewGetProjects creates a new http.Handler for the get projects operation
func (*GetProjects) ServeHTTP ¶
func (o *GetProjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectsBadRequest ¶
type GetProjectsBadRequest struct { }
GetProjectsBadRequest Bad request
swagger:response getProjectsBadRequest
func NewGetProjectsBadRequest ¶
func NewGetProjectsBadRequest() *GetProjectsBadRequest
NewGetProjectsBadRequest creates GetProjectsBadRequest with default headers values
func (*GetProjectsBadRequest) WriteResponse ¶
func (o *GetProjectsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsHandler ¶
type GetProjectsHandler interface {
Handle(GetProjectsParams, *models.Principal) middleware.Responder
}
GetProjectsHandler interface for that can handle valid get projects params
type GetProjectsHandlerFunc ¶
type GetProjectsHandlerFunc func(GetProjectsParams, *models.Principal) middleware.Responder
GetProjectsHandlerFunc turns a function with the right signature into a get projects handler
func (GetProjectsHandlerFunc) Handle ¶
func (fn GetProjectsHandlerFunc) Handle(params GetProjectsParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetProjectsInternalServerError ¶
type GetProjectsInternalServerError struct { }
GetProjectsInternalServerError Internal error
swagger:response getProjectsInternalServerError
func NewGetProjectsInternalServerError ¶
func NewGetProjectsInternalServerError() *GetProjectsInternalServerError
NewGetProjectsInternalServerError creates GetProjectsInternalServerError with default headers values
func (*GetProjectsInternalServerError) WriteResponse ¶
func (o *GetProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsOK ¶
GetProjectsOK successfully operation
swagger:response getProjectsOK
func NewGetProjectsOK ¶
func NewGetProjectsOK() *GetProjectsOK
NewGetProjectsOK creates GetProjectsOK with default headers values
func (*GetProjectsOK) SetPayload ¶
func (o *GetProjectsOK) SetPayload(payload []*models.Project)
SetPayload sets the payload to the get projects o k response
func (*GetProjectsOK) WithPayload ¶
func (o *GetProjectsOK) WithPayload(payload []*models.Project) *GetProjectsOK
WithPayload adds the payload to the get projects o k response
func (*GetProjectsOK) WriteResponse ¶
func (o *GetProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsParams ¶
type GetProjectsParams 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 }
GetProjectsParams contains all the bound params for the get projects operation typically these are obtained from a http.Request
swagger:parameters getProjects
func NewGetProjectsParams ¶
func NewGetProjectsParams() GetProjectsParams
NewGetProjectsParams creates a new GetProjectsParams object no default values defined in spec.
func (*GetProjectsParams) BindRequest ¶
func (o *GetProjectsParams) 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 NewGetProjectsParams() beforehand.
type GetProjectsProjectID ¶
type GetProjectsProjectID struct { Context *middleware.Context Handler GetProjectsProjectIDHandler }
GetProjectsProjectID swagger:route GET /projects/{projectId} Project getProjectsProjectId
get specified project
func NewGetProjectsProjectID ¶
func NewGetProjectsProjectID(ctx *middleware.Context, handler GetProjectsProjectIDHandler) *GetProjectsProjectID
NewGetProjectsProjectID creates a new http.Handler for the get projects project ID operation
func (*GetProjectsProjectID) ServeHTTP ¶
func (o *GetProjectsProjectID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectsProjectIDHandler ¶
type GetProjectsProjectIDHandler interface {
Handle(GetProjectsProjectIDParams, *models.Principal) middleware.Responder
}
GetProjectsProjectIDHandler interface for that can handle valid get projects project ID params
type GetProjectsProjectIDHandlerFunc ¶
type GetProjectsProjectIDHandlerFunc func(GetProjectsProjectIDParams, *models.Principal) middleware.Responder
GetProjectsProjectIDHandlerFunc turns a function with the right signature into a get projects project ID handler
func (GetProjectsProjectIDHandlerFunc) Handle ¶
func (fn GetProjectsProjectIDHandlerFunc) Handle(params GetProjectsProjectIDParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetProjectsProjectIDNotFound ¶
type GetProjectsProjectIDNotFound struct { }
GetProjectsProjectIDNotFound Bad request
swagger:response getProjectsProjectIdNotFound
func NewGetProjectsProjectIDNotFound ¶
func NewGetProjectsProjectIDNotFound() *GetProjectsProjectIDNotFound
NewGetProjectsProjectIDNotFound creates GetProjectsProjectIDNotFound with default headers values
func (*GetProjectsProjectIDNotFound) WriteResponse ¶
func (o *GetProjectsProjectIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsProjectIDOK ¶
type GetProjectsProjectIDOK struct { /* In: Body */ Payload *models.Project `json:"body,omitempty"` }
GetProjectsProjectIDOK successful operation
swagger:response getProjectsProjectIdOK
func NewGetProjectsProjectIDOK ¶
func NewGetProjectsProjectIDOK() *GetProjectsProjectIDOK
NewGetProjectsProjectIDOK creates GetProjectsProjectIDOK with default headers values
func (*GetProjectsProjectIDOK) SetPayload ¶
func (o *GetProjectsProjectIDOK) SetPayload(payload *models.Project)
SetPayload sets the payload to the get projects project Id o k response
func (*GetProjectsProjectIDOK) WithPayload ¶
func (o *GetProjectsProjectIDOK) WithPayload(payload *models.Project) *GetProjectsProjectIDOK
WithPayload adds the payload to the get projects project Id o k response
func (*GetProjectsProjectIDOK) WriteResponse ¶
func (o *GetProjectsProjectIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectsProjectIDParams ¶
type GetProjectsProjectIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*project id Required: true In: path */ ProjectID string }
GetProjectsProjectIDParams contains all the bound params for the get projects project ID operation typically these are obtained from a http.Request
swagger:parameters GetProjectsProjectID
func NewGetProjectsProjectIDParams ¶
func NewGetProjectsProjectIDParams() GetProjectsProjectIDParams
NewGetProjectsProjectIDParams creates a new GetProjectsProjectIDParams object no default values defined in spec.
func (*GetProjectsProjectIDParams) BindRequest ¶
func (o *GetProjectsProjectIDParams) 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 NewGetProjectsProjectIDParams() beforehand.
type GetProjectsProjectIDURL ¶
type GetProjectsProjectIDURL struct { ProjectID string // contains filtered or unexported fields }
GetProjectsProjectIDURL generates an URL for the get projects project ID operation
func (*GetProjectsProjectIDURL) Build ¶
func (o *GetProjectsProjectIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectsProjectIDURL) BuildFull ¶
func (o *GetProjectsProjectIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectsProjectIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectsProjectIDURL) SetBasePath ¶
func (o *GetProjectsProjectIDURL) 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 (*GetProjectsProjectIDURL) String ¶
func (o *GetProjectsProjectIDURL) String() string
String returns the string representation of the path with query string
func (*GetProjectsProjectIDURL) StringFull ¶
func (o *GetProjectsProjectIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectsProjectIDURL) WithBasePath ¶
func (o *GetProjectsProjectIDURL) WithBasePath(bp string) *GetProjectsProjectIDURL
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 GetProjectsURL ¶
type GetProjectsURL struct { PageNumber *int64 PageSize *int64 Q *string // contains filtered or unexported fields }
GetProjectsURL generates an URL for the get projects operation
func (*GetProjectsURL) Build ¶
func (o *GetProjectsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectsURL) BuildFull ¶
func (o *GetProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectsURL) SetBasePath ¶
func (o *GetProjectsURL) 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 (*GetProjectsURL) String ¶
func (o *GetProjectsURL) String() string
String returns the string representation of the path with query string
func (*GetProjectsURL) StringFull ¶
func (o *GetProjectsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectsURL) WithBasePath ¶
func (o *GetProjectsURL) WithBasePath(bp string) *GetProjectsURL
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 UpdateProject ¶
type UpdateProject struct { Context *middleware.Context Handler UpdateProjectHandler }
UpdateProject swagger:route PUT /projects/{projectId} Project updateProject
update specified project
func NewUpdateProject ¶
func NewUpdateProject(ctx *middleware.Context, handler UpdateProjectHandler) *UpdateProject
NewUpdateProject creates a new http.Handler for the update project operation
func (*UpdateProject) ServeHTTP ¶
func (o *UpdateProject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateProjectDevice ¶
type UpdateProjectDevice struct { Context *middleware.Context Handler UpdateProjectDeviceHandler }
UpdateProjectDevice swagger:route PUT /project/{projectId}/devices/{deviceId} Project updateProjectDevice
update project's specified device
update project's specified device
func NewUpdateProjectDevice ¶
func NewUpdateProjectDevice(ctx *middleware.Context, handler UpdateProjectDeviceHandler) *UpdateProjectDevice
NewUpdateProjectDevice creates a new http.Handler for the update project device operation
func (*UpdateProjectDevice) ServeHTTP ¶
func (o *UpdateProjectDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateProjectDeviceBadRequest ¶
type UpdateProjectDeviceBadRequest struct { }
UpdateProjectDeviceBadRequest Bad request
swagger:response updateProjectDeviceBadRequest
func NewUpdateProjectDeviceBadRequest ¶
func NewUpdateProjectDeviceBadRequest() *UpdateProjectDeviceBadRequest
NewUpdateProjectDeviceBadRequest creates UpdateProjectDeviceBadRequest with default headers values
func (*UpdateProjectDeviceBadRequest) WriteResponse ¶
func (o *UpdateProjectDeviceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceHandler ¶
type UpdateProjectDeviceHandler interface {
Handle(UpdateProjectDeviceParams, *models.Principal) middleware.Responder
}
UpdateProjectDeviceHandler interface for that can handle valid update project device params
type UpdateProjectDeviceHandlerFunc ¶
type UpdateProjectDeviceHandlerFunc func(UpdateProjectDeviceParams, *models.Principal) middleware.Responder
UpdateProjectDeviceHandlerFunc turns a function with the right signature into a update project device handler
func (UpdateProjectDeviceHandlerFunc) Handle ¶
func (fn UpdateProjectDeviceHandlerFunc) Handle(params UpdateProjectDeviceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateProjectDeviceInternalServerError ¶
type UpdateProjectDeviceInternalServerError struct { }
UpdateProjectDeviceInternalServerError server internal error
swagger:response updateProjectDeviceInternalServerError
func NewUpdateProjectDeviceInternalServerError ¶
func NewUpdateProjectDeviceInternalServerError() *UpdateProjectDeviceInternalServerError
NewUpdateProjectDeviceInternalServerError creates UpdateProjectDeviceInternalServerError with default headers values
func (*UpdateProjectDeviceInternalServerError) WriteResponse ¶
func (o *UpdateProjectDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceOK ¶
type UpdateProjectDeviceOK struct { }
UpdateProjectDeviceOK successful operation
swagger:response updateProjectDeviceOK
func NewUpdateProjectDeviceOK ¶
func NewUpdateProjectDeviceOK() *UpdateProjectDeviceOK
NewUpdateProjectDeviceOK creates UpdateProjectDeviceOK with default headers values
func (*UpdateProjectDeviceOK) WriteResponse ¶
func (o *UpdateProjectDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceParams ¶
type UpdateProjectDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Device *models.Device /*device id Required: true In: path */ DeviceID string /*project id Required: true In: path */ ProjectID string }
UpdateProjectDeviceParams contains all the bound params for the update project device operation typically these are obtained from a http.Request
swagger:parameters updateProjectDevice
func NewUpdateProjectDeviceParams ¶
func NewUpdateProjectDeviceParams() UpdateProjectDeviceParams
NewUpdateProjectDeviceParams creates a new UpdateProjectDeviceParams object no default values defined in spec.
func (*UpdateProjectDeviceParams) BindRequest ¶
func (o *UpdateProjectDeviceParams) 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 NewUpdateProjectDeviceParams() beforehand.
type UpdateProjectDeviceStatus ¶
type UpdateProjectDeviceStatus struct { Context *middleware.Context Handler UpdateProjectDeviceStatusHandler }
UpdateProjectDeviceStatus swagger:route PATCH /project/{projectId}/devices/{deviceId} Project updateProjectDeviceStatus
update project's specified device's status
func NewUpdateProjectDeviceStatus ¶
func NewUpdateProjectDeviceStatus(ctx *middleware.Context, handler UpdateProjectDeviceStatusHandler) *UpdateProjectDeviceStatus
NewUpdateProjectDeviceStatus creates a new http.Handler for the update project device status operation
func (*UpdateProjectDeviceStatus) ServeHTTP ¶
func (o *UpdateProjectDeviceStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateProjectDeviceStatusBadRequest ¶
type UpdateProjectDeviceStatusBadRequest struct { }
UpdateProjectDeviceStatusBadRequest Bad request
swagger:response updateProjectDeviceStatusBadRequest
func NewUpdateProjectDeviceStatusBadRequest ¶
func NewUpdateProjectDeviceStatusBadRequest() *UpdateProjectDeviceStatusBadRequest
NewUpdateProjectDeviceStatusBadRequest creates UpdateProjectDeviceStatusBadRequest with default headers values
func (*UpdateProjectDeviceStatusBadRequest) WriteResponse ¶
func (o *UpdateProjectDeviceStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceStatusHandler ¶
type UpdateProjectDeviceStatusHandler interface {
Handle(UpdateProjectDeviceStatusParams, *models.Principal) middleware.Responder
}
UpdateProjectDeviceStatusHandler interface for that can handle valid update project device status params
type UpdateProjectDeviceStatusHandlerFunc ¶
type UpdateProjectDeviceStatusHandlerFunc func(UpdateProjectDeviceStatusParams, *models.Principal) middleware.Responder
UpdateProjectDeviceStatusHandlerFunc turns a function with the right signature into a update project device status handler
func (UpdateProjectDeviceStatusHandlerFunc) Handle ¶
func (fn UpdateProjectDeviceStatusHandlerFunc) Handle(params UpdateProjectDeviceStatusParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateProjectDeviceStatusInternalServerError ¶
type UpdateProjectDeviceStatusInternalServerError struct { }
UpdateProjectDeviceStatusInternalServerError server internal error
swagger:response updateProjectDeviceStatusInternalServerError
func NewUpdateProjectDeviceStatusInternalServerError ¶
func NewUpdateProjectDeviceStatusInternalServerError() *UpdateProjectDeviceStatusInternalServerError
NewUpdateProjectDeviceStatusInternalServerError creates UpdateProjectDeviceStatusInternalServerError with default headers values
func (*UpdateProjectDeviceStatusInternalServerError) WriteResponse ¶
func (o *UpdateProjectDeviceStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceStatusOK ¶
type UpdateProjectDeviceStatusOK struct { }
UpdateProjectDeviceStatusOK successful operation
swagger:response updateProjectDeviceStatusOK
func NewUpdateProjectDeviceStatusOK ¶
func NewUpdateProjectDeviceStatusOK() *UpdateProjectDeviceStatusOK
NewUpdateProjectDeviceStatusOK creates UpdateProjectDeviceStatusOK with default headers values
func (*UpdateProjectDeviceStatusOK) WriteResponse ¶
func (o *UpdateProjectDeviceStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectDeviceStatusParams ¶
type UpdateProjectDeviceStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*device id Required: true In: path */ DeviceID string /*update device's field Required: true In: query */ Field string /*project id Required: true In: path */ ProjectID string }
UpdateProjectDeviceStatusParams contains all the bound params for the update project device status operation typically these are obtained from a http.Request
swagger:parameters updateProjectDeviceStatus
func NewUpdateProjectDeviceStatusParams ¶
func NewUpdateProjectDeviceStatusParams() UpdateProjectDeviceStatusParams
NewUpdateProjectDeviceStatusParams creates a new UpdateProjectDeviceStatusParams object no default values defined in spec.
func (*UpdateProjectDeviceStatusParams) BindRequest ¶
func (o *UpdateProjectDeviceStatusParams) 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 NewUpdateProjectDeviceStatusParams() beforehand.
type UpdateProjectDeviceStatusURL ¶
type UpdateProjectDeviceStatusURL struct { DeviceID string ProjectID string Field string // contains filtered or unexported fields }
UpdateProjectDeviceStatusURL generates an URL for the update project device status operation
func (*UpdateProjectDeviceStatusURL) Build ¶
func (o *UpdateProjectDeviceStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateProjectDeviceStatusURL) BuildFull ¶
func (o *UpdateProjectDeviceStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateProjectDeviceStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateProjectDeviceStatusURL) SetBasePath ¶
func (o *UpdateProjectDeviceStatusURL) 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 (*UpdateProjectDeviceStatusURL) String ¶
func (o *UpdateProjectDeviceStatusURL) String() string
String returns the string representation of the path with query string
func (*UpdateProjectDeviceStatusURL) StringFull ¶
func (o *UpdateProjectDeviceStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateProjectDeviceStatusURL) WithBasePath ¶
func (o *UpdateProjectDeviceStatusURL) WithBasePath(bp string) *UpdateProjectDeviceStatusURL
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 UpdateProjectDeviceURL ¶
type UpdateProjectDeviceURL struct { DeviceID string ProjectID string // contains filtered or unexported fields }
UpdateProjectDeviceURL generates an URL for the update project device operation
func (*UpdateProjectDeviceURL) Build ¶
func (o *UpdateProjectDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateProjectDeviceURL) BuildFull ¶
func (o *UpdateProjectDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateProjectDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateProjectDeviceURL) SetBasePath ¶
func (o *UpdateProjectDeviceURL) 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 (*UpdateProjectDeviceURL) String ¶
func (o *UpdateProjectDeviceURL) String() string
String returns the string representation of the path with query string
func (*UpdateProjectDeviceURL) StringFull ¶
func (o *UpdateProjectDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateProjectDeviceURL) WithBasePath ¶
func (o *UpdateProjectDeviceURL) WithBasePath(bp string) *UpdateProjectDeviceURL
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 UpdateProjectHandler ¶
type UpdateProjectHandler interface {
Handle(UpdateProjectParams, *models.Principal) middleware.Responder
}
UpdateProjectHandler interface for that can handle valid update project params
type UpdateProjectHandlerFunc ¶
type UpdateProjectHandlerFunc func(UpdateProjectParams, *models.Principal) middleware.Responder
UpdateProjectHandlerFunc turns a function with the right signature into a update project handler
func (UpdateProjectHandlerFunc) Handle ¶
func (fn UpdateProjectHandlerFunc) Handle(params UpdateProjectParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateProjectInternalServerError ¶
type UpdateProjectInternalServerError struct { }
UpdateProjectInternalServerError server internal error
swagger:response updateProjectInternalServerError
func NewUpdateProjectInternalServerError ¶
func NewUpdateProjectInternalServerError() *UpdateProjectInternalServerError
NewUpdateProjectInternalServerError creates UpdateProjectInternalServerError with default headers values
func (*UpdateProjectInternalServerError) WriteResponse ¶
func (o *UpdateProjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectNotFound ¶
type UpdateProjectNotFound struct { }
UpdateProjectNotFound project not found
swagger:response updateProjectNotFound
func NewUpdateProjectNotFound ¶
func NewUpdateProjectNotFound() *UpdateProjectNotFound
NewUpdateProjectNotFound creates UpdateProjectNotFound with default headers values
func (*UpdateProjectNotFound) WriteResponse ¶
func (o *UpdateProjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectOK ¶
type UpdateProjectOK struct { }
UpdateProjectOK successfully operation
swagger:response updateProjectOK
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates UpdateProjectOK with default headers values
func (*UpdateProjectOK) WriteResponse ¶
func (o *UpdateProjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateProjectParams ¶
type UpdateProjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*updated project Required: true In: body */ Project *models.Project /*project identifier Required: true In: path */ ProjectID string }
UpdateProjectParams contains all the bound params for the update project operation typically these are obtained from a http.Request
swagger:parameters updateProject
func NewUpdateProjectParams ¶
func NewUpdateProjectParams() UpdateProjectParams
NewUpdateProjectParams creates a new UpdateProjectParams object no default values defined in spec.
func (*UpdateProjectParams) BindRequest ¶
func (o *UpdateProjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateProjectParams() beforehand.
type UpdateProjectURL ¶
type UpdateProjectURL struct { ProjectID string // contains filtered or unexported fields }
UpdateProjectURL generates an URL for the update project operation
func (*UpdateProjectURL) Build ¶
func (o *UpdateProjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateProjectURL) BuildFull ¶
func (o *UpdateProjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateProjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateProjectURL) SetBasePath ¶
func (o *UpdateProjectURL) 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 (*UpdateProjectURL) String ¶
func (o *UpdateProjectURL) String() string
String returns the string representation of the path with query string
func (*UpdateProjectURL) StringFull ¶
func (o *UpdateProjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateProjectURL) WithBasePath ¶
func (o *UpdateProjectURL) WithBasePath(bp string) *UpdateProjectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files
¶
- add_project_device.go
- add_project_device_parameters.go
- add_project_device_responses.go
- add_project_device_urlbuilder.go
- create_project.go
- create_project_parameters.go
- create_project_responses.go
- create_project_urlbuilder.go
- delete_project.go
- delete_project_device.go
- delete_project_device_parameters.go
- delete_project_device_responses.go
- delete_project_device_urlbuilder.go
- delete_project_parameters.go
- delete_project_responses.go
- delete_project_urlbuilder.go
- get_project_device.go
- get_project_device_parameters.go
- get_project_device_responses.go
- get_project_device_urlbuilder.go
- get_project_devices.go
- get_project_devices_parameters.go
- get_project_devices_responses.go
- get_project_devices_urlbuilder.go
- get_project_summary.go
- get_project_summary_parameters.go
- get_project_summary_responses.go
- get_project_summary_urlbuilder.go
- get_projects.go
- get_projects_parameters.go
- get_projects_project_id.go
- get_projects_project_id_parameters.go
- get_projects_project_id_responses.go
- get_projects_project_id_urlbuilder.go
- get_projects_responses.go
- get_projects_urlbuilder.go
- update_project.go
- update_project_device.go
- update_project_device_parameters.go
- update_project_device_responses.go
- update_project_device_status.go
- update_project_device_status_parameters.go
- update_project_device_status_responses.go
- update_project_device_status_urlbuilder.go
- update_project_device_urlbuilder.go
- update_project_parameters.go
- update_project_responses.go
- update_project_urlbuilder.go