robot

package
v5.0.0-...-5bc921f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for robot API

func (*Client) CreateRobot

func (a *Client) CreateRobot(params *CreateRobotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRobotCreated, error)

CreateRobot creates a robot account

Create a robot account

func (*Client) DeleteRobot

func (a *Client) DeleteRobot(params *DeleteRobotParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRobotOK, error)

DeleteRobot deletes a robot account

This endpoint deletes specific robot account information by robot ID.

func (*Client) GetRobotByID

func (a *Client) GetRobotByID(params *GetRobotByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetRobotByIDOK, error)

GetRobotByID gets a robot account

This endpoint returns specific robot account information by robot ID.

func (*Client) ListRobot

func (a *Client) ListRobot(params *ListRobotParams, authInfo runtime.ClientAuthInfoWriter) (*ListRobotOK, error)

ListRobot gets robot account

List the robot accounts with the specified level and project.

func (*Client) RefreshSec

func (a *Client) RefreshSec(params *RefreshSecParams, authInfo runtime.ClientAuthInfoWriter) (*RefreshSecOK, error)

RefreshSec refreshes the robot secret

Refresh the robot secret

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateRobot

func (a *Client) UpdateRobot(params *UpdateRobotParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRobotOK, error)

UpdateRobot updates a robot account

This endpoint updates specific robot account information by robot ID.

type ClientService

type ClientService interface {
	CreateRobot(params *CreateRobotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRobotCreated, error)

	DeleteRobot(params *DeleteRobotParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRobotOK, error)

	GetRobotByID(params *GetRobotByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetRobotByIDOK, error)

	ListRobot(params *ListRobotParams, authInfo runtime.ClientAuthInfoWriter) (*ListRobotOK, error)

	RefreshSec(params *RefreshSecParams, authInfo runtime.ClientAuthInfoWriter) (*RefreshSecOK, error)

	UpdateRobot(params *UpdateRobotParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRobotOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new robot API client.

type CreateRobotBadRequest

type CreateRobotBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRobotBadRequest handles this case with default header values.

Bad request

func NewCreateRobotBadRequest

func NewCreateRobotBadRequest() *CreateRobotBadRequest

NewCreateRobotBadRequest creates a CreateRobotBadRequest with default headers values

func (*CreateRobotBadRequest) Error

func (o *CreateRobotBadRequest) Error() string

func (*CreateRobotBadRequest) GetPayload

func (o *CreateRobotBadRequest) GetPayload() *model.Errors

type CreateRobotCreated

type CreateRobotCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.RobotCreated
}

CreateRobotCreated handles this case with default header values.

Created

func NewCreateRobotCreated

func NewCreateRobotCreated() *CreateRobotCreated

NewCreateRobotCreated creates a CreateRobotCreated with default headers values

func (*CreateRobotCreated) Error

func (o *CreateRobotCreated) Error() string

func (*CreateRobotCreated) GetPayload

func (o *CreateRobotCreated) GetPayload() *model.RobotCreated

type CreateRobotForbidden

type CreateRobotForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRobotForbidden handles this case with default header values.

Forbidden

func NewCreateRobotForbidden

func NewCreateRobotForbidden() *CreateRobotForbidden

NewCreateRobotForbidden creates a CreateRobotForbidden with default headers values

func (*CreateRobotForbidden) Error

func (o *CreateRobotForbidden) Error() string

func (*CreateRobotForbidden) GetPayload

func (o *CreateRobotForbidden) GetPayload() *model.Errors

type CreateRobotInternalServerError

type CreateRobotInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRobotInternalServerError handles this case with default header values.

Internal server error

func NewCreateRobotInternalServerError

func NewCreateRobotInternalServerError() *CreateRobotInternalServerError

NewCreateRobotInternalServerError creates a CreateRobotInternalServerError with default headers values

func (*CreateRobotInternalServerError) Error

func (*CreateRobotInternalServerError) GetPayload

func (o *CreateRobotInternalServerError) GetPayload() *model.Errors

type CreateRobotNotFound

type CreateRobotNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRobotNotFound handles this case with default header values.

Not found

func NewCreateRobotNotFound

func NewCreateRobotNotFound() *CreateRobotNotFound

NewCreateRobotNotFound creates a CreateRobotNotFound with default headers values

func (*CreateRobotNotFound) Error

func (o *CreateRobotNotFound) Error() string

func (*CreateRobotNotFound) GetPayload

func (o *CreateRobotNotFound) GetPayload() *model.Errors

type CreateRobotParams

type CreateRobotParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Robot
	  The JSON object of a robot account.

	*/
	Robot *model.RobotCreate

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateRobotParams contains all the parameters to send to the API endpoint for the create robot operation typically these are written to a http.Request

func NewCreateRobotParams

func NewCreateRobotParams() *CreateRobotParams

NewCreateRobotParams creates a new CreateRobotParams object with the default values initialized.

func NewCreateRobotParamsWithContext

func NewCreateRobotParamsWithContext(ctx context.Context) *CreateRobotParams

NewCreateRobotParamsWithContext creates a new CreateRobotParams object with the default values initialized, and the ability to set a context for a request

func NewCreateRobotParamsWithHTTPClient

func NewCreateRobotParamsWithHTTPClient(client *http.Client) *CreateRobotParams

NewCreateRobotParamsWithHTTPClient creates a new CreateRobotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateRobotParamsWithTimeout

func NewCreateRobotParamsWithTimeout(timeout time.Duration) *CreateRobotParams

NewCreateRobotParamsWithTimeout creates a new CreateRobotParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateRobotParams) SetContext

func (o *CreateRobotParams) SetContext(ctx context.Context)

SetContext adds the context to the create robot params

func (*CreateRobotParams) SetHTTPClient

func (o *CreateRobotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create robot params

func (*CreateRobotParams) SetRobot

func (o *CreateRobotParams) SetRobot(robot *model.RobotCreate)

SetRobot adds the robot to the create robot params

func (*CreateRobotParams) SetTimeout

func (o *CreateRobotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create robot params

func (*CreateRobotParams) SetXRequestID

func (o *CreateRobotParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create robot params

func (*CreateRobotParams) WithContext

func (o *CreateRobotParams) WithContext(ctx context.Context) *CreateRobotParams

WithContext adds the context to the create robot params

func (*CreateRobotParams) WithHTTPClient

func (o *CreateRobotParams) WithHTTPClient(client *http.Client) *CreateRobotParams

WithHTTPClient adds the HTTPClient to the create robot params

func (*CreateRobotParams) WithRobot

func (o *CreateRobotParams) WithRobot(robot *model.RobotCreate) *CreateRobotParams

WithRobot adds the robot to the create robot params

func (*CreateRobotParams) WithTimeout

func (o *CreateRobotParams) WithTimeout(timeout time.Duration) *CreateRobotParams

WithTimeout adds the timeout to the create robot params

func (*CreateRobotParams) WithXRequestID

func (o *CreateRobotParams) WithXRequestID(xRequestID *string) *CreateRobotParams

WithXRequestID adds the xRequestID to the create robot params

func (*CreateRobotParams) WriteToRequest

func (o *CreateRobotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateRobotReader

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

CreateRobotReader is a Reader for the CreateRobot structure.

func (*CreateRobotReader) ReadResponse

func (o *CreateRobotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateRobotUnauthorized

type CreateRobotUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateRobotUnauthorized handles this case with default header values.

Unauthorized

func NewCreateRobotUnauthorized

func NewCreateRobotUnauthorized() *CreateRobotUnauthorized

NewCreateRobotUnauthorized creates a CreateRobotUnauthorized with default headers values

func (*CreateRobotUnauthorized) Error

func (o *CreateRobotUnauthorized) Error() string

func (*CreateRobotUnauthorized) GetPayload

func (o *CreateRobotUnauthorized) GetPayload() *model.Errors

type DeleteRobotBadRequest

type DeleteRobotBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRobotBadRequest handles this case with default header values.

Bad request

func NewDeleteRobotBadRequest

func NewDeleteRobotBadRequest() *DeleteRobotBadRequest

NewDeleteRobotBadRequest creates a DeleteRobotBadRequest with default headers values

func (*DeleteRobotBadRequest) Error

func (o *DeleteRobotBadRequest) Error() string

func (*DeleteRobotBadRequest) GetPayload

func (o *DeleteRobotBadRequest) GetPayload() *model.Errors

type DeleteRobotForbidden

type DeleteRobotForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRobotForbidden handles this case with default header values.

Forbidden

func NewDeleteRobotForbidden

func NewDeleteRobotForbidden() *DeleteRobotForbidden

NewDeleteRobotForbidden creates a DeleteRobotForbidden with default headers values

func (*DeleteRobotForbidden) Error

func (o *DeleteRobotForbidden) Error() string

func (*DeleteRobotForbidden) GetPayload

func (o *DeleteRobotForbidden) GetPayload() *model.Errors

type DeleteRobotInternalServerError

type DeleteRobotInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRobotInternalServerError handles this case with default header values.

Internal server error

func NewDeleteRobotInternalServerError

func NewDeleteRobotInternalServerError() *DeleteRobotInternalServerError

NewDeleteRobotInternalServerError creates a DeleteRobotInternalServerError with default headers values

func (*DeleteRobotInternalServerError) Error

func (*DeleteRobotInternalServerError) GetPayload

func (o *DeleteRobotInternalServerError) GetPayload() *model.Errors

type DeleteRobotNotFound

type DeleteRobotNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRobotNotFound handles this case with default header values.

Not found

func NewDeleteRobotNotFound

func NewDeleteRobotNotFound() *DeleteRobotNotFound

NewDeleteRobotNotFound creates a DeleteRobotNotFound with default headers values

func (*DeleteRobotNotFound) Error

func (o *DeleteRobotNotFound) Error() string

func (*DeleteRobotNotFound) GetPayload

func (o *DeleteRobotNotFound) GetPayload() *model.Errors

type DeleteRobotOK

type DeleteRobotOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteRobotOK handles this case with default header values.

Success

func NewDeleteRobotOK

func NewDeleteRobotOK() *DeleteRobotOK

NewDeleteRobotOK creates a DeleteRobotOK with default headers values

func (*DeleteRobotOK) Error

func (o *DeleteRobotOK) Error() string

type DeleteRobotParams

type DeleteRobotParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RobotID
	  Robot ID

	*/
	RobotID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteRobotParams contains all the parameters to send to the API endpoint for the delete robot operation typically these are written to a http.Request

func NewDeleteRobotParams

func NewDeleteRobotParams() *DeleteRobotParams

NewDeleteRobotParams creates a new DeleteRobotParams object with the default values initialized.

func NewDeleteRobotParamsWithContext

func NewDeleteRobotParamsWithContext(ctx context.Context) *DeleteRobotParams

NewDeleteRobotParamsWithContext creates a new DeleteRobotParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteRobotParamsWithHTTPClient

func NewDeleteRobotParamsWithHTTPClient(client *http.Client) *DeleteRobotParams

NewDeleteRobotParamsWithHTTPClient creates a new DeleteRobotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteRobotParamsWithTimeout

func NewDeleteRobotParamsWithTimeout(timeout time.Duration) *DeleteRobotParams

NewDeleteRobotParamsWithTimeout creates a new DeleteRobotParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteRobotParams) SetContext

func (o *DeleteRobotParams) SetContext(ctx context.Context)

SetContext adds the context to the delete robot params

func (*DeleteRobotParams) SetHTTPClient

func (o *DeleteRobotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete robot params

func (*DeleteRobotParams) SetRobotID

func (o *DeleteRobotParams) SetRobotID(robotID int64)

SetRobotID adds the robotId to the delete robot params

func (*DeleteRobotParams) SetTimeout

func (o *DeleteRobotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete robot params

func (*DeleteRobotParams) SetXRequestID

func (o *DeleteRobotParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete robot params

func (*DeleteRobotParams) WithContext

func (o *DeleteRobotParams) WithContext(ctx context.Context) *DeleteRobotParams

WithContext adds the context to the delete robot params

func (*DeleteRobotParams) WithHTTPClient

func (o *DeleteRobotParams) WithHTTPClient(client *http.Client) *DeleteRobotParams

WithHTTPClient adds the HTTPClient to the delete robot params

func (*DeleteRobotParams) WithRobotID

func (o *DeleteRobotParams) WithRobotID(robotID int64) *DeleteRobotParams

WithRobotID adds the robotID to the delete robot params

func (*DeleteRobotParams) WithTimeout

func (o *DeleteRobotParams) WithTimeout(timeout time.Duration) *DeleteRobotParams

WithTimeout adds the timeout to the delete robot params

func (*DeleteRobotParams) WithXRequestID

func (o *DeleteRobotParams) WithXRequestID(xRequestID *string) *DeleteRobotParams

WithXRequestID adds the xRequestID to the delete robot params

func (*DeleteRobotParams) WriteToRequest

func (o *DeleteRobotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteRobotReader

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

DeleteRobotReader is a Reader for the DeleteRobot structure.

func (*DeleteRobotReader) ReadResponse

func (o *DeleteRobotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteRobotUnauthorized

type DeleteRobotUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteRobotUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteRobotUnauthorized

func NewDeleteRobotUnauthorized() *DeleteRobotUnauthorized

NewDeleteRobotUnauthorized creates a DeleteRobotUnauthorized with default headers values

func (*DeleteRobotUnauthorized) Error

func (o *DeleteRobotUnauthorized) Error() string

func (*DeleteRobotUnauthorized) GetPayload

func (o *DeleteRobotUnauthorized) GetPayload() *model.Errors

type GetRobotByIDForbidden

type GetRobotByIDForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRobotByIDForbidden handles this case with default header values.

Forbidden

func NewGetRobotByIDForbidden

func NewGetRobotByIDForbidden() *GetRobotByIDForbidden

NewGetRobotByIDForbidden creates a GetRobotByIDForbidden with default headers values

func (*GetRobotByIDForbidden) Error

func (o *GetRobotByIDForbidden) Error() string

func (*GetRobotByIDForbidden) GetPayload

func (o *GetRobotByIDForbidden) GetPayload() *model.Errors

type GetRobotByIDInternalServerError

type GetRobotByIDInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRobotByIDInternalServerError handles this case with default header values.

Internal server error

func NewGetRobotByIDInternalServerError

func NewGetRobotByIDInternalServerError() *GetRobotByIDInternalServerError

NewGetRobotByIDInternalServerError creates a GetRobotByIDInternalServerError with default headers values

func (*GetRobotByIDInternalServerError) Error

func (*GetRobotByIDInternalServerError) GetPayload

func (o *GetRobotByIDInternalServerError) GetPayload() *model.Errors

type GetRobotByIDNotFound

type GetRobotByIDNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRobotByIDNotFound handles this case with default header values.

Not found

func NewGetRobotByIDNotFound

func NewGetRobotByIDNotFound() *GetRobotByIDNotFound

NewGetRobotByIDNotFound creates a GetRobotByIDNotFound with default headers values

func (*GetRobotByIDNotFound) Error

func (o *GetRobotByIDNotFound) Error() string

func (*GetRobotByIDNotFound) GetPayload

func (o *GetRobotByIDNotFound) GetPayload() *model.Errors

type GetRobotByIDOK

type GetRobotByIDOK struct {
	Payload *model.Robot
}

GetRobotByIDOK handles this case with default header values.

Return matched robot information.

func NewGetRobotByIDOK

func NewGetRobotByIDOK() *GetRobotByIDOK

NewGetRobotByIDOK creates a GetRobotByIDOK with default headers values

func (*GetRobotByIDOK) Error

func (o *GetRobotByIDOK) Error() string

func (*GetRobotByIDOK) GetPayload

func (o *GetRobotByIDOK) GetPayload() *model.Robot

type GetRobotByIDParams

type GetRobotByIDParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RobotID
	  Robot ID

	*/
	RobotID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRobotByIDParams contains all the parameters to send to the API endpoint for the get robot by ID operation typically these are written to a http.Request

func NewGetRobotByIDParams

func NewGetRobotByIDParams() *GetRobotByIDParams

NewGetRobotByIDParams creates a new GetRobotByIDParams object with the default values initialized.

func NewGetRobotByIDParamsWithContext

func NewGetRobotByIDParamsWithContext(ctx context.Context) *GetRobotByIDParams

NewGetRobotByIDParamsWithContext creates a new GetRobotByIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetRobotByIDParamsWithHTTPClient

func NewGetRobotByIDParamsWithHTTPClient(client *http.Client) *GetRobotByIDParams

NewGetRobotByIDParamsWithHTTPClient creates a new GetRobotByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRobotByIDParamsWithTimeout

func NewGetRobotByIDParamsWithTimeout(timeout time.Duration) *GetRobotByIDParams

NewGetRobotByIDParamsWithTimeout creates a new GetRobotByIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRobotByIDParams) SetContext

func (o *GetRobotByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get robot by ID params

func (*GetRobotByIDParams) SetHTTPClient

func (o *GetRobotByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get robot by ID params

func (*GetRobotByIDParams) SetRobotID

func (o *GetRobotByIDParams) SetRobotID(robotID int64)

SetRobotID adds the robotId to the get robot by ID params

func (*GetRobotByIDParams) SetTimeout

func (o *GetRobotByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get robot by ID params

func (*GetRobotByIDParams) SetXRequestID

func (o *GetRobotByIDParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get robot by ID params

func (*GetRobotByIDParams) WithContext

WithContext adds the context to the get robot by ID params

func (*GetRobotByIDParams) WithHTTPClient

func (o *GetRobotByIDParams) WithHTTPClient(client *http.Client) *GetRobotByIDParams

WithHTTPClient adds the HTTPClient to the get robot by ID params

func (*GetRobotByIDParams) WithRobotID

func (o *GetRobotByIDParams) WithRobotID(robotID int64) *GetRobotByIDParams

WithRobotID adds the robotID to the get robot by ID params

func (*GetRobotByIDParams) WithTimeout

func (o *GetRobotByIDParams) WithTimeout(timeout time.Duration) *GetRobotByIDParams

WithTimeout adds the timeout to the get robot by ID params

func (*GetRobotByIDParams) WithXRequestID

func (o *GetRobotByIDParams) WithXRequestID(xRequestID *string) *GetRobotByIDParams

WithXRequestID adds the xRequestID to the get robot by ID params

func (*GetRobotByIDParams) WriteToRequest

func (o *GetRobotByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRobotByIDReader

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

GetRobotByIDReader is a Reader for the GetRobotByID structure.

func (*GetRobotByIDReader) ReadResponse

func (o *GetRobotByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRobotByIDUnauthorized

type GetRobotByIDUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetRobotByIDUnauthorized handles this case with default header values.

Unauthorized

func NewGetRobotByIDUnauthorized

func NewGetRobotByIDUnauthorized() *GetRobotByIDUnauthorized

NewGetRobotByIDUnauthorized creates a GetRobotByIDUnauthorized with default headers values

func (*GetRobotByIDUnauthorized) Error

func (o *GetRobotByIDUnauthorized) Error() string

func (*GetRobotByIDUnauthorized) GetPayload

func (o *GetRobotByIDUnauthorized) GetPayload() *model.Errors

type ListRobotBadRequest

type ListRobotBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRobotBadRequest handles this case with default header values.

Bad request

func NewListRobotBadRequest

func NewListRobotBadRequest() *ListRobotBadRequest

NewListRobotBadRequest creates a ListRobotBadRequest with default headers values

func (*ListRobotBadRequest) Error

func (o *ListRobotBadRequest) Error() string

func (*ListRobotBadRequest) GetPayload

func (o *ListRobotBadRequest) GetPayload() *model.Errors

type ListRobotInternalServerError

type ListRobotInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRobotInternalServerError handles this case with default header values.

Internal server error

func NewListRobotInternalServerError

func NewListRobotInternalServerError() *ListRobotInternalServerError

NewListRobotInternalServerError creates a ListRobotInternalServerError with default headers values

func (*ListRobotInternalServerError) Error

func (*ListRobotInternalServerError) GetPayload

func (o *ListRobotInternalServerError) GetPayload() *model.Errors

type ListRobotNotFound

type ListRobotNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListRobotNotFound handles this case with default header values.

Not found

func NewListRobotNotFound

func NewListRobotNotFound() *ListRobotNotFound

NewListRobotNotFound creates a ListRobotNotFound with default headers values

func (*ListRobotNotFound) Error

func (o *ListRobotNotFound) Error() string

func (*ListRobotNotFound) GetPayload

func (o *ListRobotNotFound) GetPayload() *model.Errors

type ListRobotOK

type ListRobotOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of robot accounts
	 */
	XTotalCount int64

	Payload []*model.Robot
}

ListRobotOK handles this case with default header values.

Success

func NewListRobotOK

func NewListRobotOK() *ListRobotOK

NewListRobotOK creates a ListRobotOK with default headers values

func (*ListRobotOK) Error

func (o *ListRobotOK) Error() string

func (*ListRobotOK) GetPayload

func (o *ListRobotOK) GetPayload() []*model.Robot

type ListRobotParams

type ListRobotParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*Q
	  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]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListRobotParams contains all the parameters to send to the API endpoint for the list robot operation typically these are written to a http.Request

func NewListRobotParams

func NewListRobotParams() *ListRobotParams

NewListRobotParams creates a new ListRobotParams object with the default values initialized.

func NewListRobotParamsWithContext

func NewListRobotParamsWithContext(ctx context.Context) *ListRobotParams

NewListRobotParamsWithContext creates a new ListRobotParams object with the default values initialized, and the ability to set a context for a request

func NewListRobotParamsWithHTTPClient

func NewListRobotParamsWithHTTPClient(client *http.Client) *ListRobotParams

NewListRobotParamsWithHTTPClient creates a new ListRobotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListRobotParamsWithTimeout

func NewListRobotParamsWithTimeout(timeout time.Duration) *ListRobotParams

NewListRobotParamsWithTimeout creates a new ListRobotParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListRobotParams) SetContext

func (o *ListRobotParams) SetContext(ctx context.Context)

SetContext adds the context to the list robot params

func (*ListRobotParams) SetHTTPClient

func (o *ListRobotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list robot params

func (*ListRobotParams) SetPage

func (o *ListRobotParams) SetPage(page *int64)

SetPage adds the page to the list robot params

func (*ListRobotParams) SetPageSize

func (o *ListRobotParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list robot params

func (*ListRobotParams) SetQ

func (o *ListRobotParams) SetQ(q *string)

SetQ adds the q to the list robot params

func (*ListRobotParams) SetSort

func (o *ListRobotParams) SetSort(sort *string)

SetSort adds the sort to the list robot params

func (*ListRobotParams) SetTimeout

func (o *ListRobotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list robot params

func (*ListRobotParams) SetXRequestID

func (o *ListRobotParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list robot params

func (*ListRobotParams) WithContext

func (o *ListRobotParams) WithContext(ctx context.Context) *ListRobotParams

WithContext adds the context to the list robot params

func (*ListRobotParams) WithHTTPClient

func (o *ListRobotParams) WithHTTPClient(client *http.Client) *ListRobotParams

WithHTTPClient adds the HTTPClient to the list robot params

func (*ListRobotParams) WithPage

func (o *ListRobotParams) WithPage(page *int64) *ListRobotParams

WithPage adds the page to the list robot params

func (*ListRobotParams) WithPageSize

func (o *ListRobotParams) WithPageSize(pageSize *int64) *ListRobotParams

WithPageSize adds the pageSize to the list robot params

func (*ListRobotParams) WithQ

func (o *ListRobotParams) WithQ(q *string) *ListRobotParams

WithQ adds the q to the list robot params

func (*ListRobotParams) WithSort

func (o *ListRobotParams) WithSort(sort *string) *ListRobotParams

WithSort adds the sort to the list robot params

func (*ListRobotParams) WithTimeout

func (o *ListRobotParams) WithTimeout(timeout time.Duration) *ListRobotParams

WithTimeout adds the timeout to the list robot params

func (*ListRobotParams) WithXRequestID

func (o *ListRobotParams) WithXRequestID(xRequestID *string) *ListRobotParams

WithXRequestID adds the xRequestID to the list robot params

func (*ListRobotParams) WriteToRequest

func (o *ListRobotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListRobotReader

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

ListRobotReader is a Reader for the ListRobot structure.

func (*ListRobotReader) ReadResponse

func (o *ListRobotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RefreshSecBadRequest

type RefreshSecBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

RefreshSecBadRequest handles this case with default header values.

Bad request

func NewRefreshSecBadRequest

func NewRefreshSecBadRequest() *RefreshSecBadRequest

NewRefreshSecBadRequest creates a RefreshSecBadRequest with default headers values

func (*RefreshSecBadRequest) Error

func (o *RefreshSecBadRequest) Error() string

func (*RefreshSecBadRequest) GetPayload

func (o *RefreshSecBadRequest) GetPayload() *model.Errors

type RefreshSecForbidden

type RefreshSecForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

RefreshSecForbidden handles this case with default header values.

Forbidden

func NewRefreshSecForbidden

func NewRefreshSecForbidden() *RefreshSecForbidden

NewRefreshSecForbidden creates a RefreshSecForbidden with default headers values

func (*RefreshSecForbidden) Error

func (o *RefreshSecForbidden) Error() string

func (*RefreshSecForbidden) GetPayload

func (o *RefreshSecForbidden) GetPayload() *model.Errors

type RefreshSecInternalServerError

type RefreshSecInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

RefreshSecInternalServerError handles this case with default header values.

Internal server error

func NewRefreshSecInternalServerError

func NewRefreshSecInternalServerError() *RefreshSecInternalServerError

NewRefreshSecInternalServerError creates a RefreshSecInternalServerError with default headers values

func (*RefreshSecInternalServerError) Error

func (*RefreshSecInternalServerError) GetPayload

func (o *RefreshSecInternalServerError) GetPayload() *model.Errors

type RefreshSecNotFound

type RefreshSecNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

RefreshSecNotFound handles this case with default header values.

Not found

func NewRefreshSecNotFound

func NewRefreshSecNotFound() *RefreshSecNotFound

NewRefreshSecNotFound creates a RefreshSecNotFound with default headers values

func (*RefreshSecNotFound) Error

func (o *RefreshSecNotFound) Error() string

func (*RefreshSecNotFound) GetPayload

func (o *RefreshSecNotFound) GetPayload() *model.Errors

type RefreshSecOK

type RefreshSecOK struct {
	Payload *model.RobotSec
}

RefreshSecOK handles this case with default header values.

Return refreshed robot sec.

func NewRefreshSecOK

func NewRefreshSecOK() *RefreshSecOK

NewRefreshSecOK creates a RefreshSecOK with default headers values

func (*RefreshSecOK) Error

func (o *RefreshSecOK) Error() string

func (*RefreshSecOK) GetPayload

func (o *RefreshSecOK) GetPayload() *model.RobotSec

type RefreshSecParams

type RefreshSecParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RobotSec
	  The JSON object of a robot account.

	*/
	RobotSec *model.RobotSec
	/*RobotID
	  Robot ID

	*/
	RobotID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RefreshSecParams contains all the parameters to send to the API endpoint for the refresh sec operation typically these are written to a http.Request

func NewRefreshSecParams

func NewRefreshSecParams() *RefreshSecParams

NewRefreshSecParams creates a new RefreshSecParams object with the default values initialized.

func NewRefreshSecParamsWithContext

func NewRefreshSecParamsWithContext(ctx context.Context) *RefreshSecParams

NewRefreshSecParamsWithContext creates a new RefreshSecParams object with the default values initialized, and the ability to set a context for a request

func NewRefreshSecParamsWithHTTPClient

func NewRefreshSecParamsWithHTTPClient(client *http.Client) *RefreshSecParams

NewRefreshSecParamsWithHTTPClient creates a new RefreshSecParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRefreshSecParamsWithTimeout

func NewRefreshSecParamsWithTimeout(timeout time.Duration) *RefreshSecParams

NewRefreshSecParamsWithTimeout creates a new RefreshSecParams object with the default values initialized, and the ability to set a timeout on a request

func (*RefreshSecParams) SetContext

func (o *RefreshSecParams) SetContext(ctx context.Context)

SetContext adds the context to the refresh sec params

func (*RefreshSecParams) SetHTTPClient

func (o *RefreshSecParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the refresh sec params

func (*RefreshSecParams) SetRobotID

func (o *RefreshSecParams) SetRobotID(robotID int64)

SetRobotID adds the robotId to the refresh sec params

func (*RefreshSecParams) SetRobotSec

func (o *RefreshSecParams) SetRobotSec(robotSec *model.RobotSec)

SetRobotSec adds the robotSec to the refresh sec params

func (*RefreshSecParams) SetTimeout

func (o *RefreshSecParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the refresh sec params

func (*RefreshSecParams) SetXRequestID

func (o *RefreshSecParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the refresh sec params

func (*RefreshSecParams) WithContext

func (o *RefreshSecParams) WithContext(ctx context.Context) *RefreshSecParams

WithContext adds the context to the refresh sec params

func (*RefreshSecParams) WithHTTPClient

func (o *RefreshSecParams) WithHTTPClient(client *http.Client) *RefreshSecParams

WithHTTPClient adds the HTTPClient to the refresh sec params

func (*RefreshSecParams) WithRobotID

func (o *RefreshSecParams) WithRobotID(robotID int64) *RefreshSecParams

WithRobotID adds the robotID to the refresh sec params

func (*RefreshSecParams) WithRobotSec

func (o *RefreshSecParams) WithRobotSec(robotSec *model.RobotSec) *RefreshSecParams

WithRobotSec adds the robotSec to the refresh sec params

func (*RefreshSecParams) WithTimeout

func (o *RefreshSecParams) WithTimeout(timeout time.Duration) *RefreshSecParams

WithTimeout adds the timeout to the refresh sec params

func (*RefreshSecParams) WithXRequestID

func (o *RefreshSecParams) WithXRequestID(xRequestID *string) *RefreshSecParams

WithXRequestID adds the xRequestID to the refresh sec params

func (*RefreshSecParams) WriteToRequest

func (o *RefreshSecParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RefreshSecReader

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

RefreshSecReader is a Reader for the RefreshSec structure.

func (*RefreshSecReader) ReadResponse

func (o *RefreshSecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RefreshSecUnauthorized

type RefreshSecUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

RefreshSecUnauthorized handles this case with default header values.

Unauthorized

func NewRefreshSecUnauthorized

func NewRefreshSecUnauthorized() *RefreshSecUnauthorized

NewRefreshSecUnauthorized creates a RefreshSecUnauthorized with default headers values

func (*RefreshSecUnauthorized) Error

func (o *RefreshSecUnauthorized) Error() string

func (*RefreshSecUnauthorized) GetPayload

func (o *RefreshSecUnauthorized) GetPayload() *model.Errors

type UpdateRobotBadRequest

type UpdateRobotBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotBadRequest handles this case with default header values.

Bad request

func NewUpdateRobotBadRequest

func NewUpdateRobotBadRequest() *UpdateRobotBadRequest

NewUpdateRobotBadRequest creates a UpdateRobotBadRequest with default headers values

func (*UpdateRobotBadRequest) Error

func (o *UpdateRobotBadRequest) Error() string

func (*UpdateRobotBadRequest) GetPayload

func (o *UpdateRobotBadRequest) GetPayload() *model.Errors

type UpdateRobotConflict

type UpdateRobotConflict struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotConflict handles this case with default header values.

Conflict

func NewUpdateRobotConflict

func NewUpdateRobotConflict() *UpdateRobotConflict

NewUpdateRobotConflict creates a UpdateRobotConflict with default headers values

func (*UpdateRobotConflict) Error

func (o *UpdateRobotConflict) Error() string

func (*UpdateRobotConflict) GetPayload

func (o *UpdateRobotConflict) GetPayload() *model.Errors

type UpdateRobotForbidden

type UpdateRobotForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotForbidden handles this case with default header values.

Forbidden

func NewUpdateRobotForbidden

func NewUpdateRobotForbidden() *UpdateRobotForbidden

NewUpdateRobotForbidden creates a UpdateRobotForbidden with default headers values

func (*UpdateRobotForbidden) Error

func (o *UpdateRobotForbidden) Error() string

func (*UpdateRobotForbidden) GetPayload

func (o *UpdateRobotForbidden) GetPayload() *model.Errors

type UpdateRobotInternalServerError

type UpdateRobotInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotInternalServerError handles this case with default header values.

Internal server error

func NewUpdateRobotInternalServerError

func NewUpdateRobotInternalServerError() *UpdateRobotInternalServerError

NewUpdateRobotInternalServerError creates a UpdateRobotInternalServerError with default headers values

func (*UpdateRobotInternalServerError) Error

func (*UpdateRobotInternalServerError) GetPayload

func (o *UpdateRobotInternalServerError) GetPayload() *model.Errors

type UpdateRobotNotFound

type UpdateRobotNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotNotFound handles this case with default header values.

Not found

func NewUpdateRobotNotFound

func NewUpdateRobotNotFound() *UpdateRobotNotFound

NewUpdateRobotNotFound creates a UpdateRobotNotFound with default headers values

func (*UpdateRobotNotFound) Error

func (o *UpdateRobotNotFound) Error() string

func (*UpdateRobotNotFound) GetPayload

func (o *UpdateRobotNotFound) GetPayload() *model.Errors

type UpdateRobotOK

type UpdateRobotOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateRobotOK handles this case with default header values.

Success

func NewUpdateRobotOK

func NewUpdateRobotOK() *UpdateRobotOK

NewUpdateRobotOK creates a UpdateRobotOK with default headers values

func (*UpdateRobotOK) Error

func (o *UpdateRobotOK) Error() string

type UpdateRobotParams

type UpdateRobotParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Robot
	  The JSON object of a robot account.

	*/
	Robot *model.Robot
	/*RobotID
	  Robot ID

	*/
	RobotID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateRobotParams contains all the parameters to send to the API endpoint for the update robot operation typically these are written to a http.Request

func NewUpdateRobotParams

func NewUpdateRobotParams() *UpdateRobotParams

NewUpdateRobotParams creates a new UpdateRobotParams object with the default values initialized.

func NewUpdateRobotParamsWithContext

func NewUpdateRobotParamsWithContext(ctx context.Context) *UpdateRobotParams

NewUpdateRobotParamsWithContext creates a new UpdateRobotParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateRobotParamsWithHTTPClient

func NewUpdateRobotParamsWithHTTPClient(client *http.Client) *UpdateRobotParams

NewUpdateRobotParamsWithHTTPClient creates a new UpdateRobotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateRobotParamsWithTimeout

func NewUpdateRobotParamsWithTimeout(timeout time.Duration) *UpdateRobotParams

NewUpdateRobotParamsWithTimeout creates a new UpdateRobotParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateRobotParams) SetContext

func (o *UpdateRobotParams) SetContext(ctx context.Context)

SetContext adds the context to the update robot params

func (*UpdateRobotParams) SetHTTPClient

func (o *UpdateRobotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update robot params

func (*UpdateRobotParams) SetRobot

func (o *UpdateRobotParams) SetRobot(robot *model.Robot)

SetRobot adds the robot to the update robot params

func (*UpdateRobotParams) SetRobotID

func (o *UpdateRobotParams) SetRobotID(robotID int64)

SetRobotID adds the robotId to the update robot params

func (*UpdateRobotParams) SetTimeout

func (o *UpdateRobotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update robot params

func (*UpdateRobotParams) SetXRequestID

func (o *UpdateRobotParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update robot params

func (*UpdateRobotParams) WithContext

func (o *UpdateRobotParams) WithContext(ctx context.Context) *UpdateRobotParams

WithContext adds the context to the update robot params

func (*UpdateRobotParams) WithHTTPClient

func (o *UpdateRobotParams) WithHTTPClient(client *http.Client) *UpdateRobotParams

WithHTTPClient adds the HTTPClient to the update robot params

func (*UpdateRobotParams) WithRobot

func (o *UpdateRobotParams) WithRobot(robot *model.Robot) *UpdateRobotParams

WithRobot adds the robot to the update robot params

func (*UpdateRobotParams) WithRobotID

func (o *UpdateRobotParams) WithRobotID(robotID int64) *UpdateRobotParams

WithRobotID adds the robotID to the update robot params

func (*UpdateRobotParams) WithTimeout

func (o *UpdateRobotParams) WithTimeout(timeout time.Duration) *UpdateRobotParams

WithTimeout adds the timeout to the update robot params

func (*UpdateRobotParams) WithXRequestID

func (o *UpdateRobotParams) WithXRequestID(xRequestID *string) *UpdateRobotParams

WithXRequestID adds the xRequestID to the update robot params

func (*UpdateRobotParams) WriteToRequest

func (o *UpdateRobotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateRobotReader

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

UpdateRobotReader is a Reader for the UpdateRobot structure.

func (*UpdateRobotReader) ReadResponse

func (o *UpdateRobotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateRobotUnauthorized

type UpdateRobotUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateRobotUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateRobotUnauthorized

func NewUpdateRobotUnauthorized() *UpdateRobotUnauthorized

NewUpdateRobotUnauthorized creates a UpdateRobotUnauthorized with default headers values

func (*UpdateRobotUnauthorized) Error

func (o *UpdateRobotUnauthorized) Error() string

func (*UpdateRobotUnauthorized) GetPayload

func (o *UpdateRobotUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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