Documentation
¶
Index ¶
- Constants
- type CreateRobotV1
- type CreateRobotV1BadRequest
- func (o *CreateRobotV1BadRequest) SetPayload(payload *models.Errors)
- func (o *CreateRobotV1BadRequest) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1BadRequest) WithPayload(payload *models.Errors) *CreateRobotV1BadRequest
- func (o *CreateRobotV1BadRequest) WithXRequestID(xRequestID string) *CreateRobotV1BadRequest
- func (o *CreateRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotV1Created
- func (o *CreateRobotV1Created) SetLocation(location string)
- func (o *CreateRobotV1Created) SetPayload(payload *models.RobotCreated)
- func (o *CreateRobotV1Created) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1Created) WithLocation(location string) *CreateRobotV1Created
- func (o *CreateRobotV1Created) WithPayload(payload *models.RobotCreated) *CreateRobotV1Created
- func (o *CreateRobotV1Created) WithXRequestID(xRequestID string) *CreateRobotV1Created
- func (o *CreateRobotV1Created) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotV1Forbidden
- func (o *CreateRobotV1Forbidden) SetPayload(payload *models.Errors)
- func (o *CreateRobotV1Forbidden) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1Forbidden) WithPayload(payload *models.Errors) *CreateRobotV1Forbidden
- func (o *CreateRobotV1Forbidden) WithXRequestID(xRequestID string) *CreateRobotV1Forbidden
- func (o *CreateRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotV1Handler
- type CreateRobotV1HandlerFunc
- type CreateRobotV1InternalServerError
- func (o *CreateRobotV1InternalServerError) SetPayload(payload *models.Errors)
- func (o *CreateRobotV1InternalServerError) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1InternalServerError) WithPayload(payload *models.Errors) *CreateRobotV1InternalServerError
- func (o *CreateRobotV1InternalServerError) WithXRequestID(xRequestID string) *CreateRobotV1InternalServerError
- func (o *CreateRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotV1NotFound
- func (o *CreateRobotV1NotFound) SetPayload(payload *models.Errors)
- func (o *CreateRobotV1NotFound) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1NotFound) WithPayload(payload *models.Errors) *CreateRobotV1NotFound
- func (o *CreateRobotV1NotFound) WithXRequestID(xRequestID string) *CreateRobotV1NotFound
- func (o *CreateRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRobotV1Params
- type CreateRobotV1URL
- func (o *CreateRobotV1URL) Build() (*url.URL, error)
- func (o *CreateRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateRobotV1URL) Must(u *url.URL, err error) *url.URL
- func (o *CreateRobotV1URL) SetBasePath(bp string)
- func (o *CreateRobotV1URL) String() string
- func (o *CreateRobotV1URL) StringFull(scheme, host string) string
- func (o *CreateRobotV1URL) WithBasePath(bp string) *CreateRobotV1URL
- type CreateRobotV1Unauthorized
- func (o *CreateRobotV1Unauthorized) SetPayload(payload *models.Errors)
- func (o *CreateRobotV1Unauthorized) SetXRequestID(xRequestID string)
- func (o *CreateRobotV1Unauthorized) WithPayload(payload *models.Errors) *CreateRobotV1Unauthorized
- func (o *CreateRobotV1Unauthorized) WithXRequestID(xRequestID string) *CreateRobotV1Unauthorized
- func (o *CreateRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotV1
- type DeleteRobotV1BadRequest
- func (o *DeleteRobotV1BadRequest) SetPayload(payload *models.Errors)
- func (o *DeleteRobotV1BadRequest) SetXRequestID(xRequestID string)
- func (o *DeleteRobotV1BadRequest) WithPayload(payload *models.Errors) *DeleteRobotV1BadRequest
- func (o *DeleteRobotV1BadRequest) WithXRequestID(xRequestID string) *DeleteRobotV1BadRequest
- func (o *DeleteRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotV1Forbidden
- func (o *DeleteRobotV1Forbidden) SetPayload(payload *models.Errors)
- func (o *DeleteRobotV1Forbidden) SetXRequestID(xRequestID string)
- func (o *DeleteRobotV1Forbidden) WithPayload(payload *models.Errors) *DeleteRobotV1Forbidden
- func (o *DeleteRobotV1Forbidden) WithXRequestID(xRequestID string) *DeleteRobotV1Forbidden
- func (o *DeleteRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotV1Handler
- type DeleteRobotV1HandlerFunc
- type DeleteRobotV1InternalServerError
- func (o *DeleteRobotV1InternalServerError) SetPayload(payload *models.Errors)
- func (o *DeleteRobotV1InternalServerError) SetXRequestID(xRequestID string)
- func (o *DeleteRobotV1InternalServerError) WithPayload(payload *models.Errors) *DeleteRobotV1InternalServerError
- func (o *DeleteRobotV1InternalServerError) WithXRequestID(xRequestID string) *DeleteRobotV1InternalServerError
- func (o *DeleteRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotV1NotFound
- func (o *DeleteRobotV1NotFound) SetPayload(payload *models.Errors)
- func (o *DeleteRobotV1NotFound) SetXRequestID(xRequestID string)
- func (o *DeleteRobotV1NotFound) WithPayload(payload *models.Errors) *DeleteRobotV1NotFound
- func (o *DeleteRobotV1NotFound) WithXRequestID(xRequestID string) *DeleteRobotV1NotFound
- func (o *DeleteRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRobotV1OK
- type DeleteRobotV1Params
- type DeleteRobotV1URL
- func (o *DeleteRobotV1URL) Build() (*url.URL, error)
- func (o *DeleteRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRobotV1URL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRobotV1URL) SetBasePath(bp string)
- func (o *DeleteRobotV1URL) String() string
- func (o *DeleteRobotV1URL) StringFull(scheme, host string) string
- func (o *DeleteRobotV1URL) WithBasePath(bp string) *DeleteRobotV1URL
- type DeleteRobotV1Unauthorized
- func (o *DeleteRobotV1Unauthorized) SetPayload(payload *models.Errors)
- func (o *DeleteRobotV1Unauthorized) SetXRequestID(xRequestID string)
- func (o *DeleteRobotV1Unauthorized) WithPayload(payload *models.Errors) *DeleteRobotV1Unauthorized
- func (o *DeleteRobotV1Unauthorized) WithXRequestID(xRequestID string) *DeleteRobotV1Unauthorized
- func (o *DeleteRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDV1
- type GetRobotByIDV1Forbidden
- func (o *GetRobotByIDV1Forbidden) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDV1Forbidden) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDV1Forbidden) WithPayload(payload *models.Errors) *GetRobotByIDV1Forbidden
- func (o *GetRobotByIDV1Forbidden) WithXRequestID(xRequestID string) *GetRobotByIDV1Forbidden
- func (o *GetRobotByIDV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDV1Handler
- type GetRobotByIDV1HandlerFunc
- type GetRobotByIDV1InternalServerError
- func (o *GetRobotByIDV1InternalServerError) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDV1InternalServerError) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDV1InternalServerError) WithPayload(payload *models.Errors) *GetRobotByIDV1InternalServerError
- func (o *GetRobotByIDV1InternalServerError) WithXRequestID(xRequestID string) *GetRobotByIDV1InternalServerError
- func (o *GetRobotByIDV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDV1NotFound
- func (o *GetRobotByIDV1NotFound) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDV1NotFound) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDV1NotFound) WithPayload(payload *models.Errors) *GetRobotByIDV1NotFound
- func (o *GetRobotByIDV1NotFound) WithXRequestID(xRequestID string) *GetRobotByIDV1NotFound
- func (o *GetRobotByIDV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRobotByIDV1OK
- type GetRobotByIDV1Params
- type GetRobotByIDV1URL
- func (o *GetRobotByIDV1URL) Build() (*url.URL, error)
- func (o *GetRobotByIDV1URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRobotByIDV1URL) Must(u *url.URL, err error) *url.URL
- func (o *GetRobotByIDV1URL) SetBasePath(bp string)
- func (o *GetRobotByIDV1URL) String() string
- func (o *GetRobotByIDV1URL) StringFull(scheme, host string) string
- func (o *GetRobotByIDV1URL) WithBasePath(bp string) *GetRobotByIDV1URL
- type GetRobotByIDV1Unauthorized
- func (o *GetRobotByIDV1Unauthorized) SetPayload(payload *models.Errors)
- func (o *GetRobotByIDV1Unauthorized) SetXRequestID(xRequestID string)
- func (o *GetRobotByIDV1Unauthorized) WithPayload(payload *models.Errors) *GetRobotByIDV1Unauthorized
- func (o *GetRobotByIDV1Unauthorized) WithXRequestID(xRequestID string) *GetRobotByIDV1Unauthorized
- func (o *GetRobotByIDV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotV1
- type ListRobotV1BadRequest
- func (o *ListRobotV1BadRequest) SetPayload(payload *models.Errors)
- func (o *ListRobotV1BadRequest) SetXRequestID(xRequestID string)
- func (o *ListRobotV1BadRequest) WithPayload(payload *models.Errors) *ListRobotV1BadRequest
- func (o *ListRobotV1BadRequest) WithXRequestID(xRequestID string) *ListRobotV1BadRequest
- func (o *ListRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotV1Handler
- type ListRobotV1HandlerFunc
- type ListRobotV1InternalServerError
- func (o *ListRobotV1InternalServerError) SetPayload(payload *models.Errors)
- func (o *ListRobotV1InternalServerError) SetXRequestID(xRequestID string)
- func (o *ListRobotV1InternalServerError) WithPayload(payload *models.Errors) *ListRobotV1InternalServerError
- func (o *ListRobotV1InternalServerError) WithXRequestID(xRequestID string) *ListRobotV1InternalServerError
- func (o *ListRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotV1NotFound
- func (o *ListRobotV1NotFound) SetPayload(payload *models.Errors)
- func (o *ListRobotV1NotFound) SetXRequestID(xRequestID string)
- func (o *ListRobotV1NotFound) WithPayload(payload *models.Errors) *ListRobotV1NotFound
- func (o *ListRobotV1NotFound) WithXRequestID(xRequestID string) *ListRobotV1NotFound
- func (o *ListRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotV1OK
- func (o *ListRobotV1OK) SetLink(link string)
- func (o *ListRobotV1OK) SetPayload(payload []*models.Robot)
- func (o *ListRobotV1OK) SetXTotalCount(xTotalCount int64)
- func (o *ListRobotV1OK) WithLink(link string) *ListRobotV1OK
- func (o *ListRobotV1OK) WithPayload(payload []*models.Robot) *ListRobotV1OK
- func (o *ListRobotV1OK) WithXTotalCount(xTotalCount int64) *ListRobotV1OK
- func (o *ListRobotV1OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRobotV1Params
- type ListRobotV1URL
- func (o *ListRobotV1URL) Build() (*url.URL, error)
- func (o *ListRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRobotV1URL) Must(u *url.URL, err error) *url.URL
- func (o *ListRobotV1URL) SetBasePath(bp string)
- func (o *ListRobotV1URL) String() string
- func (o *ListRobotV1URL) StringFull(scheme, host string) string
- func (o *ListRobotV1URL) WithBasePath(bp string) *ListRobotV1URL
- type UpdateRobotV1
- type UpdateRobotV1BadRequest
- func (o *UpdateRobotV1BadRequest) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1BadRequest) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1BadRequest) WithPayload(payload *models.Errors) *UpdateRobotV1BadRequest
- func (o *UpdateRobotV1BadRequest) WithXRequestID(xRequestID string) *UpdateRobotV1BadRequest
- func (o *UpdateRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotV1Conflict
- func (o *UpdateRobotV1Conflict) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1Conflict) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1Conflict) WithPayload(payload *models.Errors) *UpdateRobotV1Conflict
- func (o *UpdateRobotV1Conflict) WithXRequestID(xRequestID string) *UpdateRobotV1Conflict
- func (o *UpdateRobotV1Conflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotV1Forbidden
- func (o *UpdateRobotV1Forbidden) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1Forbidden) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1Forbidden) WithPayload(payload *models.Errors) *UpdateRobotV1Forbidden
- func (o *UpdateRobotV1Forbidden) WithXRequestID(xRequestID string) *UpdateRobotV1Forbidden
- func (o *UpdateRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotV1Handler
- type UpdateRobotV1HandlerFunc
- type UpdateRobotV1InternalServerError
- func (o *UpdateRobotV1InternalServerError) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1InternalServerError) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1InternalServerError) WithPayload(payload *models.Errors) *UpdateRobotV1InternalServerError
- func (o *UpdateRobotV1InternalServerError) WithXRequestID(xRequestID string) *UpdateRobotV1InternalServerError
- func (o *UpdateRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotV1NotFound
- func (o *UpdateRobotV1NotFound) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1NotFound) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1NotFound) WithPayload(payload *models.Errors) *UpdateRobotV1NotFound
- func (o *UpdateRobotV1NotFound) WithXRequestID(xRequestID string) *UpdateRobotV1NotFound
- func (o *UpdateRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRobotV1OK
- type UpdateRobotV1Params
- type UpdateRobotV1URL
- func (o *UpdateRobotV1URL) Build() (*url.URL, error)
- func (o *UpdateRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRobotV1URL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRobotV1URL) SetBasePath(bp string)
- func (o *UpdateRobotV1URL) String() string
- func (o *UpdateRobotV1URL) StringFull(scheme, host string) string
- func (o *UpdateRobotV1URL) WithBasePath(bp string) *UpdateRobotV1URL
- type UpdateRobotV1Unauthorized
- func (o *UpdateRobotV1Unauthorized) SetPayload(payload *models.Errors)
- func (o *UpdateRobotV1Unauthorized) SetXRequestID(xRequestID string)
- func (o *UpdateRobotV1Unauthorized) WithPayload(payload *models.Errors) *UpdateRobotV1Unauthorized
- func (o *UpdateRobotV1Unauthorized) WithXRequestID(xRequestID string) *UpdateRobotV1Unauthorized
- func (o *UpdateRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateRobotV1BadRequestCode int = 400
CreateRobotV1BadRequestCode is the HTTP code returned for type CreateRobotV1BadRequest
const CreateRobotV1CreatedCode int = 201
CreateRobotV1CreatedCode is the HTTP code returned for type CreateRobotV1Created
const CreateRobotV1ForbiddenCode int = 403
CreateRobotV1ForbiddenCode is the HTTP code returned for type CreateRobotV1Forbidden
const CreateRobotV1InternalServerErrorCode int = 500
CreateRobotV1InternalServerErrorCode is the HTTP code returned for type CreateRobotV1InternalServerError
const CreateRobotV1NotFoundCode int = 404
CreateRobotV1NotFoundCode is the HTTP code returned for type CreateRobotV1NotFound
CreateRobotV1UnauthorizedCode is the HTTP code returned for type CreateRobotV1Unauthorized
const DeleteRobotV1BadRequestCode int = 400
DeleteRobotV1BadRequestCode is the HTTP code returned for type DeleteRobotV1BadRequest
const DeleteRobotV1ForbiddenCode int = 403
DeleteRobotV1ForbiddenCode is the HTTP code returned for type DeleteRobotV1Forbidden
const DeleteRobotV1InternalServerErrorCode int = 500
DeleteRobotV1InternalServerErrorCode is the HTTP code returned for type DeleteRobotV1InternalServerError
const DeleteRobotV1NotFoundCode int = 404
DeleteRobotV1NotFoundCode is the HTTP code returned for type DeleteRobotV1NotFound
const DeleteRobotV1OKCode int = 200
DeleteRobotV1OKCode is the HTTP code returned for type DeleteRobotV1OK
DeleteRobotV1UnauthorizedCode is the HTTP code returned for type DeleteRobotV1Unauthorized
const GetRobotByIDV1ForbiddenCode int = 403
GetRobotByIDV1ForbiddenCode is the HTTP code returned for type GetRobotByIDV1Forbidden
const GetRobotByIDV1InternalServerErrorCode int = 500
GetRobotByIDV1InternalServerErrorCode is the HTTP code returned for type GetRobotByIDV1InternalServerError
const GetRobotByIDV1NotFoundCode int = 404
GetRobotByIDV1NotFoundCode is the HTTP code returned for type GetRobotByIDV1NotFound
const GetRobotByIDV1OKCode int = 200
GetRobotByIDV1OKCode is the HTTP code returned for type GetRobotByIDV1OK
GetRobotByIDV1UnauthorizedCode is the HTTP code returned for type GetRobotByIDV1Unauthorized
const ListRobotV1BadRequestCode int = 400
ListRobotV1BadRequestCode is the HTTP code returned for type ListRobotV1BadRequest
const ListRobotV1InternalServerErrorCode int = 500
ListRobotV1InternalServerErrorCode is the HTTP code returned for type ListRobotV1InternalServerError
const ListRobotV1NotFoundCode int = 404
ListRobotV1NotFoundCode is the HTTP code returned for type ListRobotV1NotFound
const ListRobotV1OKCode int = 200
ListRobotV1OKCode is the HTTP code returned for type ListRobotV1OK
const UpdateRobotV1BadRequestCode int = 400
UpdateRobotV1BadRequestCode is the HTTP code returned for type UpdateRobotV1BadRequest
const UpdateRobotV1ConflictCode int = 409
UpdateRobotV1ConflictCode is the HTTP code returned for type UpdateRobotV1Conflict
const UpdateRobotV1ForbiddenCode int = 403
UpdateRobotV1ForbiddenCode is the HTTP code returned for type UpdateRobotV1Forbidden
const UpdateRobotV1InternalServerErrorCode int = 500
UpdateRobotV1InternalServerErrorCode is the HTTP code returned for type UpdateRobotV1InternalServerError
const UpdateRobotV1NotFoundCode int = 404
UpdateRobotV1NotFoundCode is the HTTP code returned for type UpdateRobotV1NotFound
const UpdateRobotV1OKCode int = 200
UpdateRobotV1OKCode is the HTTP code returned for type UpdateRobotV1OK
UpdateRobotV1UnauthorizedCode is the HTTP code returned for type UpdateRobotV1Unauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRobotV1 ¶
type CreateRobotV1 struct { Context *middleware.Context Handler CreateRobotV1Handler }
CreateRobotV1 swagger:route POST /projects/{project_name_or_id}/robots robotv1 createRobotV1
Create a robot account ¶
Create a robot account
func NewCreateRobotV1 ¶
func NewCreateRobotV1(ctx *middleware.Context, handler CreateRobotV1Handler) *CreateRobotV1
NewCreateRobotV1 creates a new http.Handler for the create robot v1 operation
func (*CreateRobotV1) ServeHTTP ¶
func (o *CreateRobotV1) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateRobotV1BadRequest ¶
type CreateRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotV1BadRequest Bad request
swagger:response createRobotV1BadRequest
func NewCreateRobotV1BadRequest ¶
func NewCreateRobotV1BadRequest() *CreateRobotV1BadRequest
NewCreateRobotV1BadRequest creates CreateRobotV1BadRequest with default headers values
func (*CreateRobotV1BadRequest) SetPayload ¶
func (o *CreateRobotV1BadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot v1 bad request response
func (*CreateRobotV1BadRequest) SetXRequestID ¶
func (o *CreateRobotV1BadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 bad request response
func (*CreateRobotV1BadRequest) WithPayload ¶
func (o *CreateRobotV1BadRequest) WithPayload(payload *models.Errors) *CreateRobotV1BadRequest
WithPayload adds the payload to the create robot v1 bad request response
func (*CreateRobotV1BadRequest) WithXRequestID ¶
func (o *CreateRobotV1BadRequest) WithXRequestID(xRequestID string) *CreateRobotV1BadRequest
WithXRequestID adds the xRequestId to the create robot v1 bad request response
func (*CreateRobotV1BadRequest) WriteResponse ¶
func (o *CreateRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotV1Created ¶
type CreateRobotV1Created 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"` }
CreateRobotV1Created Created
swagger:response createRobotV1Created
func NewCreateRobotV1Created ¶
func NewCreateRobotV1Created() *CreateRobotV1Created
NewCreateRobotV1Created creates CreateRobotV1Created with default headers values
func (*CreateRobotV1Created) SetLocation ¶
func (o *CreateRobotV1Created) SetLocation(location string)
SetLocation sets the location to the create robot v1 created response
func (*CreateRobotV1Created) SetPayload ¶
func (o *CreateRobotV1Created) SetPayload(payload *models.RobotCreated)
SetPayload sets the payload to the create robot v1 created response
func (*CreateRobotV1Created) SetXRequestID ¶
func (o *CreateRobotV1Created) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 created response
func (*CreateRobotV1Created) WithLocation ¶
func (o *CreateRobotV1Created) WithLocation(location string) *CreateRobotV1Created
WithLocation adds the location to the create robot v1 created response
func (*CreateRobotV1Created) WithPayload ¶
func (o *CreateRobotV1Created) WithPayload(payload *models.RobotCreated) *CreateRobotV1Created
WithPayload adds the payload to the create robot v1 created response
func (*CreateRobotV1Created) WithXRequestID ¶
func (o *CreateRobotV1Created) WithXRequestID(xRequestID string) *CreateRobotV1Created
WithXRequestID adds the xRequestId to the create robot v1 created response
func (*CreateRobotV1Created) WriteResponse ¶
func (o *CreateRobotV1Created) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotV1Forbidden ¶
type CreateRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotV1Forbidden Forbidden
swagger:response createRobotV1Forbidden
func NewCreateRobotV1Forbidden ¶
func NewCreateRobotV1Forbidden() *CreateRobotV1Forbidden
NewCreateRobotV1Forbidden creates CreateRobotV1Forbidden with default headers values
func (*CreateRobotV1Forbidden) SetPayload ¶
func (o *CreateRobotV1Forbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot v1 forbidden response
func (*CreateRobotV1Forbidden) SetXRequestID ¶
func (o *CreateRobotV1Forbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 forbidden response
func (*CreateRobotV1Forbidden) WithPayload ¶
func (o *CreateRobotV1Forbidden) WithPayload(payload *models.Errors) *CreateRobotV1Forbidden
WithPayload adds the payload to the create robot v1 forbidden response
func (*CreateRobotV1Forbidden) WithXRequestID ¶
func (o *CreateRobotV1Forbidden) WithXRequestID(xRequestID string) *CreateRobotV1Forbidden
WithXRequestID adds the xRequestId to the create robot v1 forbidden response
func (*CreateRobotV1Forbidden) WriteResponse ¶
func (o *CreateRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotV1Handler ¶
type CreateRobotV1Handler interface {
Handle(CreateRobotV1Params, interface{}) middleware.Responder
}
CreateRobotV1Handler interface for that can handle valid create robot v1 params
type CreateRobotV1HandlerFunc ¶
type CreateRobotV1HandlerFunc func(CreateRobotV1Params, interface{}) middleware.Responder
CreateRobotV1HandlerFunc turns a function with the right signature into a create robot v1 handler
func (CreateRobotV1HandlerFunc) Handle ¶
func (fn CreateRobotV1HandlerFunc) Handle(params CreateRobotV1Params, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateRobotV1InternalServerError ¶
type CreateRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotV1InternalServerError Internal server error
swagger:response createRobotV1InternalServerError
func NewCreateRobotV1InternalServerError ¶
func NewCreateRobotV1InternalServerError() *CreateRobotV1InternalServerError
NewCreateRobotV1InternalServerError creates CreateRobotV1InternalServerError with default headers values
func (*CreateRobotV1InternalServerError) SetPayload ¶
func (o *CreateRobotV1InternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot v1 internal server error response
func (*CreateRobotV1InternalServerError) SetXRequestID ¶
func (o *CreateRobotV1InternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 internal server error response
func (*CreateRobotV1InternalServerError) WithPayload ¶
func (o *CreateRobotV1InternalServerError) WithPayload(payload *models.Errors) *CreateRobotV1InternalServerError
WithPayload adds the payload to the create robot v1 internal server error response
func (*CreateRobotV1InternalServerError) WithXRequestID ¶
func (o *CreateRobotV1InternalServerError) WithXRequestID(xRequestID string) *CreateRobotV1InternalServerError
WithXRequestID adds the xRequestId to the create robot v1 internal server error response
func (*CreateRobotV1InternalServerError) WriteResponse ¶
func (o *CreateRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotV1NotFound ¶
type CreateRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
CreateRobotV1NotFound Not found
swagger:response createRobotV1NotFound
func NewCreateRobotV1NotFound ¶
func NewCreateRobotV1NotFound() *CreateRobotV1NotFound
NewCreateRobotV1NotFound creates CreateRobotV1NotFound with default headers values
func (*CreateRobotV1NotFound) SetPayload ¶
func (o *CreateRobotV1NotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot v1 not found response
func (*CreateRobotV1NotFound) SetXRequestID ¶
func (o *CreateRobotV1NotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 not found response
func (*CreateRobotV1NotFound) WithPayload ¶
func (o *CreateRobotV1NotFound) WithPayload(payload *models.Errors) *CreateRobotV1NotFound
WithPayload adds the payload to the create robot v1 not found response
func (*CreateRobotV1NotFound) WithXRequestID ¶
func (o *CreateRobotV1NotFound) WithXRequestID(xRequestID string) *CreateRobotV1NotFound
WithXRequestID adds the xRequestId to the create robot v1 not found response
func (*CreateRobotV1NotFound) WriteResponse ¶
func (o *CreateRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRobotV1Params ¶
type CreateRobotV1Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. In: header Default: false */ XIsResourceName *bool /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name or id of the project Required: true In: path */ ProjectNameOrID string /*The JSON object of a robot account. Required: true In: body */ Robot *models.RobotCreateV1 }
CreateRobotV1Params contains all the bound params for the create robot v1 operation typically these are obtained from a http.Request
swagger:parameters CreateRobotV1
func NewCreateRobotV1Params ¶
func NewCreateRobotV1Params() CreateRobotV1Params
NewCreateRobotV1Params creates a new CreateRobotV1Params object with the default values initialized.
func (*CreateRobotV1Params) BindRequest ¶
func (o *CreateRobotV1Params) 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 NewCreateRobotV1Params() beforehand.
type CreateRobotV1URL ¶
type CreateRobotV1URL struct { ProjectNameOrID string // contains filtered or unexported fields }
CreateRobotV1URL generates an URL for the create robot v1 operation
func (*CreateRobotV1URL) Build ¶
func (o *CreateRobotV1URL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateRobotV1URL) BuildFull ¶
func (o *CreateRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateRobotV1URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateRobotV1URL) SetBasePath ¶
func (o *CreateRobotV1URL) 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 (*CreateRobotV1URL) String ¶
func (o *CreateRobotV1URL) String() string
String returns the string representation of the path with query string
func (*CreateRobotV1URL) StringFull ¶
func (o *CreateRobotV1URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateRobotV1URL) WithBasePath ¶
func (o *CreateRobotV1URL) WithBasePath(bp string) *CreateRobotV1URL
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 CreateRobotV1Unauthorized ¶
type CreateRobotV1Unauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
CreateRobotV1Unauthorized Unauthorized
swagger:response createRobotV1Unauthorized
func NewCreateRobotV1Unauthorized ¶
func NewCreateRobotV1Unauthorized() *CreateRobotV1Unauthorized
NewCreateRobotV1Unauthorized creates CreateRobotV1Unauthorized with default headers values
func (*CreateRobotV1Unauthorized) SetPayload ¶
func (o *CreateRobotV1Unauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the create robot v1 unauthorized response
func (*CreateRobotV1Unauthorized) SetXRequestID ¶
func (o *CreateRobotV1Unauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create robot v1 unauthorized response
func (*CreateRobotV1Unauthorized) WithPayload ¶
func (o *CreateRobotV1Unauthorized) WithPayload(payload *models.Errors) *CreateRobotV1Unauthorized
WithPayload adds the payload to the create robot v1 unauthorized response
func (*CreateRobotV1Unauthorized) WithXRequestID ¶
func (o *CreateRobotV1Unauthorized) WithXRequestID(xRequestID string) *CreateRobotV1Unauthorized
WithXRequestID adds the xRequestId to the create robot v1 unauthorized response
func (*CreateRobotV1Unauthorized) WriteResponse ¶
func (o *CreateRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1 ¶
type DeleteRobotV1 struct { Context *middleware.Context Handler DeleteRobotV1Handler }
DeleteRobotV1 swagger:route DELETE /projects/{project_name_or_id}/robots/{robot_id} robotv1 deleteRobotV1
Delete a robot account ¶
This endpoint deletes specific robot account information by robot ID.
func NewDeleteRobotV1 ¶
func NewDeleteRobotV1(ctx *middleware.Context, handler DeleteRobotV1Handler) *DeleteRobotV1
NewDeleteRobotV1 creates a new http.Handler for the delete robot v1 operation
func (*DeleteRobotV1) ServeHTTP ¶
func (o *DeleteRobotV1) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRobotV1BadRequest ¶
type DeleteRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotV1BadRequest Bad request
swagger:response deleteRobotV1BadRequest
func NewDeleteRobotV1BadRequest ¶
func NewDeleteRobotV1BadRequest() *DeleteRobotV1BadRequest
NewDeleteRobotV1BadRequest creates DeleteRobotV1BadRequest with default headers values
func (*DeleteRobotV1BadRequest) SetPayload ¶
func (o *DeleteRobotV1BadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot v1 bad request response
func (*DeleteRobotV1BadRequest) SetXRequestID ¶
func (o *DeleteRobotV1BadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 bad request response
func (*DeleteRobotV1BadRequest) WithPayload ¶
func (o *DeleteRobotV1BadRequest) WithPayload(payload *models.Errors) *DeleteRobotV1BadRequest
WithPayload adds the payload to the delete robot v1 bad request response
func (*DeleteRobotV1BadRequest) WithXRequestID ¶
func (o *DeleteRobotV1BadRequest) WithXRequestID(xRequestID string) *DeleteRobotV1BadRequest
WithXRequestID adds the xRequestId to the delete robot v1 bad request response
func (*DeleteRobotV1BadRequest) WriteResponse ¶
func (o *DeleteRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1Forbidden ¶
type DeleteRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotV1Forbidden Forbidden
swagger:response deleteRobotV1Forbidden
func NewDeleteRobotV1Forbidden ¶
func NewDeleteRobotV1Forbidden() *DeleteRobotV1Forbidden
NewDeleteRobotV1Forbidden creates DeleteRobotV1Forbidden with default headers values
func (*DeleteRobotV1Forbidden) SetPayload ¶
func (o *DeleteRobotV1Forbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot v1 forbidden response
func (*DeleteRobotV1Forbidden) SetXRequestID ¶
func (o *DeleteRobotV1Forbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 forbidden response
func (*DeleteRobotV1Forbidden) WithPayload ¶
func (o *DeleteRobotV1Forbidden) WithPayload(payload *models.Errors) *DeleteRobotV1Forbidden
WithPayload adds the payload to the delete robot v1 forbidden response
func (*DeleteRobotV1Forbidden) WithXRequestID ¶
func (o *DeleteRobotV1Forbidden) WithXRequestID(xRequestID string) *DeleteRobotV1Forbidden
WithXRequestID adds the xRequestId to the delete robot v1 forbidden response
func (*DeleteRobotV1Forbidden) WriteResponse ¶
func (o *DeleteRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1Handler ¶
type DeleteRobotV1Handler interface {
Handle(DeleteRobotV1Params, interface{}) middleware.Responder
}
DeleteRobotV1Handler interface for that can handle valid delete robot v1 params
type DeleteRobotV1HandlerFunc ¶
type DeleteRobotV1HandlerFunc func(DeleteRobotV1Params, interface{}) middleware.Responder
DeleteRobotV1HandlerFunc turns a function with the right signature into a delete robot v1 handler
func (DeleteRobotV1HandlerFunc) Handle ¶
func (fn DeleteRobotV1HandlerFunc) Handle(params DeleteRobotV1Params, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteRobotV1InternalServerError ¶
type DeleteRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotV1InternalServerError Internal server error
swagger:response deleteRobotV1InternalServerError
func NewDeleteRobotV1InternalServerError ¶
func NewDeleteRobotV1InternalServerError() *DeleteRobotV1InternalServerError
NewDeleteRobotV1InternalServerError creates DeleteRobotV1InternalServerError with default headers values
func (*DeleteRobotV1InternalServerError) SetPayload ¶
func (o *DeleteRobotV1InternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot v1 internal server error response
func (*DeleteRobotV1InternalServerError) SetXRequestID ¶
func (o *DeleteRobotV1InternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 internal server error response
func (*DeleteRobotV1InternalServerError) WithPayload ¶
func (o *DeleteRobotV1InternalServerError) WithPayload(payload *models.Errors) *DeleteRobotV1InternalServerError
WithPayload adds the payload to the delete robot v1 internal server error response
func (*DeleteRobotV1InternalServerError) WithXRequestID ¶
func (o *DeleteRobotV1InternalServerError) WithXRequestID(xRequestID string) *DeleteRobotV1InternalServerError
WithXRequestID adds the xRequestId to the delete robot v1 internal server error response
func (*DeleteRobotV1InternalServerError) WriteResponse ¶
func (o *DeleteRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1NotFound ¶
type DeleteRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
DeleteRobotV1NotFound Not found
swagger:response deleteRobotV1NotFound
func NewDeleteRobotV1NotFound ¶
func NewDeleteRobotV1NotFound() *DeleteRobotV1NotFound
NewDeleteRobotV1NotFound creates DeleteRobotV1NotFound with default headers values
func (*DeleteRobotV1NotFound) SetPayload ¶
func (o *DeleteRobotV1NotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot v1 not found response
func (*DeleteRobotV1NotFound) SetXRequestID ¶
func (o *DeleteRobotV1NotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 not found response
func (*DeleteRobotV1NotFound) WithPayload ¶
func (o *DeleteRobotV1NotFound) WithPayload(payload *models.Errors) *DeleteRobotV1NotFound
WithPayload adds the payload to the delete robot v1 not found response
func (*DeleteRobotV1NotFound) WithXRequestID ¶
func (o *DeleteRobotV1NotFound) WithXRequestID(xRequestID string) *DeleteRobotV1NotFound
WithXRequestID adds the xRequestId to the delete robot v1 not found response
func (*DeleteRobotV1NotFound) WriteResponse ¶
func (o *DeleteRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1OK ¶
type DeleteRobotV1OK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
DeleteRobotV1OK Success
swagger:response deleteRobotV1OK
func NewDeleteRobotV1OK ¶
func NewDeleteRobotV1OK() *DeleteRobotV1OK
NewDeleteRobotV1OK creates DeleteRobotV1OK with default headers values
func (*DeleteRobotV1OK) SetXRequestID ¶
func (o *DeleteRobotV1OK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 o k response
func (*DeleteRobotV1OK) WithXRequestID ¶
func (o *DeleteRobotV1OK) WithXRequestID(xRequestID string) *DeleteRobotV1OK
WithXRequestID adds the xRequestId to the delete robot v1 o k response
func (*DeleteRobotV1OK) WriteResponse ¶
func (o *DeleteRobotV1OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRobotV1Params ¶
type DeleteRobotV1Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. In: header Default: false */ XIsResourceName *bool /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name or id of the project Required: true In: path */ ProjectNameOrID string /*Robot ID Required: true In: path */ RobotID int64 }
DeleteRobotV1Params contains all the bound params for the delete robot v1 operation typically these are obtained from a http.Request
swagger:parameters DeleteRobotV1
func NewDeleteRobotV1Params ¶
func NewDeleteRobotV1Params() DeleteRobotV1Params
NewDeleteRobotV1Params creates a new DeleteRobotV1Params object with the default values initialized.
func (*DeleteRobotV1Params) BindRequest ¶
func (o *DeleteRobotV1Params) 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 NewDeleteRobotV1Params() beforehand.
type DeleteRobotV1URL ¶
type DeleteRobotV1URL struct { ProjectNameOrID string RobotID int64 // contains filtered or unexported fields }
DeleteRobotV1URL generates an URL for the delete robot v1 operation
func (*DeleteRobotV1URL) Build ¶
func (o *DeleteRobotV1URL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRobotV1URL) BuildFull ¶
func (o *DeleteRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRobotV1URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRobotV1URL) SetBasePath ¶
func (o *DeleteRobotV1URL) 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 (*DeleteRobotV1URL) String ¶
func (o *DeleteRobotV1URL) String() string
String returns the string representation of the path with query string
func (*DeleteRobotV1URL) StringFull ¶
func (o *DeleteRobotV1URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRobotV1URL) WithBasePath ¶
func (o *DeleteRobotV1URL) WithBasePath(bp string) *DeleteRobotV1URL
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 DeleteRobotV1Unauthorized ¶
type DeleteRobotV1Unauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
DeleteRobotV1Unauthorized Unauthorized
swagger:response deleteRobotV1Unauthorized
func NewDeleteRobotV1Unauthorized ¶
func NewDeleteRobotV1Unauthorized() *DeleteRobotV1Unauthorized
NewDeleteRobotV1Unauthorized creates DeleteRobotV1Unauthorized with default headers values
func (*DeleteRobotV1Unauthorized) SetPayload ¶
func (o *DeleteRobotV1Unauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the delete robot v1 unauthorized response
func (*DeleteRobotV1Unauthorized) SetXRequestID ¶
func (o *DeleteRobotV1Unauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete robot v1 unauthorized response
func (*DeleteRobotV1Unauthorized) WithPayload ¶
func (o *DeleteRobotV1Unauthorized) WithPayload(payload *models.Errors) *DeleteRobotV1Unauthorized
WithPayload adds the payload to the delete robot v1 unauthorized response
func (*DeleteRobotV1Unauthorized) WithXRequestID ¶
func (o *DeleteRobotV1Unauthorized) WithXRequestID(xRequestID string) *DeleteRobotV1Unauthorized
WithXRequestID adds the xRequestId to the delete robot v1 unauthorized response
func (*DeleteRobotV1Unauthorized) WriteResponse ¶
func (o *DeleteRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDV1 ¶
type GetRobotByIDV1 struct { Context *middleware.Context Handler GetRobotByIDV1Handler }
GetRobotByIDV1 swagger:route GET /projects/{project_name_or_id}/robots/{robot_id} robotv1 getRobotByIdV1
Get a robot account ¶
This endpoint returns specific robot account information by robot ID.
func NewGetRobotByIDV1 ¶
func NewGetRobotByIDV1(ctx *middleware.Context, handler GetRobotByIDV1Handler) *GetRobotByIDV1
NewGetRobotByIDV1 creates a new http.Handler for the get robot by ID v1 operation
func (*GetRobotByIDV1) ServeHTTP ¶
func (o *GetRobotByIDV1) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRobotByIDV1Forbidden ¶
type GetRobotByIDV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDV1Forbidden Forbidden
swagger:response getRobotByIdV1Forbidden
func NewGetRobotByIDV1Forbidden ¶
func NewGetRobotByIDV1Forbidden() *GetRobotByIDV1Forbidden
NewGetRobotByIDV1Forbidden creates GetRobotByIDV1Forbidden with default headers values
func (*GetRobotByIDV1Forbidden) SetPayload ¶
func (o *GetRobotByIDV1Forbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id v1 forbidden response
func (*GetRobotByIDV1Forbidden) SetXRequestID ¶
func (o *GetRobotByIDV1Forbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id v1 forbidden response
func (*GetRobotByIDV1Forbidden) WithPayload ¶
func (o *GetRobotByIDV1Forbidden) WithPayload(payload *models.Errors) *GetRobotByIDV1Forbidden
WithPayload adds the payload to the get robot by Id v1 forbidden response
func (*GetRobotByIDV1Forbidden) WithXRequestID ¶
func (o *GetRobotByIDV1Forbidden) WithXRequestID(xRequestID string) *GetRobotByIDV1Forbidden
WithXRequestID adds the xRequestId to the get robot by Id v1 forbidden response
func (*GetRobotByIDV1Forbidden) WriteResponse ¶
func (o *GetRobotByIDV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDV1Handler ¶
type GetRobotByIDV1Handler interface {
Handle(GetRobotByIDV1Params, interface{}) middleware.Responder
}
GetRobotByIDV1Handler interface for that can handle valid get robot by ID v1 params
type GetRobotByIDV1HandlerFunc ¶
type GetRobotByIDV1HandlerFunc func(GetRobotByIDV1Params, interface{}) middleware.Responder
GetRobotByIDV1HandlerFunc turns a function with the right signature into a get robot by ID v1 handler
func (GetRobotByIDV1HandlerFunc) Handle ¶
func (fn GetRobotByIDV1HandlerFunc) Handle(params GetRobotByIDV1Params, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetRobotByIDV1InternalServerError ¶
type GetRobotByIDV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDV1InternalServerError Internal server error
swagger:response getRobotByIdV1InternalServerError
func NewGetRobotByIDV1InternalServerError ¶
func NewGetRobotByIDV1InternalServerError() *GetRobotByIDV1InternalServerError
NewGetRobotByIDV1InternalServerError creates GetRobotByIDV1InternalServerError with default headers values
func (*GetRobotByIDV1InternalServerError) SetPayload ¶
func (o *GetRobotByIDV1InternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id v1 internal server error response
func (*GetRobotByIDV1InternalServerError) SetXRequestID ¶
func (o *GetRobotByIDV1InternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id v1 internal server error response
func (*GetRobotByIDV1InternalServerError) WithPayload ¶
func (o *GetRobotByIDV1InternalServerError) WithPayload(payload *models.Errors) *GetRobotByIDV1InternalServerError
WithPayload adds the payload to the get robot by Id v1 internal server error response
func (*GetRobotByIDV1InternalServerError) WithXRequestID ¶
func (o *GetRobotByIDV1InternalServerError) WithXRequestID(xRequestID string) *GetRobotByIDV1InternalServerError
WithXRequestID adds the xRequestId to the get robot by Id v1 internal server error response
func (*GetRobotByIDV1InternalServerError) WriteResponse ¶
func (o *GetRobotByIDV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDV1NotFound ¶
type GetRobotByIDV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetRobotByIDV1NotFound Not found
swagger:response getRobotByIdV1NotFound
func NewGetRobotByIDV1NotFound ¶
func NewGetRobotByIDV1NotFound() *GetRobotByIDV1NotFound
NewGetRobotByIDV1NotFound creates GetRobotByIDV1NotFound with default headers values
func (*GetRobotByIDV1NotFound) SetPayload ¶
func (o *GetRobotByIDV1NotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id v1 not found response
func (*GetRobotByIDV1NotFound) SetXRequestID ¶
func (o *GetRobotByIDV1NotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id v1 not found response
func (*GetRobotByIDV1NotFound) WithPayload ¶
func (o *GetRobotByIDV1NotFound) WithPayload(payload *models.Errors) *GetRobotByIDV1NotFound
WithPayload adds the payload to the get robot by Id v1 not found response
func (*GetRobotByIDV1NotFound) WithXRequestID ¶
func (o *GetRobotByIDV1NotFound) WithXRequestID(xRequestID string) *GetRobotByIDV1NotFound
WithXRequestID adds the xRequestId to the get robot by Id v1 not found response
func (*GetRobotByIDV1NotFound) WriteResponse ¶
func (o *GetRobotByIDV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDV1OK ¶
GetRobotByIDV1OK Return matched robot information.
swagger:response getRobotByIdV1OK
func NewGetRobotByIDV1OK ¶
func NewGetRobotByIDV1OK() *GetRobotByIDV1OK
NewGetRobotByIDV1OK creates GetRobotByIDV1OK with default headers values
func (*GetRobotByIDV1OK) SetPayload ¶
func (o *GetRobotByIDV1OK) SetPayload(payload *models.Robot)
SetPayload sets the payload to the get robot by Id v1 o k response
func (*GetRobotByIDV1OK) WithPayload ¶
func (o *GetRobotByIDV1OK) WithPayload(payload *models.Robot) *GetRobotByIDV1OK
WithPayload adds the payload to the get robot by Id v1 o k response
func (*GetRobotByIDV1OK) WriteResponse ¶
func (o *GetRobotByIDV1OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRobotByIDV1Params ¶
type GetRobotByIDV1Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. In: header Default: false */ XIsResourceName *bool /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name or id of the project Required: true In: path */ ProjectNameOrID string /*Robot ID Required: true In: path */ RobotID int64 }
GetRobotByIDV1Params contains all the bound params for the get robot by ID v1 operation typically these are obtained from a http.Request
swagger:parameters GetRobotByIDV1
func NewGetRobotByIDV1Params ¶
func NewGetRobotByIDV1Params() GetRobotByIDV1Params
NewGetRobotByIDV1Params creates a new GetRobotByIDV1Params object with the default values initialized.
func (*GetRobotByIDV1Params) BindRequest ¶
func (o *GetRobotByIDV1Params) 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 NewGetRobotByIDV1Params() beforehand.
type GetRobotByIDV1URL ¶
type GetRobotByIDV1URL struct { ProjectNameOrID string RobotID int64 // contains filtered or unexported fields }
GetRobotByIDV1URL generates an URL for the get robot by ID v1 operation
func (*GetRobotByIDV1URL) Build ¶
func (o *GetRobotByIDV1URL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRobotByIDV1URL) BuildFull ¶
func (o *GetRobotByIDV1URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRobotByIDV1URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRobotByIDV1URL) SetBasePath ¶
func (o *GetRobotByIDV1URL) 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 (*GetRobotByIDV1URL) String ¶
func (o *GetRobotByIDV1URL) String() string
String returns the string representation of the path with query string
func (*GetRobotByIDV1URL) StringFull ¶
func (o *GetRobotByIDV1URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRobotByIDV1URL) WithBasePath ¶
func (o *GetRobotByIDV1URL) WithBasePath(bp string) *GetRobotByIDV1URL
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 GetRobotByIDV1Unauthorized ¶
type GetRobotByIDV1Unauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
GetRobotByIDV1Unauthorized Unauthorized
swagger:response getRobotByIdV1Unauthorized
func NewGetRobotByIDV1Unauthorized ¶
func NewGetRobotByIDV1Unauthorized() *GetRobotByIDV1Unauthorized
NewGetRobotByIDV1Unauthorized creates GetRobotByIDV1Unauthorized with default headers values
func (*GetRobotByIDV1Unauthorized) SetPayload ¶
func (o *GetRobotByIDV1Unauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get robot by Id v1 unauthorized response
func (*GetRobotByIDV1Unauthorized) SetXRequestID ¶
func (o *GetRobotByIDV1Unauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get robot by Id v1 unauthorized response
func (*GetRobotByIDV1Unauthorized) WithPayload ¶
func (o *GetRobotByIDV1Unauthorized) WithPayload(payload *models.Errors) *GetRobotByIDV1Unauthorized
WithPayload adds the payload to the get robot by Id v1 unauthorized response
func (*GetRobotByIDV1Unauthorized) WithXRequestID ¶
func (o *GetRobotByIDV1Unauthorized) WithXRequestID(xRequestID string) *GetRobotByIDV1Unauthorized
WithXRequestID adds the xRequestId to the get robot by Id v1 unauthorized response
func (*GetRobotByIDV1Unauthorized) WriteResponse ¶
func (o *GetRobotByIDV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotV1 ¶
type ListRobotV1 struct { Context *middleware.Context Handler ListRobotV1Handler }
ListRobotV1 swagger:route GET /projects/{project_name_or_id}/robots robotv1 listRobotV1
Get all robot accounts of specified project ¶
Get all robot accounts of specified project
func NewListRobotV1 ¶
func NewListRobotV1(ctx *middleware.Context, handler ListRobotV1Handler) *ListRobotV1
NewListRobotV1 creates a new http.Handler for the list robot v1 operation
func (*ListRobotV1) ServeHTTP ¶
func (o *ListRobotV1) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListRobotV1BadRequest ¶
type ListRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotV1BadRequest Bad request
swagger:response listRobotV1BadRequest
func NewListRobotV1BadRequest ¶
func NewListRobotV1BadRequest() *ListRobotV1BadRequest
NewListRobotV1BadRequest creates ListRobotV1BadRequest with default headers values
func (*ListRobotV1BadRequest) SetPayload ¶
func (o *ListRobotV1BadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot v1 bad request response
func (*ListRobotV1BadRequest) SetXRequestID ¶
func (o *ListRobotV1BadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot v1 bad request response
func (*ListRobotV1BadRequest) WithPayload ¶
func (o *ListRobotV1BadRequest) WithPayload(payload *models.Errors) *ListRobotV1BadRequest
WithPayload adds the payload to the list robot v1 bad request response
func (*ListRobotV1BadRequest) WithXRequestID ¶
func (o *ListRobotV1BadRequest) WithXRequestID(xRequestID string) *ListRobotV1BadRequest
WithXRequestID adds the xRequestId to the list robot v1 bad request response
func (*ListRobotV1BadRequest) WriteResponse ¶
func (o *ListRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotV1Handler ¶
type ListRobotV1Handler interface {
Handle(ListRobotV1Params, interface{}) middleware.Responder
}
ListRobotV1Handler interface for that can handle valid list robot v1 params
type ListRobotV1HandlerFunc ¶
type ListRobotV1HandlerFunc func(ListRobotV1Params, interface{}) middleware.Responder
ListRobotV1HandlerFunc turns a function with the right signature into a list robot v1 handler
func (ListRobotV1HandlerFunc) Handle ¶
func (fn ListRobotV1HandlerFunc) Handle(params ListRobotV1Params, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListRobotV1InternalServerError ¶
type ListRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotV1InternalServerError Internal server error
swagger:response listRobotV1InternalServerError
func NewListRobotV1InternalServerError ¶
func NewListRobotV1InternalServerError() *ListRobotV1InternalServerError
NewListRobotV1InternalServerError creates ListRobotV1InternalServerError with default headers values
func (*ListRobotV1InternalServerError) SetPayload ¶
func (o *ListRobotV1InternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot v1 internal server error response
func (*ListRobotV1InternalServerError) SetXRequestID ¶
func (o *ListRobotV1InternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot v1 internal server error response
func (*ListRobotV1InternalServerError) WithPayload ¶
func (o *ListRobotV1InternalServerError) WithPayload(payload *models.Errors) *ListRobotV1InternalServerError
WithPayload adds the payload to the list robot v1 internal server error response
func (*ListRobotV1InternalServerError) WithXRequestID ¶
func (o *ListRobotV1InternalServerError) WithXRequestID(xRequestID string) *ListRobotV1InternalServerError
WithXRequestID adds the xRequestId to the list robot v1 internal server error response
func (*ListRobotV1InternalServerError) WriteResponse ¶
func (o *ListRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotV1NotFound ¶
type ListRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ListRobotV1NotFound Not found
swagger:response listRobotV1NotFound
func NewListRobotV1NotFound ¶
func NewListRobotV1NotFound() *ListRobotV1NotFound
NewListRobotV1NotFound creates ListRobotV1NotFound with default headers values
func (*ListRobotV1NotFound) SetPayload ¶
func (o *ListRobotV1NotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the list robot v1 not found response
func (*ListRobotV1NotFound) SetXRequestID ¶
func (o *ListRobotV1NotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the list robot v1 not found response
func (*ListRobotV1NotFound) WithPayload ¶
func (o *ListRobotV1NotFound) WithPayload(payload *models.Errors) *ListRobotV1NotFound
WithPayload adds the payload to the list robot v1 not found response
func (*ListRobotV1NotFound) WithXRequestID ¶
func (o *ListRobotV1NotFound) WithXRequestID(xRequestID string) *ListRobotV1NotFound
WithXRequestID adds the xRequestId to the list robot v1 not found response
func (*ListRobotV1NotFound) WriteResponse ¶
func (o *ListRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotV1OK ¶
type ListRobotV1OK 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"` }
ListRobotV1OK Success
swagger:response listRobotV1OK
func NewListRobotV1OK ¶
func NewListRobotV1OK() *ListRobotV1OK
NewListRobotV1OK creates ListRobotV1OK with default headers values
func (*ListRobotV1OK) SetLink ¶
func (o *ListRobotV1OK) SetLink(link string)
SetLink sets the link to the list robot v1 o k response
func (*ListRobotV1OK) SetPayload ¶
func (o *ListRobotV1OK) SetPayload(payload []*models.Robot)
SetPayload sets the payload to the list robot v1 o k response
func (*ListRobotV1OK) SetXTotalCount ¶
func (o *ListRobotV1OK) SetXTotalCount(xTotalCount int64)
SetXTotalCount sets the xTotalCount to the list robot v1 o k response
func (*ListRobotV1OK) WithLink ¶
func (o *ListRobotV1OK) WithLink(link string) *ListRobotV1OK
WithLink adds the link to the list robot v1 o k response
func (*ListRobotV1OK) WithPayload ¶
func (o *ListRobotV1OK) WithPayload(payload []*models.Robot) *ListRobotV1OK
WithPayload adds the payload to the list robot v1 o k response
func (*ListRobotV1OK) WithXTotalCount ¶
func (o *ListRobotV1OK) WithXTotalCount(xTotalCount int64) *ListRobotV1OK
WithXTotalCount adds the xTotalCount to the list robot v1 o k response
func (*ListRobotV1OK) WriteResponse ¶
func (o *ListRobotV1OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRobotV1Params ¶
type ListRobotV1Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. In: header Default: false */ XIsResourceName *bool /*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 /*The name or id of the project Required: true In: path */ ProjectNameOrID string /*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 }
ListRobotV1Params contains all the bound params for the list robot v1 operation typically these are obtained from a http.Request
swagger:parameters ListRobotV1
func NewListRobotV1Params ¶
func NewListRobotV1Params() ListRobotV1Params
NewListRobotV1Params creates a new ListRobotV1Params object with the default values initialized.
func (*ListRobotV1Params) BindRequest ¶
func (o *ListRobotV1Params) 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 NewListRobotV1Params() beforehand.
type ListRobotV1URL ¶
type ListRobotV1URL struct { ProjectNameOrID string Page *int64 PageSize *int64 Q *string // contains filtered or unexported fields }
ListRobotV1URL generates an URL for the list robot v1 operation
func (*ListRobotV1URL) Build ¶
func (o *ListRobotV1URL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRobotV1URL) BuildFull ¶
func (o *ListRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRobotV1URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListRobotV1URL) SetBasePath ¶
func (o *ListRobotV1URL) 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 (*ListRobotV1URL) String ¶
func (o *ListRobotV1URL) String() string
String returns the string representation of the path with query string
func (*ListRobotV1URL) StringFull ¶
func (o *ListRobotV1URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRobotV1URL) WithBasePath ¶
func (o *ListRobotV1URL) WithBasePath(bp string) *ListRobotV1URL
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 UpdateRobotV1 ¶
type UpdateRobotV1 struct { Context *middleware.Context Handler UpdateRobotV1Handler }
UpdateRobotV1 swagger:route PUT /projects/{project_name_or_id}/robots/{robot_id} robotv1 updateRobotV1
Update status of robot account.
Used to disable/enable a specified robot account.
func NewUpdateRobotV1 ¶
func NewUpdateRobotV1(ctx *middleware.Context, handler UpdateRobotV1Handler) *UpdateRobotV1
NewUpdateRobotV1 creates a new http.Handler for the update robot v1 operation
func (*UpdateRobotV1) ServeHTTP ¶
func (o *UpdateRobotV1) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRobotV1BadRequest ¶
type UpdateRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotV1BadRequest Bad request
swagger:response updateRobotV1BadRequest
func NewUpdateRobotV1BadRequest ¶
func NewUpdateRobotV1BadRequest() *UpdateRobotV1BadRequest
NewUpdateRobotV1BadRequest creates UpdateRobotV1BadRequest with default headers values
func (*UpdateRobotV1BadRequest) SetPayload ¶
func (o *UpdateRobotV1BadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 bad request response
func (*UpdateRobotV1BadRequest) SetXRequestID ¶
func (o *UpdateRobotV1BadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 bad request response
func (*UpdateRobotV1BadRequest) WithPayload ¶
func (o *UpdateRobotV1BadRequest) WithPayload(payload *models.Errors) *UpdateRobotV1BadRequest
WithPayload adds the payload to the update robot v1 bad request response
func (*UpdateRobotV1BadRequest) WithXRequestID ¶
func (o *UpdateRobotV1BadRequest) WithXRequestID(xRequestID string) *UpdateRobotV1BadRequest
WithXRequestID adds the xRequestId to the update robot v1 bad request response
func (*UpdateRobotV1BadRequest) WriteResponse ¶
func (o *UpdateRobotV1BadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1Conflict ¶
type UpdateRobotV1Conflict struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotV1Conflict Conflict
swagger:response updateRobotV1Conflict
func NewUpdateRobotV1Conflict ¶
func NewUpdateRobotV1Conflict() *UpdateRobotV1Conflict
NewUpdateRobotV1Conflict creates UpdateRobotV1Conflict with default headers values
func (*UpdateRobotV1Conflict) SetPayload ¶
func (o *UpdateRobotV1Conflict) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 conflict response
func (*UpdateRobotV1Conflict) SetXRequestID ¶
func (o *UpdateRobotV1Conflict) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 conflict response
func (*UpdateRobotV1Conflict) WithPayload ¶
func (o *UpdateRobotV1Conflict) WithPayload(payload *models.Errors) *UpdateRobotV1Conflict
WithPayload adds the payload to the update robot v1 conflict response
func (*UpdateRobotV1Conflict) WithXRequestID ¶
func (o *UpdateRobotV1Conflict) WithXRequestID(xRequestID string) *UpdateRobotV1Conflict
WithXRequestID adds the xRequestId to the update robot v1 conflict response
func (*UpdateRobotV1Conflict) WriteResponse ¶
func (o *UpdateRobotV1Conflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1Forbidden ¶
type UpdateRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotV1Forbidden Forbidden
swagger:response updateRobotV1Forbidden
func NewUpdateRobotV1Forbidden ¶
func NewUpdateRobotV1Forbidden() *UpdateRobotV1Forbidden
NewUpdateRobotV1Forbidden creates UpdateRobotV1Forbidden with default headers values
func (*UpdateRobotV1Forbidden) SetPayload ¶
func (o *UpdateRobotV1Forbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 forbidden response
func (*UpdateRobotV1Forbidden) SetXRequestID ¶
func (o *UpdateRobotV1Forbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 forbidden response
func (*UpdateRobotV1Forbidden) WithPayload ¶
func (o *UpdateRobotV1Forbidden) WithPayload(payload *models.Errors) *UpdateRobotV1Forbidden
WithPayload adds the payload to the update robot v1 forbidden response
func (*UpdateRobotV1Forbidden) WithXRequestID ¶
func (o *UpdateRobotV1Forbidden) WithXRequestID(xRequestID string) *UpdateRobotV1Forbidden
WithXRequestID adds the xRequestId to the update robot v1 forbidden response
func (*UpdateRobotV1Forbidden) WriteResponse ¶
func (o *UpdateRobotV1Forbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1Handler ¶
type UpdateRobotV1Handler interface {
Handle(UpdateRobotV1Params, interface{}) middleware.Responder
}
UpdateRobotV1Handler interface for that can handle valid update robot v1 params
type UpdateRobotV1HandlerFunc ¶
type UpdateRobotV1HandlerFunc func(UpdateRobotV1Params, interface{}) middleware.Responder
UpdateRobotV1HandlerFunc turns a function with the right signature into a update robot v1 handler
func (UpdateRobotV1HandlerFunc) Handle ¶
func (fn UpdateRobotV1HandlerFunc) Handle(params UpdateRobotV1Params, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateRobotV1InternalServerError ¶
type UpdateRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotV1InternalServerError Internal server error
swagger:response updateRobotV1InternalServerError
func NewUpdateRobotV1InternalServerError ¶
func NewUpdateRobotV1InternalServerError() *UpdateRobotV1InternalServerError
NewUpdateRobotV1InternalServerError creates UpdateRobotV1InternalServerError with default headers values
func (*UpdateRobotV1InternalServerError) SetPayload ¶
func (o *UpdateRobotV1InternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 internal server error response
func (*UpdateRobotV1InternalServerError) SetXRequestID ¶
func (o *UpdateRobotV1InternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 internal server error response
func (*UpdateRobotV1InternalServerError) WithPayload ¶
func (o *UpdateRobotV1InternalServerError) WithPayload(payload *models.Errors) *UpdateRobotV1InternalServerError
WithPayload adds the payload to the update robot v1 internal server error response
func (*UpdateRobotV1InternalServerError) WithXRequestID ¶
func (o *UpdateRobotV1InternalServerError) WithXRequestID(xRequestID string) *UpdateRobotV1InternalServerError
WithXRequestID adds the xRequestId to the update robot v1 internal server error response
func (*UpdateRobotV1InternalServerError) WriteResponse ¶
func (o *UpdateRobotV1InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1NotFound ¶
type UpdateRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
UpdateRobotV1NotFound Not found
swagger:response updateRobotV1NotFound
func NewUpdateRobotV1NotFound ¶
func NewUpdateRobotV1NotFound() *UpdateRobotV1NotFound
NewUpdateRobotV1NotFound creates UpdateRobotV1NotFound with default headers values
func (*UpdateRobotV1NotFound) SetPayload ¶
func (o *UpdateRobotV1NotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 not found response
func (*UpdateRobotV1NotFound) SetXRequestID ¶
func (o *UpdateRobotV1NotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 not found response
func (*UpdateRobotV1NotFound) WithPayload ¶
func (o *UpdateRobotV1NotFound) WithPayload(payload *models.Errors) *UpdateRobotV1NotFound
WithPayload adds the payload to the update robot v1 not found response
func (*UpdateRobotV1NotFound) WithXRequestID ¶
func (o *UpdateRobotV1NotFound) WithXRequestID(xRequestID string) *UpdateRobotV1NotFound
WithXRequestID adds the xRequestId to the update robot v1 not found response
func (*UpdateRobotV1NotFound) WriteResponse ¶
func (o *UpdateRobotV1NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1OK ¶
type UpdateRobotV1OK struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
UpdateRobotV1OK Success
swagger:response updateRobotV1OK
func NewUpdateRobotV1OK ¶
func NewUpdateRobotV1OK() *UpdateRobotV1OK
NewUpdateRobotV1OK creates UpdateRobotV1OK with default headers values
func (*UpdateRobotV1OK) SetXRequestID ¶
func (o *UpdateRobotV1OK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 o k response
func (*UpdateRobotV1OK) WithXRequestID ¶
func (o *UpdateRobotV1OK) WithXRequestID(xRequestID string) *UpdateRobotV1OK
WithXRequestID adds the xRequestId to the update robot v1 o k response
func (*UpdateRobotV1OK) WriteResponse ¶
func (o *UpdateRobotV1OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRobotV1Params ¶
type UpdateRobotV1Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. In: header Default: false */ XIsResourceName *bool /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name or id of the project Required: true In: path */ ProjectNameOrID string /*The JSON object of a robot account. Required: true In: body */ Robot *models.Robot /*Robot ID Required: true In: path */ RobotID int64 }
UpdateRobotV1Params contains all the bound params for the update robot v1 operation typically these are obtained from a http.Request
swagger:parameters UpdateRobotV1
func NewUpdateRobotV1Params ¶
func NewUpdateRobotV1Params() UpdateRobotV1Params
NewUpdateRobotV1Params creates a new UpdateRobotV1Params object with the default values initialized.
func (*UpdateRobotV1Params) BindRequest ¶
func (o *UpdateRobotV1Params) 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 NewUpdateRobotV1Params() beforehand.
type UpdateRobotV1URL ¶
type UpdateRobotV1URL struct { ProjectNameOrID string RobotID int64 // contains filtered or unexported fields }
UpdateRobotV1URL generates an URL for the update robot v1 operation
func (*UpdateRobotV1URL) Build ¶
func (o *UpdateRobotV1URL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRobotV1URL) BuildFull ¶
func (o *UpdateRobotV1URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRobotV1URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRobotV1URL) SetBasePath ¶
func (o *UpdateRobotV1URL) 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 (*UpdateRobotV1URL) String ¶
func (o *UpdateRobotV1URL) String() string
String returns the string representation of the path with query string
func (*UpdateRobotV1URL) StringFull ¶
func (o *UpdateRobotV1URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRobotV1URL) WithBasePath ¶
func (o *UpdateRobotV1URL) WithBasePath(bp string) *UpdateRobotV1URL
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 UpdateRobotV1Unauthorized ¶
type UpdateRobotV1Unauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
UpdateRobotV1Unauthorized Unauthorized
swagger:response updateRobotV1Unauthorized
func NewUpdateRobotV1Unauthorized ¶
func NewUpdateRobotV1Unauthorized() *UpdateRobotV1Unauthorized
NewUpdateRobotV1Unauthorized creates UpdateRobotV1Unauthorized with default headers values
func (*UpdateRobotV1Unauthorized) SetPayload ¶
func (o *UpdateRobotV1Unauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the update robot v1 unauthorized response
func (*UpdateRobotV1Unauthorized) SetXRequestID ¶
func (o *UpdateRobotV1Unauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the update robot v1 unauthorized response
func (*UpdateRobotV1Unauthorized) WithPayload ¶
func (o *UpdateRobotV1Unauthorized) WithPayload(payload *models.Errors) *UpdateRobotV1Unauthorized
WithPayload adds the payload to the update robot v1 unauthorized response
func (*UpdateRobotV1Unauthorized) WithXRequestID ¶
func (o *UpdateRobotV1Unauthorized) WithXRequestID(xRequestID string) *UpdateRobotV1Unauthorized
WithXRequestID adds the xRequestId to the update robot v1 unauthorized response
func (*UpdateRobotV1Unauthorized) WriteResponse ¶
func (o *UpdateRobotV1Unauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- create_robot_v1.go
- create_robot_v1_parameters.go
- create_robot_v1_responses.go
- create_robot_v1_urlbuilder.go
- delete_robot_v1.go
- delete_robot_v1_parameters.go
- delete_robot_v1_responses.go
- delete_robot_v1_urlbuilder.go
- get_robot_by_id_v1.go
- get_robot_by_id_v1_parameters.go
- get_robot_by_id_v1_responses.go
- get_robot_by_id_v1_urlbuilder.go
- list_robot_v1.go
- list_robot_v1_parameters.go
- list_robot_v1_responses.go
- list_robot_v1_urlbuilder.go
- update_robot_v1.go
- update_robot_v1_parameters.go
- update_robot_v1_responses.go
- update_robot_v1_urlbuilder.go