Documentation ¶
Index ¶
- Constants
- type CreateRobot
- type CreateRobotBadRequest
- func (o *CreateRobotBadRequest) SetPayload(payload *models.Errors)
- func (o *CreateRobotBadRequest) SetXRequestID(xRequestID string)
- func (o *CreateRobotBadRequest) WithPayload(payload *models.Errors) *CreateRobotBadRequest
- func (o *CreateRobotBadRequest) WithXRequestID(xRequestID string) *CreateRobotBadRequest
- func (o *CreateRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotCreated
- func (o *CreateRobotCreated) SetLocation(location string)
- func (o *CreateRobotCreated) SetPayload(payload *models.RobotCreated)
- func (o *CreateRobotCreated) SetXRequestID(xRequestID string)
- func (o *CreateRobotCreated) WithLocation(location string) *CreateRobotCreated
- func (o *CreateRobotCreated) WithPayload(payload *models.RobotCreated) *CreateRobotCreated
- func (o *CreateRobotCreated) WithXRequestID(xRequestID string) *CreateRobotCreated
- func (o *CreateRobotCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotForbidden
- func (o *CreateRobotForbidden) SetPayload(payload *models.Errors)
- func (o *CreateRobotForbidden) SetXRequestID(xRequestID string)
- func (o *CreateRobotForbidden) WithPayload(payload *models.Errors) *CreateRobotForbidden
- func (o *CreateRobotForbidden) WithXRequestID(xRequestID string) *CreateRobotForbidden
- func (o *CreateRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotHandler
- type CreateRobotHandlerFunc
- type CreateRobotInternalServerError
- func (o *CreateRobotInternalServerError) SetPayload(payload *models.Errors)
- func (o *CreateRobotInternalServerError) SetXRequestID(xRequestID string)
- func (o *CreateRobotInternalServerError) WithPayload(payload *models.Errors) *CreateRobotInternalServerError
- func (o *CreateRobotInternalServerError) WithXRequestID(xRequestID string) *CreateRobotInternalServerError
- func (o *CreateRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotNotFound
- func (o *CreateRobotNotFound) SetPayload(payload *models.Errors)
- func (o *CreateRobotNotFound) SetXRequestID(xRequestID string)
- func (o *CreateRobotNotFound) WithPayload(payload *models.Errors) *CreateRobotNotFound
- func (o *CreateRobotNotFound) WithXRequestID(xRequestID string) *CreateRobotNotFound
- func (o *CreateRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotParams
- type CreateRobotURL
- func (o *CreateRobotURL) Build() (*url.URL, error)
- func (o *CreateRobotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateRobotURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateRobotURL) SetBasePath(bp string)
- func (o *CreateRobotURL) String() string
- func (o *CreateRobotURL) StringFull(scheme, host string) string
- func (o *CreateRobotURL) WithBasePath(bp string) *CreateRobotURL
- type CreateRobotUnauthorized
- func (o *CreateRobotUnauthorized) SetPayload(payload *models.Errors)
- func (o *CreateRobotUnauthorized) SetXRequestID(xRequestID string)
- func (o *CreateRobotUnauthorized) WithPayload(payload *models.Errors) *CreateRobotUnauthorized
- func (o *CreateRobotUnauthorized) WithXRequestID(xRequestID string) *CreateRobotUnauthorized
- func (o *CreateRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobot
- type DeleteRobotBadRequest
- func (o *DeleteRobotBadRequest) SetPayload(payload *models.Errors)
- func (o *DeleteRobotBadRequest) SetXRequestID(xRequestID string)
- func (o *DeleteRobotBadRequest) WithPayload(payload *models.Errors) *DeleteRobotBadRequest
- func (o *DeleteRobotBadRequest) WithXRequestID(xRequestID string) *DeleteRobotBadRequest
- func (o *DeleteRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotForbidden
- func (o *DeleteRobotForbidden) SetPayload(payload *models.Errors)
- func (o *DeleteRobotForbidden) SetXRequestID(xRequestID string)
- func (o *DeleteRobotForbidden) WithPayload(payload *models.Errors) *DeleteRobotForbidden
- func (o *DeleteRobotForbidden) WithXRequestID(xRequestID string) *DeleteRobotForbidden
- func (o *DeleteRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotHandler
- type DeleteRobotHandlerFunc
- type DeleteRobotInternalServerError
- func (o *DeleteRobotInternalServerError) SetPayload(payload *models.Errors)
- func (o *DeleteRobotInternalServerError) SetXRequestID(xRequestID string)
- func (o *DeleteRobotInternalServerError) WithPayload(payload *models.Errors) *DeleteRobotInternalServerError
- func (o *DeleteRobotInternalServerError) WithXRequestID(xRequestID string) *DeleteRobotInternalServerError
- func (o *DeleteRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotNotFound
- func (o *DeleteRobotNotFound) SetPayload(payload *models.Errors)
- func (o *DeleteRobotNotFound) SetXRequestID(xRequestID string)
- func (o *DeleteRobotNotFound) WithPayload(payload *models.Errors) *DeleteRobotNotFound
- func (o *DeleteRobotNotFound) WithXRequestID(xRequestID string) *DeleteRobotNotFound
- func (o *DeleteRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotOK
- type DeleteRobotParams
- type DeleteRobotURL
- func (o *DeleteRobotURL) Build() (*url.URL, error)
- func (o *DeleteRobotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRobotURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRobotURL) SetBasePath(bp string)
- func (o *DeleteRobotURL) String() string
- func (o *DeleteRobotURL) StringFull(scheme, host string) string
- func (o *DeleteRobotURL) WithBasePath(bp string) *DeleteRobotURL
- type DeleteRobotUnauthorized
- func (o *DeleteRobotUnauthorized) SetPayload(payload *models.Errors)
- func (o *DeleteRobotUnauthorized) SetXRequestID(xRequestID string)
- func (o *DeleteRobotUnauthorized) WithPayload(payload *models.Errors) *DeleteRobotUnauthorized
- func (o *DeleteRobotUnauthorized) WithXRequestID(xRequestID string) *DeleteRobotUnauthorized
- func (o *DeleteRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByID
- type GetRobotByIDForbidden
- func (o *GetRobotByIDForbidden) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDForbidden) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDForbidden) WithPayload(payload *models.Errors) *GetRobotByIDForbidden
- func (o *GetRobotByIDForbidden) WithXRequestID(xRequestID string) *GetRobotByIDForbidden
- func (o *GetRobotByIDForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDHandler
- type GetRobotByIDHandlerFunc
- type GetRobotByIDInternalServerError
- func (o *GetRobotByIDInternalServerError) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDInternalServerError) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDInternalServerError) WithPayload(payload *models.Errors) *GetRobotByIDInternalServerError
- func (o *GetRobotByIDInternalServerError) WithXRequestID(xRequestID string) *GetRobotByIDInternalServerError
- func (o *GetRobotByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDNotFound
- func (o *GetRobotByIDNotFound) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDNotFound) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDNotFound) WithPayload(payload *models.Errors) *GetRobotByIDNotFound
- func (o *GetRobotByIDNotFound) WithXRequestID(xRequestID string) *GetRobotByIDNotFound
- func (o *GetRobotByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDOK
- type GetRobotByIDParams
- type GetRobotByIDURL
- func (o *GetRobotByIDURL) Build() (*url.URL, error)
- func (o *GetRobotByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRobotByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRobotByIDURL) SetBasePath(bp string)
- func (o *GetRobotByIDURL) String() string
- func (o *GetRobotByIDURL) StringFull(scheme, host string) string
- func (o *GetRobotByIDURL) WithBasePath(bp string) *GetRobotByIDURL
- type GetRobotByIDUnauthorized
- func (o *GetRobotByIDUnauthorized) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDUnauthorized) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDUnauthorized) WithPayload(payload *models.Errors) *GetRobotByIDUnauthorized
- func (o *GetRobotByIDUnauthorized) WithXRequestID(xRequestID string) *GetRobotByIDUnauthorized
- func (o *GetRobotByIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobot
- type ListRobotBadRequest
- func (o *ListRobotBadRequest) SetPayload(payload *models.Errors)
- func (o *ListRobotBadRequest) SetXRequestID(xRequestID string)
- func (o *ListRobotBadRequest) WithPayload(payload *models.Errors) *ListRobotBadRequest
- func (o *ListRobotBadRequest) WithXRequestID(xRequestID string) *ListRobotBadRequest
- func (o *ListRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotHandler
- type ListRobotHandlerFunc
- type ListRobotInternalServerError
- func (o *ListRobotInternalServerError) SetPayload(payload *models.Errors)
- func (o *ListRobotInternalServerError) SetXRequestID(xRequestID string)
- func (o *ListRobotInternalServerError) WithPayload(payload *models.Errors) *ListRobotInternalServerError
- func (o *ListRobotInternalServerError) WithXRequestID(xRequestID string) *ListRobotInternalServerError
- func (o *ListRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotNotFound
- func (o *ListRobotNotFound) SetPayload(payload *models.Errors)
- func (o *ListRobotNotFound) SetXRequestID(xRequestID string)
- func (o *ListRobotNotFound) WithPayload(payload *models.Errors) *ListRobotNotFound
- func (o *ListRobotNotFound) WithXRequestID(xRequestID string) *ListRobotNotFound
- func (o *ListRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotOK
- func (o *ListRobotOK) SetLink(link string)
- func (o *ListRobotOK) SetPayload(payload []*models.Robot)
- func (o *ListRobotOK) SetXTotalCount(xTotalCount int64)
- func (o *ListRobotOK) WithLink(link string) *ListRobotOK
- func (o *ListRobotOK) WithPayload(payload []*models.Robot) *ListRobotOK
- func (o *ListRobotOK) WithXTotalCount(xTotalCount int64) *ListRobotOK
- func (o *ListRobotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotParams
- type ListRobotURL
- func (o *ListRobotURL) Build() (*url.URL, error)
- func (o *ListRobotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRobotURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRobotURL) SetBasePath(bp string)
- func (o *ListRobotURL) String() string
- func (o *ListRobotURL) StringFull(scheme, host string) string
- func (o *ListRobotURL) WithBasePath(bp string) *ListRobotURL
- type RefreshSec
- type RefreshSecBadRequest
- func (o *RefreshSecBadRequest) SetPayload(payload *models.Errors)
- func (o *RefreshSecBadRequest) SetXRequestID(xRequestID string)
- func (o *RefreshSecBadRequest) WithPayload(payload *models.Errors) *RefreshSecBadRequest
- func (o *RefreshSecBadRequest) WithXRequestID(xRequestID string) *RefreshSecBadRequest
- func (o *RefreshSecBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshSecForbidden
- func (o *RefreshSecForbidden) SetPayload(payload *models.Errors)
- func (o *RefreshSecForbidden) SetXRequestID(xRequestID string)
- func (o *RefreshSecForbidden) WithPayload(payload *models.Errors) *RefreshSecForbidden
- func (o *RefreshSecForbidden) WithXRequestID(xRequestID string) *RefreshSecForbidden
- func (o *RefreshSecForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshSecHandler
- type RefreshSecHandlerFunc
- type RefreshSecInternalServerError
- func (o *RefreshSecInternalServerError) SetPayload(payload *models.Errors)
- func (o *RefreshSecInternalServerError) SetXRequestID(xRequestID string)
- func (o *RefreshSecInternalServerError) WithPayload(payload *models.Errors) *RefreshSecInternalServerError
- func (o *RefreshSecInternalServerError) WithXRequestID(xRequestID string) *RefreshSecInternalServerError
- func (o *RefreshSecInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshSecNotFound
- func (o *RefreshSecNotFound) SetPayload(payload *models.Errors)
- func (o *RefreshSecNotFound) SetXRequestID(xRequestID string)
- func (o *RefreshSecNotFound) WithPayload(payload *models.Errors) *RefreshSecNotFound
- func (o *RefreshSecNotFound) WithXRequestID(xRequestID string) *RefreshSecNotFound
- func (o *RefreshSecNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshSecOK
- type RefreshSecParams
- type RefreshSecURL
- func (o *RefreshSecURL) Build() (*url.URL, error)
- func (o *RefreshSecURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RefreshSecURL) Must(u *url.URL, err error) *url.URL
- func (o *RefreshSecURL) SetBasePath(bp string)
- func (o *RefreshSecURL) String() string
- func (o *RefreshSecURL) StringFull(scheme, host string) string
- func (o *RefreshSecURL) WithBasePath(bp string) *RefreshSecURL
- type RefreshSecUnauthorized
- func (o *RefreshSecUnauthorized) SetPayload(payload *models.Errors)
- func (o *RefreshSecUnauthorized) SetXRequestID(xRequestID string)
- func (o *RefreshSecUnauthorized) WithPayload(payload *models.Errors) *RefreshSecUnauthorized
- func (o *RefreshSecUnauthorized) WithXRequestID(xRequestID string) *RefreshSecUnauthorized
- func (o *RefreshSecUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobot
- type UpdateRobotBadRequest
- func (o *UpdateRobotBadRequest) SetPayload(payload *models.Errors)
- func (o *UpdateRobotBadRequest) SetXRequestID(xRequestID string)
- func (o *UpdateRobotBadRequest) WithPayload(payload *models.Errors) *UpdateRobotBadRequest
- func (o *UpdateRobotBadRequest) WithXRequestID(xRequestID string) *UpdateRobotBadRequest
- func (o *UpdateRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotConflict
- func (o *UpdateRobotConflict) SetPayload(payload *models.Errors)
- func (o *UpdateRobotConflict) SetXRequestID(xRequestID string)
- func (o *UpdateRobotConflict) WithPayload(payload *models.Errors) *UpdateRobotConflict
- func (o *UpdateRobotConflict) WithXRequestID(xRequestID string) *UpdateRobotConflict
- func (o *UpdateRobotConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotForbidden
- func (o *UpdateRobotForbidden) SetPayload(payload *models.Errors)
- func (o *UpdateRobotForbidden) SetXRequestID(xRequestID string)
- func (o *UpdateRobotForbidden) WithPayload(payload *models.Errors) *UpdateRobotForbidden
- func (o *UpdateRobotForbidden) WithXRequestID(xRequestID string) *UpdateRobotForbidden
- func (o *UpdateRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotHandler
- type UpdateRobotHandlerFunc
- type UpdateRobotInternalServerError
- func (o *UpdateRobotInternalServerError) SetPayload(payload *models.Errors)
- func (o *UpdateRobotInternalServerError) SetXRequestID(xRequestID string)
- func (o *UpdateRobotInternalServerError) WithPayload(payload *models.Errors) *UpdateRobotInternalServerError
- func (o *UpdateRobotInternalServerError) WithXRequestID(xRequestID string) *UpdateRobotInternalServerError
- func (o *UpdateRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotNotFound
- func (o *UpdateRobotNotFound) SetPayload(payload *models.Errors)
- func (o *UpdateRobotNotFound) SetXRequestID(xRequestID string)
- func (o *UpdateRobotNotFound) WithPayload(payload *models.Errors) *UpdateRobotNotFound
- func (o *UpdateRobotNotFound) WithXRequestID(xRequestID string) *UpdateRobotNotFound
- func (o *UpdateRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotOK
- type UpdateRobotParams
- type UpdateRobotURL
- func (o *UpdateRobotURL) Build() (*url.URL, error)
- func (o *UpdateRobotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRobotURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRobotURL) SetBasePath(bp string)
- func (o *UpdateRobotURL) String() string
- func (o *UpdateRobotURL) StringFull(scheme, host string) string
- func (o *UpdateRobotURL) WithBasePath(bp string) *UpdateRobotURL
- type UpdateRobotUnauthorized
- func (o *UpdateRobotUnauthorized) SetPayload(payload *models.Errors)
- func (o *UpdateRobotUnauthorized) SetXRequestID(xRequestID string)
- func (o *UpdateRobotUnauthorized) WithPayload(payload *models.Errors) *UpdateRobotUnauthorized
- func (o *UpdateRobotUnauthorized) WithXRequestID(xRequestID string) *UpdateRobotUnauthorized
- func (o *UpdateRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateRobotBadRequestCode int = 400
CreateRobotBadRequestCode is the HTTP code returned for type CreateRobotBadRequest
const CreateRobotCreatedCode int = 201
CreateRobotCreatedCode is the HTTP code returned for type CreateRobotCreated
const CreateRobotForbiddenCode int = 403
CreateRobotForbiddenCode is the HTTP code returned for type CreateRobotForbidden
const CreateRobotInternalServerErrorCode int = 500
CreateRobotInternalServerErrorCode is the HTTP code returned for type CreateRobotInternalServerError
const CreateRobotNotFoundCode int = 404
CreateRobotNotFoundCode is the HTTP code returned for type CreateRobotNotFound
CreateRobotUnauthorizedCode is the HTTP code returned for type CreateRobotUnauthorized
const DeleteRobotBadRequestCode int = 400
DeleteRobotBadRequestCode is the HTTP code returned for type DeleteRobotBadRequest
const DeleteRobotForbiddenCode int = 403
DeleteRobotForbiddenCode is the HTTP code returned for type DeleteRobotForbidden
const DeleteRobotInternalServerErrorCode int = 500
DeleteRobotInternalServerErrorCode is the HTTP code returned for type DeleteRobotInternalServerError
const DeleteRobotNotFoundCode int = 404
DeleteRobotNotFoundCode is the HTTP code returned for type DeleteRobotNotFound
const DeleteRobotOKCode int = 200
DeleteRobotOKCode is the HTTP code returned for type DeleteRobotOK
DeleteRobotUnauthorizedCode is the HTTP code returned for type DeleteRobotUnauthorized
const GetRobotByIDForbiddenCode int = 403
GetRobotByIDForbiddenCode is the HTTP code returned for type GetRobotByIDForbidden
const GetRobotByIDInternalServerErrorCode int = 500
GetRobotByIDInternalServerErrorCode is the HTTP code returned for type GetRobotByIDInternalServerError
const GetRobotByIDNotFoundCode int = 404
GetRobotByIDNotFoundCode is the HTTP code returned for type GetRobotByIDNotFound
const GetRobotByIDOKCode int = 200
GetRobotByIDOKCode is the HTTP code returned for type GetRobotByIDOK
GetRobotByIDUnauthorizedCode is the HTTP code returned for type GetRobotByIDUnauthorized
const ListRobotBadRequestCode int = 400
ListRobotBadRequestCode is the HTTP code returned for type ListRobotBadRequest
const ListRobotInternalServerErrorCode int = 500
ListRobotInternalServerErrorCode is the HTTP code returned for type ListRobotInternalServerError
const ListRobotNotFoundCode int = 404
ListRobotNotFoundCode is the HTTP code returned for type ListRobotNotFound
const ListRobotOKCode int = 200
ListRobotOKCode is the HTTP code returned for type ListRobotOK
const RefreshSecBadRequestCode int = 400
RefreshSecBadRequestCode is the HTTP code returned for type RefreshSecBadRequest
const RefreshSecForbiddenCode int = 403
RefreshSecForbiddenCode is the HTTP code returned for type RefreshSecForbidden
const RefreshSecInternalServerErrorCode int = 500
RefreshSecInternalServerErrorCode is the HTTP code returned for type RefreshSecInternalServerError
const RefreshSecNotFoundCode int = 404
RefreshSecNotFoundCode is the HTTP code returned for type RefreshSecNotFound
const RefreshSecOKCode int = 200
RefreshSecOKCode is the HTTP code returned for type RefreshSecOK
RefreshSecUnauthorizedCode is the HTTP code returned for type RefreshSecUnauthorized
const UpdateRobotBadRequestCode int = 400
UpdateRobotBadRequestCode is the HTTP code returned for type UpdateRobotBadRequest
const UpdateRobotConflictCode int = 409
UpdateRobotConflictCode is the HTTP code returned for type UpdateRobotConflict
const UpdateRobotForbiddenCode int = 403
UpdateRobotForbiddenCode is the HTTP code returned for type UpdateRobotForbidden
const UpdateRobotInternalServerErrorCode int = 500
UpdateRobotInternalServerErrorCode is the HTTP code returned for type UpdateRobotInternalServerError
const UpdateRobotNotFoundCode int = 404
UpdateRobotNotFoundCode is the HTTP code returned for type UpdateRobotNotFound
const UpdateRobotOKCode int = 200
UpdateRobotOKCode is the HTTP code returned for type UpdateRobotOK
UpdateRobotUnauthorizedCode is the HTTP code returned for type UpdateRobotUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRobot ¶
type CreateRobot struct { Context *middleware.Context Handler CreateRobotHandler }
CreateRobot swagger:route POST /robots robot createRobot
Create a robot account ¶
Create a robot account
func NewCreateRobot ¶
func NewCreateRobot(ctx *middleware.Context, handler CreateRobotHandler) *CreateRobot
NewCreateRobot creates a new http.Handler for the create robot operation
func (*CreateRobot) ServeHTTP ¶
func (o *CreateRobot) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateRobotBadRequest ¶
type CreateRobotBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotBadRequest Bad request
swagger:response createRobotBadRequest
func NewCreateRobotBadRequest ¶
func NewCreateRobotBadRequest() *CreateRobotBadRequest
NewCreateRobotBadRequest creates CreateRobotBadRequest with default headers values
func (*CreateRobotBadRequest) SetPayload ¶
func (o *CreateRobotBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot bad request response
func (*CreateRobotBadRequest) SetXRequestID ¶
func (o *CreateRobotBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot bad request response
func (*CreateRobotBadRequest) WithPayload ¶
func (o *CreateRobotBadRequest) WithPayload(payload *models.Errors) *CreateRobotBadRequest
WithPayload adds the payload to the create robot bad request response
func (*CreateRobotBadRequest) WithXRequestID ¶
func (o *CreateRobotBadRequest) WithXRequestID(xRequestID string) *CreateRobotBadRequest
WithXRequestID adds the xRequestId to the create robot bad request response
func (*CreateRobotBadRequest) WriteResponse ¶
func (o *CreateRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotCreated ¶
type CreateRobotCreated struct { /*The location of the resource */ Location string `json:"Location"` /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.RobotCreated `json:"body,omitempty"` }
CreateRobotCreated Created
swagger:response createRobotCreated
func NewCreateRobotCreated ¶
func NewCreateRobotCreated() *CreateRobotCreated
NewCreateRobotCreated creates CreateRobotCreated with default headers values
func (*CreateRobotCreated) SetLocation ¶
func (o *CreateRobotCreated) SetLocation(location string)
SetLocation sets the location to the create robot created response
func (*CreateRobotCreated) SetPayload ¶
func (o *CreateRobotCreated) SetPayload(payload *models.RobotCreated)
SetPayload sets the payload to the create robot created response
func (*CreateRobotCreated) SetXRequestID ¶
func (o *CreateRobotCreated) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot created response
func (*CreateRobotCreated) WithLocation ¶
func (o *CreateRobotCreated) WithLocation(location string) *CreateRobotCreated
WithLocation adds the location to the create robot created response
func (*CreateRobotCreated) WithPayload ¶
func (o *CreateRobotCreated) WithPayload(payload *models.RobotCreated) *CreateRobotCreated
WithPayload adds the payload to the create robot created response
func (*CreateRobotCreated) WithXRequestID ¶
func (o *CreateRobotCreated) WithXRequestID(xRequestID string) *CreateRobotCreated
WithXRequestID adds the xRequestId to the create robot created response
func (*CreateRobotCreated) WriteResponse ¶
func (o *CreateRobotCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotForbidden ¶
type CreateRobotForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotForbidden Forbidden
swagger:response createRobotForbidden
func NewCreateRobotForbidden ¶
func NewCreateRobotForbidden() *CreateRobotForbidden
NewCreateRobotForbidden creates CreateRobotForbidden with default headers values
func (*CreateRobotForbidden) SetPayload ¶
func (o *CreateRobotForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot forbidden response
func (*CreateRobotForbidden) SetXRequestID ¶
func (o *CreateRobotForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot forbidden response
func (*CreateRobotForbidden) WithPayload ¶
func (o *CreateRobotForbidden) WithPayload(payload *models.Errors) *CreateRobotForbidden
WithPayload adds the payload to the create robot forbidden response
func (*CreateRobotForbidden) WithXRequestID ¶
func (o *CreateRobotForbidden) WithXRequestID(xRequestID string) *CreateRobotForbidden
WithXRequestID adds the xRequestId to the create robot forbidden response
func (*CreateRobotForbidden) WriteResponse ¶
func (o *CreateRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotHandler ¶
type CreateRobotHandler interface {
Handle(CreateRobotParams, interface{}) middleware.Responder
}
CreateRobotHandler interface for that can handle valid create robot params
type CreateRobotHandlerFunc ¶
type CreateRobotHandlerFunc func(CreateRobotParams, interface{}) middleware.Responder
CreateRobotHandlerFunc turns a function with the right signature into a create robot handler
func (CreateRobotHandlerFunc) Handle ¶
func (fn CreateRobotHandlerFunc) Handle(params CreateRobotParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateRobotInternalServerError ¶
type CreateRobotInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotInternalServerError Internal server error
swagger:response createRobotInternalServerError
func NewCreateRobotInternalServerError ¶
func NewCreateRobotInternalServerError() *CreateRobotInternalServerError
NewCreateRobotInternalServerError creates CreateRobotInternalServerError with default headers values
func (*CreateRobotInternalServerError) SetPayload ¶
func (o *CreateRobotInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot internal server error response
func (*CreateRobotInternalServerError) SetXRequestID ¶
func (o *CreateRobotInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot internal server error response
func (*CreateRobotInternalServerError) WithPayload ¶
func (o *CreateRobotInternalServerError) WithPayload(payload *models.Errors) *CreateRobotInternalServerError
WithPayload adds the payload to the create robot internal server error response
func (*CreateRobotInternalServerError) WithXRequestID ¶
func (o *CreateRobotInternalServerError) WithXRequestID(xRequestID string) *CreateRobotInternalServerError
WithXRequestID adds the xRequestId to the create robot internal server error response
func (*CreateRobotInternalServerError) WriteResponse ¶
func (o *CreateRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotNotFound ¶
type CreateRobotNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotNotFound Not found
swagger:response createRobotNotFound
func NewCreateRobotNotFound ¶
func NewCreateRobotNotFound() *CreateRobotNotFound
NewCreateRobotNotFound creates CreateRobotNotFound with default headers values
func (*CreateRobotNotFound) SetPayload ¶
func (o *CreateRobotNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot not found response
func (*CreateRobotNotFound) SetXRequestID ¶
func (o *CreateRobotNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot not found response
func (*CreateRobotNotFound) WithPayload ¶
func (o *CreateRobotNotFound) WithPayload(payload *models.Errors) *CreateRobotNotFound
WithPayload adds the payload to the create robot not found response
func (*CreateRobotNotFound) WithXRequestID ¶
func (o *CreateRobotNotFound) WithXRequestID(xRequestID string) *CreateRobotNotFound
WithXRequestID adds the xRequestId to the create robot not found response
func (*CreateRobotNotFound) WriteResponse ¶
func (o *CreateRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotParams ¶
type CreateRobotParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The JSON object of a robot account. Required: true In: body */ Robot *models.RobotCreate }
CreateRobotParams contains all the bound params for the create robot operation typically these are obtained from a http.Request
swagger:parameters CreateRobot
func NewCreateRobotParams ¶
func NewCreateRobotParams() CreateRobotParams
NewCreateRobotParams creates a new CreateRobotParams object no default values defined in spec.
func (*CreateRobotParams) BindRequest ¶
func (o *CreateRobotParams) 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 NewCreateRobotParams() beforehand.
type CreateRobotURL ¶
type CreateRobotURL struct {
// contains filtered or unexported fields
}
CreateRobotURL generates an URL for the create robot operation
func (*CreateRobotURL) Build ¶
func (o *CreateRobotURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateRobotURL) BuildFull ¶
func (o *CreateRobotURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateRobotURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateRobotURL) SetBasePath ¶
func (o *CreateRobotURL) 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 (*CreateRobotURL) String ¶
func (o *CreateRobotURL) String() string
String returns the string representation of the path with query string
func (*CreateRobotURL) StringFull ¶
func (o *CreateRobotURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateRobotURL) WithBasePath ¶
func (o *CreateRobotURL) WithBasePath(bp string) *CreateRobotURL
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 CreateRobotUnauthorized ¶
type CreateRobotUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
CreateRobotUnauthorized Unauthorized
swagger:response createRobotUnauthorized
func NewCreateRobotUnauthorized ¶
func NewCreateRobotUnauthorized() *CreateRobotUnauthorized
NewCreateRobotUnauthorized creates CreateRobotUnauthorized with default headers values
func (*CreateRobotUnauthorized) SetPayload ¶
func (o *CreateRobotUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot unauthorized response
func (*CreateRobotUnauthorized) SetXRequestID ¶
func (o *CreateRobotUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot unauthorized response
func (*CreateRobotUnauthorized) WithPayload ¶
func (o *CreateRobotUnauthorized) WithPayload(payload *models.Errors) *CreateRobotUnauthorized
WithPayload adds the payload to the create robot unauthorized response
func (*CreateRobotUnauthorized) WithXRequestID ¶
func (o *CreateRobotUnauthorized) WithXRequestID(xRequestID string) *CreateRobotUnauthorized
WithXRequestID adds the xRequestId to the create robot unauthorized response
func (*CreateRobotUnauthorized) WriteResponse ¶
func (o *CreateRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobot ¶
type DeleteRobot struct { Context *middleware.Context Handler DeleteRobotHandler }
DeleteRobot swagger:route DELETE /robots/{robot_id} robot deleteRobot
Delete a robot account ¶
This endpoint deletes specific robot account information by robot ID.
func NewDeleteRobot ¶
func NewDeleteRobot(ctx *middleware.Context, handler DeleteRobotHandler) *DeleteRobot
NewDeleteRobot creates a new http.Handler for the delete robot operation
func (*DeleteRobot) ServeHTTP ¶
func (o *DeleteRobot) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRobotBadRequest ¶
type DeleteRobotBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotBadRequest Bad request
swagger:response deleteRobotBadRequest
func NewDeleteRobotBadRequest ¶
func NewDeleteRobotBadRequest() *DeleteRobotBadRequest
NewDeleteRobotBadRequest creates DeleteRobotBadRequest with default headers values
func (*DeleteRobotBadRequest) SetPayload ¶
func (o *DeleteRobotBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot bad request response
func (*DeleteRobotBadRequest) SetXRequestID ¶
func (o *DeleteRobotBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot bad request response
func (*DeleteRobotBadRequest) WithPayload ¶
func (o *DeleteRobotBadRequest) WithPayload(payload *models.Errors) *DeleteRobotBadRequest
WithPayload adds the payload to the delete robot bad request response
func (*DeleteRobotBadRequest) WithXRequestID ¶
func (o *DeleteRobotBadRequest) WithXRequestID(xRequestID string) *DeleteRobotBadRequest
WithXRequestID adds the xRequestId to the delete robot bad request response
func (*DeleteRobotBadRequest) WriteResponse ¶
func (o *DeleteRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotForbidden ¶
type DeleteRobotForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotForbidden Forbidden
swagger:response deleteRobotForbidden
func NewDeleteRobotForbidden ¶
func NewDeleteRobotForbidden() *DeleteRobotForbidden
NewDeleteRobotForbidden creates DeleteRobotForbidden with default headers values
func (*DeleteRobotForbidden) SetPayload ¶
func (o *DeleteRobotForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot forbidden response
func (*DeleteRobotForbidden) SetXRequestID ¶
func (o *DeleteRobotForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot forbidden response
func (*DeleteRobotForbidden) WithPayload ¶
func (o *DeleteRobotForbidden) WithPayload(payload *models.Errors) *DeleteRobotForbidden
WithPayload adds the payload to the delete robot forbidden response
func (*DeleteRobotForbidden) WithXRequestID ¶
func (o *DeleteRobotForbidden) WithXRequestID(xRequestID string) *DeleteRobotForbidden
WithXRequestID adds the xRequestId to the delete robot forbidden response
func (*DeleteRobotForbidden) WriteResponse ¶
func (o *DeleteRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotHandler ¶
type DeleteRobotHandler interface {
Handle(DeleteRobotParams, interface{}) middleware.Responder
}
DeleteRobotHandler interface for that can handle valid delete robot params
type DeleteRobotHandlerFunc ¶
type DeleteRobotHandlerFunc func(DeleteRobotParams, interface{}) middleware.Responder
DeleteRobotHandlerFunc turns a function with the right signature into a delete robot handler
func (DeleteRobotHandlerFunc) Handle ¶
func (fn DeleteRobotHandlerFunc) Handle(params DeleteRobotParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteRobotInternalServerError ¶
type DeleteRobotInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotInternalServerError Internal server error
swagger:response deleteRobotInternalServerError
func NewDeleteRobotInternalServerError ¶
func NewDeleteRobotInternalServerError() *DeleteRobotInternalServerError
NewDeleteRobotInternalServerError creates DeleteRobotInternalServerError with default headers values
func (*DeleteRobotInternalServerError) SetPayload ¶
func (o *DeleteRobotInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot internal server error response
func (*DeleteRobotInternalServerError) SetXRequestID ¶
func (o *DeleteRobotInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot internal server error response
func (*DeleteRobotInternalServerError) WithPayload ¶
func (o *DeleteRobotInternalServerError) WithPayload(payload *models.Errors) *DeleteRobotInternalServerError
WithPayload adds the payload to the delete robot internal server error response
func (*DeleteRobotInternalServerError) WithXRequestID ¶
func (o *DeleteRobotInternalServerError) WithXRequestID(xRequestID string) *DeleteRobotInternalServerError
WithXRequestID adds the xRequestId to the delete robot internal server error response
func (*DeleteRobotInternalServerError) WriteResponse ¶
func (o *DeleteRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotNotFound ¶
type DeleteRobotNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotNotFound Not found
swagger:response deleteRobotNotFound
func NewDeleteRobotNotFound ¶
func NewDeleteRobotNotFound() *DeleteRobotNotFound
NewDeleteRobotNotFound creates DeleteRobotNotFound with default headers values
func (*DeleteRobotNotFound) SetPayload ¶
func (o *DeleteRobotNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot not found response
func (*DeleteRobotNotFound) SetXRequestID ¶
func (o *DeleteRobotNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot not found response
func (*DeleteRobotNotFound) WithPayload ¶
func (o *DeleteRobotNotFound) WithPayload(payload *models.Errors) *DeleteRobotNotFound
WithPayload adds the payload to the delete robot not found response
func (*DeleteRobotNotFound) WithXRequestID ¶
func (o *DeleteRobotNotFound) WithXRequestID(xRequestID string) *DeleteRobotNotFound
WithXRequestID adds the xRequestId to the delete robot not found response
func (*DeleteRobotNotFound) WriteResponse ¶
func (o *DeleteRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotOK ¶
type DeleteRobotOK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
DeleteRobotOK Success
swagger:response deleteRobotOK
func NewDeleteRobotOK ¶
func NewDeleteRobotOK() *DeleteRobotOK
NewDeleteRobotOK creates DeleteRobotOK with default headers values
func (*DeleteRobotOK) SetXRequestID ¶
func (o *DeleteRobotOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot o k response
func (*DeleteRobotOK) WithXRequestID ¶
func (o *DeleteRobotOK) WithXRequestID(xRequestID string) *DeleteRobotOK
WithXRequestID adds the xRequestId to the delete robot o k response
func (*DeleteRobotOK) WriteResponse ¶
func (o *DeleteRobotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotParams ¶
type DeleteRobotParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*Robot ID Required: true In: path */ RobotID int64 }
DeleteRobotParams contains all the bound params for the delete robot operation typically these are obtained from a http.Request
swagger:parameters DeleteRobot
func NewDeleteRobotParams ¶
func NewDeleteRobotParams() DeleteRobotParams
NewDeleteRobotParams creates a new DeleteRobotParams object no default values defined in spec.
func (*DeleteRobotParams) BindRequest ¶
func (o *DeleteRobotParams) 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 NewDeleteRobotParams() beforehand.
type DeleteRobotURL ¶
type DeleteRobotURL struct { RobotID int64 // contains filtered or unexported fields }
DeleteRobotURL generates an URL for the delete robot operation
func (*DeleteRobotURL) Build ¶
func (o *DeleteRobotURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRobotURL) BuildFull ¶
func (o *DeleteRobotURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRobotURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRobotURL) SetBasePath ¶
func (o *DeleteRobotURL) 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 (*DeleteRobotURL) String ¶
func (o *DeleteRobotURL) String() string
String returns the string representation of the path with query string
func (*DeleteRobotURL) StringFull ¶
func (o *DeleteRobotURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRobotURL) WithBasePath ¶
func (o *DeleteRobotURL) WithBasePath(bp string) *DeleteRobotURL
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 DeleteRobotUnauthorized ¶
type DeleteRobotUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
DeleteRobotUnauthorized Unauthorized
swagger:response deleteRobotUnauthorized
func NewDeleteRobotUnauthorized ¶
func NewDeleteRobotUnauthorized() *DeleteRobotUnauthorized
NewDeleteRobotUnauthorized creates DeleteRobotUnauthorized with default headers values
func (*DeleteRobotUnauthorized) SetPayload ¶
func (o *DeleteRobotUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot unauthorized response
func (*DeleteRobotUnauthorized) SetXRequestID ¶
func (o *DeleteRobotUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot unauthorized response
func (*DeleteRobotUnauthorized) WithPayload ¶
func (o *DeleteRobotUnauthorized) WithPayload(payload *models.Errors) *DeleteRobotUnauthorized
WithPayload adds the payload to the delete robot unauthorized response
func (*DeleteRobotUnauthorized) WithXRequestID ¶
func (o *DeleteRobotUnauthorized) WithXRequestID(xRequestID string) *DeleteRobotUnauthorized
WithXRequestID adds the xRequestId to the delete robot unauthorized response
func (*DeleteRobotUnauthorized) WriteResponse ¶
func (o *DeleteRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByID ¶
type GetRobotByID struct { Context *middleware.Context Handler GetRobotByIDHandler }
GetRobotByID swagger:route GET /robots/{robot_id} robot getRobotById
Get a robot account ¶
This endpoint returns specific robot account information by robot ID.
func NewGetRobotByID ¶
func NewGetRobotByID(ctx *middleware.Context, handler GetRobotByIDHandler) *GetRobotByID
NewGetRobotByID creates a new http.Handler for the get robot by ID operation
func (*GetRobotByID) ServeHTTP ¶
func (o *GetRobotByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRobotByIDForbidden ¶
type GetRobotByIDForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDForbidden Forbidden
swagger:response getRobotByIdForbidden
func NewGetRobotByIDForbidden ¶
func NewGetRobotByIDForbidden() *GetRobotByIDForbidden
NewGetRobotByIDForbidden creates GetRobotByIDForbidden with default headers values
func (*GetRobotByIDForbidden) SetPayload ¶
func (o *GetRobotByIDForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id forbidden response
func (*GetRobotByIDForbidden) SetXRequestID ¶
func (o *GetRobotByIDForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id forbidden response
func (*GetRobotByIDForbidden) WithPayload ¶
func (o *GetRobotByIDForbidden) WithPayload(payload *models.Errors) *GetRobotByIDForbidden
WithPayload adds the payload to the get robot by Id forbidden response
func (*GetRobotByIDForbidden) WithXRequestID ¶
func (o *GetRobotByIDForbidden) WithXRequestID(xRequestID string) *GetRobotByIDForbidden
WithXRequestID adds the xRequestId to the get robot by Id forbidden response
func (*GetRobotByIDForbidden) WriteResponse ¶
func (o *GetRobotByIDForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDHandler ¶
type GetRobotByIDHandler interface {
Handle(GetRobotByIDParams, interface{}) middleware.Responder
}
GetRobotByIDHandler interface for that can handle valid get robot by ID params
type GetRobotByIDHandlerFunc ¶
type GetRobotByIDHandlerFunc func(GetRobotByIDParams, interface{}) middleware.Responder
GetRobotByIDHandlerFunc turns a function with the right signature into a get robot by ID handler
func (GetRobotByIDHandlerFunc) Handle ¶
func (fn GetRobotByIDHandlerFunc) Handle(params GetRobotByIDParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetRobotByIDInternalServerError ¶
type GetRobotByIDInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDInternalServerError Internal server error
swagger:response getRobotByIdInternalServerError
func NewGetRobotByIDInternalServerError ¶
func NewGetRobotByIDInternalServerError() *GetRobotByIDInternalServerError
NewGetRobotByIDInternalServerError creates GetRobotByIDInternalServerError with default headers values
func (*GetRobotByIDInternalServerError) SetPayload ¶
func (o *GetRobotByIDInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id internal server error response
func (*GetRobotByIDInternalServerError) SetXRequestID ¶
func (o *GetRobotByIDInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id internal server error response
func (*GetRobotByIDInternalServerError) WithPayload ¶
func (o *GetRobotByIDInternalServerError) WithPayload(payload *models.Errors) *GetRobotByIDInternalServerError
WithPayload adds the payload to the get robot by Id internal server error response
func (*GetRobotByIDInternalServerError) WithXRequestID ¶
func (o *GetRobotByIDInternalServerError) WithXRequestID(xRequestID string) *GetRobotByIDInternalServerError
WithXRequestID adds the xRequestId to the get robot by Id internal server error response
func (*GetRobotByIDInternalServerError) WriteResponse ¶
func (o *GetRobotByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDNotFound ¶
type GetRobotByIDNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDNotFound Not found
swagger:response getRobotByIdNotFound
func NewGetRobotByIDNotFound ¶
func NewGetRobotByIDNotFound() *GetRobotByIDNotFound
NewGetRobotByIDNotFound creates GetRobotByIDNotFound with default headers values
func (*GetRobotByIDNotFound) SetPayload ¶
func (o *GetRobotByIDNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id not found response
func (*GetRobotByIDNotFound) SetXRequestID ¶
func (o *GetRobotByIDNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id not found response
func (*GetRobotByIDNotFound) WithPayload ¶
func (o *GetRobotByIDNotFound) WithPayload(payload *models.Errors) *GetRobotByIDNotFound
WithPayload adds the payload to the get robot by Id not found response
func (*GetRobotByIDNotFound) WithXRequestID ¶
func (o *GetRobotByIDNotFound) WithXRequestID(xRequestID string) *GetRobotByIDNotFound
WithXRequestID adds the xRequestId to the get robot by Id not found response
func (*GetRobotByIDNotFound) WriteResponse ¶
func (o *GetRobotByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDOK ¶
GetRobotByIDOK Return matched robot information.
swagger:response getRobotByIdOK
func NewGetRobotByIDOK ¶
func NewGetRobotByIDOK() *GetRobotByIDOK
NewGetRobotByIDOK creates GetRobotByIDOK with default headers values
func (*GetRobotByIDOK) SetPayload ¶
func (o *GetRobotByIDOK) SetPayload(payload *models.Robot)
SetPayload sets the payload to the get robot by Id o k response
func (*GetRobotByIDOK) WithPayload ¶
func (o *GetRobotByIDOK) WithPayload(payload *models.Robot) *GetRobotByIDOK
WithPayload adds the payload to the get robot by Id o k response
func (*GetRobotByIDOK) WriteResponse ¶
func (o *GetRobotByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDParams ¶
type GetRobotByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*Robot ID Required: true In: path */ RobotID int64 }
GetRobotByIDParams contains all the bound params for the get robot by ID operation typically these are obtained from a http.Request
swagger:parameters GetRobotByID
func NewGetRobotByIDParams ¶
func NewGetRobotByIDParams() GetRobotByIDParams
NewGetRobotByIDParams creates a new GetRobotByIDParams object no default values defined in spec.
func (*GetRobotByIDParams) BindRequest ¶
func (o *GetRobotByIDParams) 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 NewGetRobotByIDParams() beforehand.
type GetRobotByIDURL ¶
type GetRobotByIDURL struct { RobotID int64 // contains filtered or unexported fields }
GetRobotByIDURL generates an URL for the get robot by ID operation
func (*GetRobotByIDURL) Build ¶
func (o *GetRobotByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRobotByIDURL) BuildFull ¶
func (o *GetRobotByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRobotByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRobotByIDURL) SetBasePath ¶
func (o *GetRobotByIDURL) 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 (*GetRobotByIDURL) String ¶
func (o *GetRobotByIDURL) String() string
String returns the string representation of the path with query string
func (*GetRobotByIDURL) StringFull ¶
func (o *GetRobotByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRobotByIDURL) WithBasePath ¶
func (o *GetRobotByIDURL) WithBasePath(bp string) *GetRobotByIDURL
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 GetRobotByIDUnauthorized ¶
type GetRobotByIDUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
GetRobotByIDUnauthorized Unauthorized
swagger:response getRobotByIdUnauthorized
func NewGetRobotByIDUnauthorized ¶
func NewGetRobotByIDUnauthorized() *GetRobotByIDUnauthorized
NewGetRobotByIDUnauthorized creates GetRobotByIDUnauthorized with default headers values
func (*GetRobotByIDUnauthorized) SetPayload ¶
func (o *GetRobotByIDUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id unauthorized response
func (*GetRobotByIDUnauthorized) SetXRequestID ¶
func (o *GetRobotByIDUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id unauthorized response
func (*GetRobotByIDUnauthorized) WithPayload ¶
func (o *GetRobotByIDUnauthorized) WithPayload(payload *models.Errors) *GetRobotByIDUnauthorized
WithPayload adds the payload to the get robot by Id unauthorized response
func (*GetRobotByIDUnauthorized) WithXRequestID ¶
func (o *GetRobotByIDUnauthorized) WithXRequestID(xRequestID string) *GetRobotByIDUnauthorized
WithXRequestID adds the xRequestId to the get robot by Id unauthorized response
func (*GetRobotByIDUnauthorized) WriteResponse ¶
func (o *GetRobotByIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobot ¶
type ListRobot struct { Context *middleware.Context Handler ListRobotHandler }
ListRobot swagger:route GET /robots robot listRobot
Get robot account ¶
List the robot accounts with the specified level and project.
func NewListRobot ¶
func NewListRobot(ctx *middleware.Context, handler ListRobotHandler) *ListRobot
NewListRobot creates a new http.Handler for the list robot operation
type ListRobotBadRequest ¶
type ListRobotBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotBadRequest Bad request
swagger:response listRobotBadRequest
func NewListRobotBadRequest ¶
func NewListRobotBadRequest() *ListRobotBadRequest
NewListRobotBadRequest creates ListRobotBadRequest with default headers values
func (*ListRobotBadRequest) SetPayload ¶
func (o *ListRobotBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot bad request response
func (*ListRobotBadRequest) SetXRequestID ¶
func (o *ListRobotBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot bad request response
func (*ListRobotBadRequest) WithPayload ¶
func (o *ListRobotBadRequest) WithPayload(payload *models.Errors) *ListRobotBadRequest
WithPayload adds the payload to the list robot bad request response
func (*ListRobotBadRequest) WithXRequestID ¶
func (o *ListRobotBadRequest) WithXRequestID(xRequestID string) *ListRobotBadRequest
WithXRequestID adds the xRequestId to the list robot bad request response
func (*ListRobotBadRequest) WriteResponse ¶
func (o *ListRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotHandler ¶
type ListRobotHandler interface {
Handle(ListRobotParams, interface{}) middleware.Responder
}
ListRobotHandler interface for that can handle valid list robot params
type ListRobotHandlerFunc ¶
type ListRobotHandlerFunc func(ListRobotParams, interface{}) middleware.Responder
ListRobotHandlerFunc turns a function with the right signature into a list robot handler
func (ListRobotHandlerFunc) Handle ¶
func (fn ListRobotHandlerFunc) Handle(params ListRobotParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListRobotInternalServerError ¶
type ListRobotInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotInternalServerError Internal server error
swagger:response listRobotInternalServerError
func NewListRobotInternalServerError ¶
func NewListRobotInternalServerError() *ListRobotInternalServerError
NewListRobotInternalServerError creates ListRobotInternalServerError with default headers values
func (*ListRobotInternalServerError) SetPayload ¶
func (o *ListRobotInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot internal server error response
func (*ListRobotInternalServerError) SetXRequestID ¶
func (o *ListRobotInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot internal server error response
func (*ListRobotInternalServerError) WithPayload ¶
func (o *ListRobotInternalServerError) WithPayload(payload *models.Errors) *ListRobotInternalServerError
WithPayload adds the payload to the list robot internal server error response
func (*ListRobotInternalServerError) WithXRequestID ¶
func (o *ListRobotInternalServerError) WithXRequestID(xRequestID string) *ListRobotInternalServerError
WithXRequestID adds the xRequestId to the list robot internal server error response
func (*ListRobotInternalServerError) WriteResponse ¶
func (o *ListRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotNotFound ¶
type ListRobotNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotNotFound Not found
swagger:response listRobotNotFound
func NewListRobotNotFound ¶
func NewListRobotNotFound() *ListRobotNotFound
NewListRobotNotFound creates ListRobotNotFound with default headers values
func (*ListRobotNotFound) SetPayload ¶
func (o *ListRobotNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot not found response
func (*ListRobotNotFound) SetXRequestID ¶
func (o *ListRobotNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot not found response
func (*ListRobotNotFound) WithPayload ¶
func (o *ListRobotNotFound) WithPayload(payload *models.Errors) *ListRobotNotFound
WithPayload adds the payload to the list robot not found response
func (*ListRobotNotFound) WithXRequestID ¶
func (o *ListRobotNotFound) WithXRequestID(xRequestID string) *ListRobotNotFound
WithXRequestID adds the xRequestId to the list robot not found response
func (*ListRobotNotFound) WriteResponse ¶
func (o *ListRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotOK ¶
type ListRobotOK struct { /*Link refers to the previous page and next page */ Link string `json:"Link"` /*The total count of robot accounts */ XTotalCount int64 `json:"X-Total-Count"` /* In: Body */ Payload []*models.Robot `json:"body,omitempty"` }
ListRobotOK Success
swagger:response listRobotOK
func NewListRobotOK ¶
func NewListRobotOK() *ListRobotOK
NewListRobotOK creates ListRobotOK with default headers values
func (*ListRobotOK) SetLink ¶
func (o *ListRobotOK) SetLink(link string)
SetLink sets the link to the list robot o k response
func (*ListRobotOK) SetPayload ¶
func (o *ListRobotOK) SetPayload(payload []*models.Robot)
SetPayload sets the payload to the list robot o k response
func (*ListRobotOK) SetXTotalCount ¶
func (o *ListRobotOK) SetXTotalCount(xTotalCount int64)
SetXTotalCount sets the xTotalCount to the list robot o k response
func (*ListRobotOK) WithLink ¶
func (o *ListRobotOK) WithLink(link string) *ListRobotOK
WithLink adds the link to the list robot o k response
func (*ListRobotOK) WithPayload ¶
func (o *ListRobotOK) WithPayload(payload []*models.Robot) *ListRobotOK
WithPayload adds the payload to the list robot o k response
func (*ListRobotOK) WithXTotalCount ¶
func (o *ListRobotOK) WithXTotalCount(xTotalCount int64) *ListRobotOK
WithXTotalCount adds the xTotalCount to the list robot o k response
func (*ListRobotOK) WriteResponse ¶
func (o *ListRobotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotParams ¶
type ListRobotParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The page number In: query Default: 1 */ Page *int64 /*The size of per page Maximum: 100 In: query Default: 10 */ PageSize *int64 /*Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] In: query */ Q *string }
ListRobotParams contains all the bound params for the list robot operation typically these are obtained from a http.Request
swagger:parameters ListRobot
func NewListRobotParams ¶
func NewListRobotParams() ListRobotParams
NewListRobotParams creates a new ListRobotParams object with the default values initialized.
func (*ListRobotParams) BindRequest ¶
func (o *ListRobotParams) 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 NewListRobotParams() beforehand.
type ListRobotURL ¶
type ListRobotURL struct { Page *int64 PageSize *int64 Q *string // contains filtered or unexported fields }
ListRobotURL generates an URL for the list robot operation
func (*ListRobotURL) Build ¶
func (o *ListRobotURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRobotURL) BuildFull ¶
func (o *ListRobotURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRobotURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListRobotURL) SetBasePath ¶
func (o *ListRobotURL) 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 (*ListRobotURL) String ¶
func (o *ListRobotURL) String() string
String returns the string representation of the path with query string
func (*ListRobotURL) StringFull ¶
func (o *ListRobotURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRobotURL) WithBasePath ¶
func (o *ListRobotURL) WithBasePath(bp string) *ListRobotURL
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 RefreshSec ¶
type RefreshSec struct { Context *middleware.Context Handler RefreshSecHandler }
RefreshSec swagger:route PATCH /robots/{robot_id} robot refreshSec
Refresh the robot secret ¶
Refresh the robot secret
func NewRefreshSec ¶
func NewRefreshSec(ctx *middleware.Context, handler RefreshSecHandler) *RefreshSec
NewRefreshSec creates a new http.Handler for the refresh sec operation
func (*RefreshSec) ServeHTTP ¶
func (o *RefreshSec) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RefreshSecBadRequest ¶
type RefreshSecBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
RefreshSecBadRequest Bad request
swagger:response refreshSecBadRequest
func NewRefreshSecBadRequest ¶
func NewRefreshSecBadRequest() *RefreshSecBadRequest
NewRefreshSecBadRequest creates RefreshSecBadRequest with default headers values
func (*RefreshSecBadRequest) SetPayload ¶
func (o *RefreshSecBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the refresh sec bad request response
func (*RefreshSecBadRequest) SetXRequestID ¶
func (o *RefreshSecBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the refresh sec bad request response
func (*RefreshSecBadRequest) WithPayload ¶
func (o *RefreshSecBadRequest) WithPayload(payload *models.Errors) *RefreshSecBadRequest
WithPayload adds the payload to the refresh sec bad request response
func (*RefreshSecBadRequest) WithXRequestID ¶
func (o *RefreshSecBadRequest) WithXRequestID(xRequestID string) *RefreshSecBadRequest
WithXRequestID adds the xRequestId to the refresh sec bad request response
func (*RefreshSecBadRequest) WriteResponse ¶
func (o *RefreshSecBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshSecForbidden ¶
type RefreshSecForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
RefreshSecForbidden Forbidden
swagger:response refreshSecForbidden
func NewRefreshSecForbidden ¶
func NewRefreshSecForbidden() *RefreshSecForbidden
NewRefreshSecForbidden creates RefreshSecForbidden with default headers values
func (*RefreshSecForbidden) SetPayload ¶
func (o *RefreshSecForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the refresh sec forbidden response
func (*RefreshSecForbidden) SetXRequestID ¶
func (o *RefreshSecForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the refresh sec forbidden response
func (*RefreshSecForbidden) WithPayload ¶
func (o *RefreshSecForbidden) WithPayload(payload *models.Errors) *RefreshSecForbidden
WithPayload adds the payload to the refresh sec forbidden response
func (*RefreshSecForbidden) WithXRequestID ¶
func (o *RefreshSecForbidden) WithXRequestID(xRequestID string) *RefreshSecForbidden
WithXRequestID adds the xRequestId to the refresh sec forbidden response
func (*RefreshSecForbidden) WriteResponse ¶
func (o *RefreshSecForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshSecHandler ¶
type RefreshSecHandler interface {
Handle(RefreshSecParams, interface{}) middleware.Responder
}
RefreshSecHandler interface for that can handle valid refresh sec params
type RefreshSecHandlerFunc ¶
type RefreshSecHandlerFunc func(RefreshSecParams, interface{}) middleware.Responder
RefreshSecHandlerFunc turns a function with the right signature into a refresh sec handler
func (RefreshSecHandlerFunc) Handle ¶
func (fn RefreshSecHandlerFunc) Handle(params RefreshSecParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type RefreshSecInternalServerError ¶
type RefreshSecInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
RefreshSecInternalServerError Internal server error
swagger:response refreshSecInternalServerError
func NewRefreshSecInternalServerError ¶
func NewRefreshSecInternalServerError() *RefreshSecInternalServerError
NewRefreshSecInternalServerError creates RefreshSecInternalServerError with default headers values
func (*RefreshSecInternalServerError) SetPayload ¶
func (o *RefreshSecInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the refresh sec internal server error response
func (*RefreshSecInternalServerError) SetXRequestID ¶
func (o *RefreshSecInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the refresh sec internal server error response
func (*RefreshSecInternalServerError) WithPayload ¶
func (o *RefreshSecInternalServerError) WithPayload(payload *models.Errors) *RefreshSecInternalServerError
WithPayload adds the payload to the refresh sec internal server error response
func (*RefreshSecInternalServerError) WithXRequestID ¶
func (o *RefreshSecInternalServerError) WithXRequestID(xRequestID string) *RefreshSecInternalServerError
WithXRequestID adds the xRequestId to the refresh sec internal server error response
func (*RefreshSecInternalServerError) WriteResponse ¶
func (o *RefreshSecInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshSecNotFound ¶
type RefreshSecNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
RefreshSecNotFound Not found
swagger:response refreshSecNotFound
func NewRefreshSecNotFound ¶
func NewRefreshSecNotFound() *RefreshSecNotFound
NewRefreshSecNotFound creates RefreshSecNotFound with default headers values
func (*RefreshSecNotFound) SetPayload ¶
func (o *RefreshSecNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the refresh sec not found response
func (*RefreshSecNotFound) SetXRequestID ¶
func (o *RefreshSecNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the refresh sec not found response
func (*RefreshSecNotFound) WithPayload ¶
func (o *RefreshSecNotFound) WithPayload(payload *models.Errors) *RefreshSecNotFound
WithPayload adds the payload to the refresh sec not found response
func (*RefreshSecNotFound) WithXRequestID ¶
func (o *RefreshSecNotFound) WithXRequestID(xRequestID string) *RefreshSecNotFound
WithXRequestID adds the xRequestId to the refresh sec not found response
func (*RefreshSecNotFound) WriteResponse ¶
func (o *RefreshSecNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshSecOK ¶
RefreshSecOK Return refreshed robot sec.
swagger:response refreshSecOK
func NewRefreshSecOK ¶
func NewRefreshSecOK() *RefreshSecOK
NewRefreshSecOK creates RefreshSecOK with default headers values
func (*RefreshSecOK) SetPayload ¶
func (o *RefreshSecOK) SetPayload(payload *models.RobotSec)
SetPayload sets the payload to the refresh sec o k response
func (*RefreshSecOK) WithPayload ¶
func (o *RefreshSecOK) WithPayload(payload *models.RobotSec) *RefreshSecOK
WithPayload adds the payload to the refresh sec o k response
func (*RefreshSecOK) WriteResponse ¶
func (o *RefreshSecOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshSecParams ¶
type RefreshSecParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The JSON object of a robot account. Required: true In: body */ RobotSec *models.RobotSec /*Robot ID Required: true In: path */ RobotID int64 }
RefreshSecParams contains all the bound params for the refresh sec operation typically these are obtained from a http.Request
swagger:parameters RefreshSec
func NewRefreshSecParams ¶
func NewRefreshSecParams() RefreshSecParams
NewRefreshSecParams creates a new RefreshSecParams object no default values defined in spec.
func (*RefreshSecParams) BindRequest ¶
func (o *RefreshSecParams) 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 NewRefreshSecParams() beforehand.
type RefreshSecURL ¶
type RefreshSecURL struct { RobotID int64 // contains filtered or unexported fields }
RefreshSecURL generates an URL for the refresh sec operation
func (*RefreshSecURL) Build ¶
func (o *RefreshSecURL) Build() (*url.URL, error)
Build a url path and query string
func (*RefreshSecURL) BuildFull ¶
func (o *RefreshSecURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RefreshSecURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RefreshSecURL) SetBasePath ¶
func (o *RefreshSecURL) 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 (*RefreshSecURL) String ¶
func (o *RefreshSecURL) String() string
String returns the string representation of the path with query string
func (*RefreshSecURL) StringFull ¶
func (o *RefreshSecURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RefreshSecURL) WithBasePath ¶
func (o *RefreshSecURL) WithBasePath(bp string) *RefreshSecURL
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 RefreshSecUnauthorized ¶
type RefreshSecUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
RefreshSecUnauthorized Unauthorized
swagger:response refreshSecUnauthorized
func NewRefreshSecUnauthorized ¶
func NewRefreshSecUnauthorized() *RefreshSecUnauthorized
NewRefreshSecUnauthorized creates RefreshSecUnauthorized with default headers values
func (*RefreshSecUnauthorized) SetPayload ¶
func (o *RefreshSecUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the refresh sec unauthorized response
func (*RefreshSecUnauthorized) SetXRequestID ¶
func (o *RefreshSecUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the refresh sec unauthorized response
func (*RefreshSecUnauthorized) WithPayload ¶
func (o *RefreshSecUnauthorized) WithPayload(payload *models.Errors) *RefreshSecUnauthorized
WithPayload adds the payload to the refresh sec unauthorized response
func (*RefreshSecUnauthorized) WithXRequestID ¶
func (o *RefreshSecUnauthorized) WithXRequestID(xRequestID string) *RefreshSecUnauthorized
WithXRequestID adds the xRequestId to the refresh sec unauthorized response
func (*RefreshSecUnauthorized) WriteResponse ¶
func (o *RefreshSecUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobot ¶
type UpdateRobot struct { Context *middleware.Context Handler UpdateRobotHandler }
UpdateRobot swagger:route PUT /robots/{robot_id} robot updateRobot
Update a robot account ¶
This endpoint updates specific robot account information by robot ID.
func NewUpdateRobot ¶
func NewUpdateRobot(ctx *middleware.Context, handler UpdateRobotHandler) *UpdateRobot
NewUpdateRobot creates a new http.Handler for the update robot operation
func (*UpdateRobot) ServeHTTP ¶
func (o *UpdateRobot) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRobotBadRequest ¶
type UpdateRobotBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotBadRequest Bad request
swagger:response updateRobotBadRequest
func NewUpdateRobotBadRequest ¶
func NewUpdateRobotBadRequest() *UpdateRobotBadRequest
NewUpdateRobotBadRequest creates UpdateRobotBadRequest with default headers values
func (*UpdateRobotBadRequest) SetPayload ¶
func (o *UpdateRobotBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot bad request response
func (*UpdateRobotBadRequest) SetXRequestID ¶
func (o *UpdateRobotBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot bad request response
func (*UpdateRobotBadRequest) WithPayload ¶
func (o *UpdateRobotBadRequest) WithPayload(payload *models.Errors) *UpdateRobotBadRequest
WithPayload adds the payload to the update robot bad request response
func (*UpdateRobotBadRequest) WithXRequestID ¶
func (o *UpdateRobotBadRequest) WithXRequestID(xRequestID string) *UpdateRobotBadRequest
WithXRequestID adds the xRequestId to the update robot bad request response
func (*UpdateRobotBadRequest) WriteResponse ¶
func (o *UpdateRobotBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotConflict ¶
type UpdateRobotConflict struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotConflict Conflict
swagger:response updateRobotConflict
func NewUpdateRobotConflict ¶
func NewUpdateRobotConflict() *UpdateRobotConflict
NewUpdateRobotConflict creates UpdateRobotConflict with default headers values
func (*UpdateRobotConflict) SetPayload ¶
func (o *UpdateRobotConflict) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot conflict response
func (*UpdateRobotConflict) SetXRequestID ¶
func (o *UpdateRobotConflict) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot conflict response
func (*UpdateRobotConflict) WithPayload ¶
func (o *UpdateRobotConflict) WithPayload(payload *models.Errors) *UpdateRobotConflict
WithPayload adds the payload to the update robot conflict response
func (*UpdateRobotConflict) WithXRequestID ¶
func (o *UpdateRobotConflict) WithXRequestID(xRequestID string) *UpdateRobotConflict
WithXRequestID adds the xRequestId to the update robot conflict response
func (*UpdateRobotConflict) WriteResponse ¶
func (o *UpdateRobotConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotForbidden ¶
type UpdateRobotForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotForbidden Forbidden
swagger:response updateRobotForbidden
func NewUpdateRobotForbidden ¶
func NewUpdateRobotForbidden() *UpdateRobotForbidden
NewUpdateRobotForbidden creates UpdateRobotForbidden with default headers values
func (*UpdateRobotForbidden) SetPayload ¶
func (o *UpdateRobotForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot forbidden response
func (*UpdateRobotForbidden) SetXRequestID ¶
func (o *UpdateRobotForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot forbidden response
func (*UpdateRobotForbidden) WithPayload ¶
func (o *UpdateRobotForbidden) WithPayload(payload *models.Errors) *UpdateRobotForbidden
WithPayload adds the payload to the update robot forbidden response
func (*UpdateRobotForbidden) WithXRequestID ¶
func (o *UpdateRobotForbidden) WithXRequestID(xRequestID string) *UpdateRobotForbidden
WithXRequestID adds the xRequestId to the update robot forbidden response
func (*UpdateRobotForbidden) WriteResponse ¶
func (o *UpdateRobotForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotHandler ¶
type UpdateRobotHandler interface {
Handle(UpdateRobotParams, interface{}) middleware.Responder
}
UpdateRobotHandler interface for that can handle valid update robot params
type UpdateRobotHandlerFunc ¶
type UpdateRobotHandlerFunc func(UpdateRobotParams, interface{}) middleware.Responder
UpdateRobotHandlerFunc turns a function with the right signature into a update robot handler
func (UpdateRobotHandlerFunc) Handle ¶
func (fn UpdateRobotHandlerFunc) Handle(params UpdateRobotParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateRobotInternalServerError ¶
type UpdateRobotInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotInternalServerError Internal server error
swagger:response updateRobotInternalServerError
func NewUpdateRobotInternalServerError ¶
func NewUpdateRobotInternalServerError() *UpdateRobotInternalServerError
NewUpdateRobotInternalServerError creates UpdateRobotInternalServerError with default headers values
func (*UpdateRobotInternalServerError) SetPayload ¶
func (o *UpdateRobotInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot internal server error response
func (*UpdateRobotInternalServerError) SetXRequestID ¶
func (o *UpdateRobotInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot internal server error response
func (*UpdateRobotInternalServerError) WithPayload ¶
func (o *UpdateRobotInternalServerError) WithPayload(payload *models.Errors) *UpdateRobotInternalServerError
WithPayload adds the payload to the update robot internal server error response
func (*UpdateRobotInternalServerError) WithXRequestID ¶
func (o *UpdateRobotInternalServerError) WithXRequestID(xRequestID string) *UpdateRobotInternalServerError
WithXRequestID adds the xRequestId to the update robot internal server error response
func (*UpdateRobotInternalServerError) WriteResponse ¶
func (o *UpdateRobotInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotNotFound ¶
type UpdateRobotNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotNotFound Not found
swagger:response updateRobotNotFound
func NewUpdateRobotNotFound ¶
func NewUpdateRobotNotFound() *UpdateRobotNotFound
NewUpdateRobotNotFound creates UpdateRobotNotFound with default headers values
func (*UpdateRobotNotFound) SetPayload ¶
func (o *UpdateRobotNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot not found response
func (*UpdateRobotNotFound) SetXRequestID ¶
func (o *UpdateRobotNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot not found response
func (*UpdateRobotNotFound) WithPayload ¶
func (o *UpdateRobotNotFound) WithPayload(payload *models.Errors) *UpdateRobotNotFound
WithPayload adds the payload to the update robot not found response
func (*UpdateRobotNotFound) WithXRequestID ¶
func (o *UpdateRobotNotFound) WithXRequestID(xRequestID string) *UpdateRobotNotFound
WithXRequestID adds the xRequestId to the update robot not found response
func (*UpdateRobotNotFound) WriteResponse ¶
func (o *UpdateRobotNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotOK ¶
type UpdateRobotOK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
UpdateRobotOK Success
swagger:response updateRobotOK
func NewUpdateRobotOK ¶
func NewUpdateRobotOK() *UpdateRobotOK
NewUpdateRobotOK creates UpdateRobotOK with default headers values
func (*UpdateRobotOK) SetXRequestID ¶
func (o *UpdateRobotOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot o k response
func (*UpdateRobotOK) WithXRequestID ¶
func (o *UpdateRobotOK) WithXRequestID(xRequestID string) *UpdateRobotOK
WithXRequestID adds the xRequestId to the update robot o k response
func (*UpdateRobotOK) WriteResponse ¶
func (o *UpdateRobotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotParams ¶
type UpdateRobotParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The JSON object of a robot account. Required: true In: body */ Robot *models.Robot /*Robot ID Required: true In: path */ RobotID int64 }
UpdateRobotParams contains all the bound params for the update robot operation typically these are obtained from a http.Request
swagger:parameters UpdateRobot
func NewUpdateRobotParams ¶
func NewUpdateRobotParams() UpdateRobotParams
NewUpdateRobotParams creates a new UpdateRobotParams object no default values defined in spec.
func (*UpdateRobotParams) BindRequest ¶
func (o *UpdateRobotParams) 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 NewUpdateRobotParams() beforehand.
type UpdateRobotURL ¶
type UpdateRobotURL struct { RobotID int64 // contains filtered or unexported fields }
UpdateRobotURL generates an URL for the update robot operation
func (*UpdateRobotURL) Build ¶
func (o *UpdateRobotURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRobotURL) BuildFull ¶
func (o *UpdateRobotURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRobotURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRobotURL) SetBasePath ¶
func (o *UpdateRobotURL) 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 (*UpdateRobotURL) String ¶
func (o *UpdateRobotURL) String() string
String returns the string representation of the path with query string
func (*UpdateRobotURL) StringFull ¶
func (o *UpdateRobotURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRobotURL) WithBasePath ¶
func (o *UpdateRobotURL) WithBasePath(bp string) *UpdateRobotURL
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 UpdateRobotUnauthorized ¶
type UpdateRobotUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
UpdateRobotUnauthorized Unauthorized
swagger:response updateRobotUnauthorized
func NewUpdateRobotUnauthorized ¶
func NewUpdateRobotUnauthorized() *UpdateRobotUnauthorized
NewUpdateRobotUnauthorized creates UpdateRobotUnauthorized with default headers values
func (*UpdateRobotUnauthorized) SetPayload ¶
func (o *UpdateRobotUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot unauthorized response
func (*UpdateRobotUnauthorized) SetXRequestID ¶
func (o *UpdateRobotUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot unauthorized response
func (*UpdateRobotUnauthorized) WithPayload ¶
func (o *UpdateRobotUnauthorized) WithPayload(payload *models.Errors) *UpdateRobotUnauthorized
WithPayload adds the payload to the update robot unauthorized response
func (*UpdateRobotUnauthorized) WithXRequestID ¶
func (o *UpdateRobotUnauthorized) WithXRequestID(xRequestID string) *UpdateRobotUnauthorized
WithXRequestID adds the xRequestId to the update robot unauthorized response
func (*UpdateRobotUnauthorized) WriteResponse ¶
func (o *UpdateRobotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_robot.go
- create_robot_parameters.go
- create_robot_responses.go
- create_robot_urlbuilder.go
- delete_robot.go
- delete_robot_parameters.go
- delete_robot_responses.go
- delete_robot_urlbuilder.go
- get_robot_by_id.go
- get_robot_by_id_parameters.go
- get_robot_by_id_responses.go
- get_robot_by_id_urlbuilder.go
- list_robot.go
- list_robot_parameters.go
- list_robot_responses.go
- list_robot_urlbuilder.go
- refresh_sec.go
- refresh_sec_parameters.go
- refresh_sec_responses.go
- refresh_sec_urlbuilder.go
- update_robot.go
- update_robot_parameters.go
- update_robot_responses.go
- update_robot_urlbuilder.go