robot

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CreateRobotBadRequestCode int = 400

CreateRobotBadRequestCode is the HTTP code returned for type CreateRobotBadRequest

View Source
const CreateRobotCreatedCode int = 201

CreateRobotCreatedCode is the HTTP code returned for type CreateRobotCreated

View Source
const CreateRobotForbiddenCode int = 403

CreateRobotForbiddenCode is the HTTP code returned for type CreateRobotForbidden

View Source
const CreateRobotInternalServerErrorCode int = 500

CreateRobotInternalServerErrorCode is the HTTP code returned for type CreateRobotInternalServerError

View Source
const CreateRobotNotFoundCode int = 404

CreateRobotNotFoundCode is the HTTP code returned for type CreateRobotNotFound

View Source
const CreateRobotUnauthorizedCode int = 401

CreateRobotUnauthorizedCode is the HTTP code returned for type CreateRobotUnauthorized

View Source
const DeleteRobotBadRequestCode int = 400

DeleteRobotBadRequestCode is the HTTP code returned for type DeleteRobotBadRequest

View Source
const DeleteRobotForbiddenCode int = 403

DeleteRobotForbiddenCode is the HTTP code returned for type DeleteRobotForbidden

View Source
const DeleteRobotInternalServerErrorCode int = 500

DeleteRobotInternalServerErrorCode is the HTTP code returned for type DeleteRobotInternalServerError

View Source
const DeleteRobotNotFoundCode int = 404

DeleteRobotNotFoundCode is the HTTP code returned for type DeleteRobotNotFound

View Source
const DeleteRobotOKCode int = 200

DeleteRobotOKCode is the HTTP code returned for type DeleteRobotOK

View Source
const DeleteRobotUnauthorizedCode int = 401

DeleteRobotUnauthorizedCode is the HTTP code returned for type DeleteRobotUnauthorized

View Source
const GetRobotByIDForbiddenCode int = 403

GetRobotByIDForbiddenCode is the HTTP code returned for type GetRobotByIDForbidden

View Source
const GetRobotByIDInternalServerErrorCode int = 500

GetRobotByIDInternalServerErrorCode is the HTTP code returned for type GetRobotByIDInternalServerError

View Source
const GetRobotByIDNotFoundCode int = 404

GetRobotByIDNotFoundCode is the HTTP code returned for type GetRobotByIDNotFound

View Source
const GetRobotByIDOKCode int = 200

GetRobotByIDOKCode is the HTTP code returned for type GetRobotByIDOK

View Source
const GetRobotByIDUnauthorizedCode int = 401

GetRobotByIDUnauthorizedCode is the HTTP code returned for type GetRobotByIDUnauthorized

View Source
const ListRobotBadRequestCode int = 400

ListRobotBadRequestCode is the HTTP code returned for type ListRobotBadRequest

View Source
const ListRobotInternalServerErrorCode int = 500

ListRobotInternalServerErrorCode is the HTTP code returned for type ListRobotInternalServerError

View Source
const ListRobotNotFoundCode int = 404

ListRobotNotFoundCode is the HTTP code returned for type ListRobotNotFound

View Source
const ListRobotOKCode int = 200

ListRobotOKCode is the HTTP code returned for type ListRobotOK

View Source
const RefreshSecBadRequestCode int = 400

RefreshSecBadRequestCode is the HTTP code returned for type RefreshSecBadRequest

View Source
const RefreshSecForbiddenCode int = 403

RefreshSecForbiddenCode is the HTTP code returned for type RefreshSecForbidden

View Source
const RefreshSecInternalServerErrorCode int = 500

RefreshSecInternalServerErrorCode is the HTTP code returned for type RefreshSecInternalServerError

View Source
const RefreshSecNotFoundCode int = 404

RefreshSecNotFoundCode is the HTTP code returned for type RefreshSecNotFound

View Source
const RefreshSecOKCode int = 200

RefreshSecOKCode is the HTTP code returned for type RefreshSecOK

View Source
const RefreshSecUnauthorizedCode int = 401

RefreshSecUnauthorizedCode is the HTTP code returned for type RefreshSecUnauthorized

View Source
const UpdateRobotBadRequestCode int = 400

UpdateRobotBadRequestCode is the HTTP code returned for type UpdateRobotBadRequest

View Source
const UpdateRobotConflictCode int = 409

UpdateRobotConflictCode is the HTTP code returned for type UpdateRobotConflict

View Source
const UpdateRobotForbiddenCode int = 403

UpdateRobotForbiddenCode is the HTTP code returned for type UpdateRobotForbidden

View Source
const UpdateRobotInternalServerErrorCode int = 500

UpdateRobotInternalServerErrorCode is the HTTP code returned for type UpdateRobotInternalServerError

View Source
const UpdateRobotNotFoundCode int = 404

UpdateRobotNotFoundCode is the HTTP code returned for type UpdateRobotNotFound

View Source
const UpdateRobotOKCode int = 200

UpdateRobotOKCode is the HTTP code returned for type UpdateRobotOK

View Source
const UpdateRobotUnauthorizedCode int = 401

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

WithPayload adds the payload to the create robot internal server error response

func (*CreateRobotInternalServerError) WithXRequestID

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

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

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

WithPayload adds the payload to the delete robot internal server error response

func (*DeleteRobotInternalServerError) WithXRequestID

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

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

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

WithPayload adds the payload to the get robot by Id internal server error response

func (*GetRobotByIDInternalServerError) WithXRequestID

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

type GetRobotByIDOK struct {

	/*
	  In: Body
	*/
	Payload *models.Robot `json:"body,omitempty"`
}

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

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

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

func (*ListRobot) ServeHTTP

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

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

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 (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 (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

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

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

WithPayload adds the payload to the refresh sec internal server error response

func (*RefreshSecInternalServerError) WithXRequestID

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

type RefreshSecOK struct {

	/*
	  In: Body
	*/
	Payload *models.RobotSec `json:"body,omitempty"`
}

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

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

WithPayload adds the payload to the update robot internal server error response

func (*UpdateRobotInternalServerError) WithXRequestID

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

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

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 {
	/*The ID of the corresponding request for the response

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.Errors `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

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