robotv1

package
v0.0.0-...-b68bda3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateRobotV1 creates a robot account

	   Create a robot account*/
	CreateRobotV1(ctx context.Context, params *CreateRobotV1Params) (*CreateRobotV1Created, error)
	/*
	   DeleteRobotV1 deletes a robot account

	   This endpoint deletes specific robot account information by robot ID.*/
	DeleteRobotV1(ctx context.Context, params *DeleteRobotV1Params) (*DeleteRobotV1OK, error)
	/*
	   GetRobotByIDV1 gets a robot account

	   This endpoint returns specific robot account information by robot ID.*/
	GetRobotByIDV1(ctx context.Context, params *GetRobotByIDV1Params) (*GetRobotByIDV1OK, error)
	/*
	   ListRobotV1 gets all robot accounts of specified project

	   Get all robot accounts of specified project*/
	ListRobotV1(ctx context.Context, params *ListRobotV1Params) (*ListRobotV1OK, error)
	/*
	   UpdateRobotV1 updates status of robot account

	   Used to disable/enable a specified robot account.*/
	UpdateRobotV1(ctx context.Context, params *UpdateRobotV1Params) (*UpdateRobotV1OK, error)
}

API is the interface of the robotv1 client

type Client

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

Client for robotv1 API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new robotv1 API client.

func (*Client) CreateRobotV1

func (a *Client) CreateRobotV1(ctx context.Context, params *CreateRobotV1Params) (*CreateRobotV1Created, error)

CreateRobotV1 creates a robot account

Create a robot account

func (*Client) DeleteRobotV1

func (a *Client) DeleteRobotV1(ctx context.Context, params *DeleteRobotV1Params) (*DeleteRobotV1OK, error)

DeleteRobotV1 deletes a robot account

This endpoint deletes specific robot account information by robot ID.

func (*Client) GetRobotByIDV1

func (a *Client) GetRobotByIDV1(ctx context.Context, params *GetRobotByIDV1Params) (*GetRobotByIDV1OK, error)

GetRobotByIDV1 gets a robot account

This endpoint returns specific robot account information by robot ID.

func (*Client) ListRobotV1

func (a *Client) ListRobotV1(ctx context.Context, params *ListRobotV1Params) (*ListRobotV1OK, error)

ListRobotV1 gets all robot accounts of specified project

Get all robot accounts of specified project

func (*Client) UpdateRobotV1

func (a *Client) UpdateRobotV1(ctx context.Context, params *UpdateRobotV1Params) (*UpdateRobotV1OK, error)

UpdateRobotV1 updates status of robot account

Used to disable/enable a specified robot account.

type CreateRobotV1BadRequest

type CreateRobotV1BadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateRobotV1BadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateRobotV1BadRequest

func NewCreateRobotV1BadRequest() *CreateRobotV1BadRequest

NewCreateRobotV1BadRequest creates a CreateRobotV1BadRequest with default headers values

func (*CreateRobotV1BadRequest) Code

func (o *CreateRobotV1BadRequest) Code() int

Code gets the status code for the create robot v1 bad request response

func (*CreateRobotV1BadRequest) Error

func (o *CreateRobotV1BadRequest) Error() string

func (*CreateRobotV1BadRequest) GetPayload

func (o *CreateRobotV1BadRequest) GetPayload() *models.Errors

func (*CreateRobotV1BadRequest) IsClientError

func (o *CreateRobotV1BadRequest) IsClientError() bool

IsClientError returns true when this create robot v1 bad request response has a 4xx status code

func (*CreateRobotV1BadRequest) IsCode

func (o *CreateRobotV1BadRequest) IsCode(code int) bool

IsCode returns true when this create robot v1 bad request response a status code equal to that given

func (*CreateRobotV1BadRequest) IsRedirect

func (o *CreateRobotV1BadRequest) IsRedirect() bool

IsRedirect returns true when this create robot v1 bad request response has a 3xx status code

func (*CreateRobotV1BadRequest) IsServerError

func (o *CreateRobotV1BadRequest) IsServerError() bool

IsServerError returns true when this create robot v1 bad request response has a 5xx status code

func (*CreateRobotV1BadRequest) IsSuccess

func (o *CreateRobotV1BadRequest) IsSuccess() bool

IsSuccess returns true when this create robot v1 bad request response has a 2xx status code

func (*CreateRobotV1BadRequest) String

func (o *CreateRobotV1BadRequest) String() string

type CreateRobotV1Created

type CreateRobotV1Created struct {

	/* The location of the resource
	 */
	Location string

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.RobotCreated
}

CreateRobotV1Created describes a response with status code 201, with default header values.

Created

func NewCreateRobotV1Created

func NewCreateRobotV1Created() *CreateRobotV1Created

NewCreateRobotV1Created creates a CreateRobotV1Created with default headers values

func (*CreateRobotV1Created) Code

func (o *CreateRobotV1Created) Code() int

Code gets the status code for the create robot v1 created response

func (*CreateRobotV1Created) Error

func (o *CreateRobotV1Created) Error() string

func (*CreateRobotV1Created) GetPayload

func (o *CreateRobotV1Created) GetPayload() *models.RobotCreated

func (*CreateRobotV1Created) IsClientError

func (o *CreateRobotV1Created) IsClientError() bool

IsClientError returns true when this create robot v1 created response has a 4xx status code

func (*CreateRobotV1Created) IsCode

func (o *CreateRobotV1Created) IsCode(code int) bool

IsCode returns true when this create robot v1 created response a status code equal to that given

func (*CreateRobotV1Created) IsRedirect

func (o *CreateRobotV1Created) IsRedirect() bool

IsRedirect returns true when this create robot v1 created response has a 3xx status code

func (*CreateRobotV1Created) IsServerError

func (o *CreateRobotV1Created) IsServerError() bool

IsServerError returns true when this create robot v1 created response has a 5xx status code

func (*CreateRobotV1Created) IsSuccess

func (o *CreateRobotV1Created) IsSuccess() bool

IsSuccess returns true when this create robot v1 created response has a 2xx status code

func (*CreateRobotV1Created) String

func (o *CreateRobotV1Created) String() string

type CreateRobotV1Forbidden

type CreateRobotV1Forbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateRobotV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateRobotV1Forbidden

func NewCreateRobotV1Forbidden() *CreateRobotV1Forbidden

NewCreateRobotV1Forbidden creates a CreateRobotV1Forbidden with default headers values

func (*CreateRobotV1Forbidden) Code

func (o *CreateRobotV1Forbidden) Code() int

Code gets the status code for the create robot v1 forbidden response

func (*CreateRobotV1Forbidden) Error

func (o *CreateRobotV1Forbidden) Error() string

func (*CreateRobotV1Forbidden) GetPayload

func (o *CreateRobotV1Forbidden) GetPayload() *models.Errors

func (*CreateRobotV1Forbidden) IsClientError

func (o *CreateRobotV1Forbidden) IsClientError() bool

IsClientError returns true when this create robot v1 forbidden response has a 4xx status code

func (*CreateRobotV1Forbidden) IsCode

func (o *CreateRobotV1Forbidden) IsCode(code int) bool

IsCode returns true when this create robot v1 forbidden response a status code equal to that given

func (*CreateRobotV1Forbidden) IsRedirect

func (o *CreateRobotV1Forbidden) IsRedirect() bool

IsRedirect returns true when this create robot v1 forbidden response has a 3xx status code

func (*CreateRobotV1Forbidden) IsServerError

func (o *CreateRobotV1Forbidden) IsServerError() bool

IsServerError returns true when this create robot v1 forbidden response has a 5xx status code

func (*CreateRobotV1Forbidden) IsSuccess

func (o *CreateRobotV1Forbidden) IsSuccess() bool

IsSuccess returns true when this create robot v1 forbidden response has a 2xx status code

func (*CreateRobotV1Forbidden) String

func (o *CreateRobotV1Forbidden) String() string

type CreateRobotV1InternalServerError

type CreateRobotV1InternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateRobotV1InternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewCreateRobotV1InternalServerError

func NewCreateRobotV1InternalServerError() *CreateRobotV1InternalServerError

NewCreateRobotV1InternalServerError creates a CreateRobotV1InternalServerError with default headers values

func (*CreateRobotV1InternalServerError) Code

Code gets the status code for the create robot v1 internal server error response

func (*CreateRobotV1InternalServerError) Error

func (*CreateRobotV1InternalServerError) GetPayload

func (*CreateRobotV1InternalServerError) IsClientError

func (o *CreateRobotV1InternalServerError) IsClientError() bool

IsClientError returns true when this create robot v1 internal server error response has a 4xx status code

func (*CreateRobotV1InternalServerError) IsCode

func (o *CreateRobotV1InternalServerError) IsCode(code int) bool

IsCode returns true when this create robot v1 internal server error response a status code equal to that given

func (*CreateRobotV1InternalServerError) IsRedirect

func (o *CreateRobotV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this create robot v1 internal server error response has a 3xx status code

func (*CreateRobotV1InternalServerError) IsServerError

func (o *CreateRobotV1InternalServerError) IsServerError() bool

IsServerError returns true when this create robot v1 internal server error response has a 5xx status code

func (*CreateRobotV1InternalServerError) IsSuccess

func (o *CreateRobotV1InternalServerError) IsSuccess() bool

IsSuccess returns true when this create robot v1 internal server error response has a 2xx status code

func (*CreateRobotV1InternalServerError) String

type CreateRobotV1NotFound

type CreateRobotV1NotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateRobotV1NotFound describes a response with status code 404, with default header values.

Not found

func NewCreateRobotV1NotFound

func NewCreateRobotV1NotFound() *CreateRobotV1NotFound

NewCreateRobotV1NotFound creates a CreateRobotV1NotFound with default headers values

func (*CreateRobotV1NotFound) Code

func (o *CreateRobotV1NotFound) Code() int

Code gets the status code for the create robot v1 not found response

func (*CreateRobotV1NotFound) Error

func (o *CreateRobotV1NotFound) Error() string

func (*CreateRobotV1NotFound) GetPayload

func (o *CreateRobotV1NotFound) GetPayload() *models.Errors

func (*CreateRobotV1NotFound) IsClientError

func (o *CreateRobotV1NotFound) IsClientError() bool

IsClientError returns true when this create robot v1 not found response has a 4xx status code

func (*CreateRobotV1NotFound) IsCode

func (o *CreateRobotV1NotFound) IsCode(code int) bool

IsCode returns true when this create robot v1 not found response a status code equal to that given

func (*CreateRobotV1NotFound) IsRedirect

func (o *CreateRobotV1NotFound) IsRedirect() bool

IsRedirect returns true when this create robot v1 not found response has a 3xx status code

func (*CreateRobotV1NotFound) IsServerError

func (o *CreateRobotV1NotFound) IsServerError() bool

IsServerError returns true when this create robot v1 not found response has a 5xx status code

func (*CreateRobotV1NotFound) IsSuccess

func (o *CreateRobotV1NotFound) IsSuccess() bool

IsSuccess returns true when this create robot v1 not found response has a 2xx status code

func (*CreateRobotV1NotFound) String

func (o *CreateRobotV1NotFound) String() string

type CreateRobotV1Params

type CreateRobotV1Params struct {

	/* XIsResourceName.

	   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.
	*/
	XIsResourceName *bool `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* Robot.

	   The JSON object of a robot account.
	*/
	Robot *models.RobotCreateV1 `js:"robot"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

CreateRobotV1Params contains all the parameters to send to the API endpoint

for the create robot v1 operation.

Typically these are written to a http.Request.

func NewCreateRobotV1Params

func NewCreateRobotV1Params() *CreateRobotV1Params

NewCreateRobotV1Params creates a new CreateRobotV1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateRobotV1ParamsWithContext

func NewCreateRobotV1ParamsWithContext(ctx context.Context) *CreateRobotV1Params

NewCreateRobotV1ParamsWithContext creates a new CreateRobotV1Params object with the ability to set a context for a request.

func NewCreateRobotV1ParamsWithHTTPClient

func NewCreateRobotV1ParamsWithHTTPClient(client *http.Client) *CreateRobotV1Params

NewCreateRobotV1ParamsWithHTTPClient creates a new CreateRobotV1Params object with the ability to set a custom HTTPClient for a request.

func NewCreateRobotV1ParamsWithTimeout

func NewCreateRobotV1ParamsWithTimeout(timeout time.Duration) *CreateRobotV1Params

NewCreateRobotV1ParamsWithTimeout creates a new CreateRobotV1Params object with the ability to set a timeout on a request.

func (*CreateRobotV1Params) SetContext

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

SetContext adds the context to the create robot v1 params

func (*CreateRobotV1Params) SetDefaults

func (o *CreateRobotV1Params) SetDefaults()

SetDefaults hydrates default values in the create robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRobotV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create robot v1 params

func (*CreateRobotV1Params) SetProjectNameOrID

func (o *CreateRobotV1Params) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the create robot v1 params

func (*CreateRobotV1Params) SetRobot

func (o *CreateRobotV1Params) SetRobot(robot *models.RobotCreateV1)

SetRobot adds the robot to the create robot v1 params

func (*CreateRobotV1Params) SetTimeout

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

SetTimeout adds the timeout to the create robot v1 params

func (*CreateRobotV1Params) SetXIsResourceName

func (o *CreateRobotV1Params) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the create robot v1 params

func (*CreateRobotV1Params) SetXRequestID

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

SetXRequestID adds the xRequestId to the create robot v1 params

func (*CreateRobotV1Params) WithContext

WithContext adds the context to the create robot v1 params

func (*CreateRobotV1Params) WithDefaults

func (o *CreateRobotV1Params) WithDefaults() *CreateRobotV1Params

WithDefaults hydrates default values in the create robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRobotV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create robot v1 params

func (*CreateRobotV1Params) WithProjectNameOrID

func (o *CreateRobotV1Params) WithProjectNameOrID(projectNameOrID string) *CreateRobotV1Params

WithProjectNameOrID adds the projectNameOrID to the create robot v1 params

func (*CreateRobotV1Params) WithRobot

WithRobot adds the robot to the create robot v1 params

func (*CreateRobotV1Params) WithTimeout

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

WithTimeout adds the timeout to the create robot v1 params

func (*CreateRobotV1Params) WithXIsResourceName

func (o *CreateRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *CreateRobotV1Params

WithXIsResourceName adds the xIsResourceName to the create robot v1 params

func (*CreateRobotV1Params) WithXRequestID

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

WithXRequestID adds the xRequestID to the create robot v1 params

func (*CreateRobotV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRobotV1Reader

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

CreateRobotV1Reader is a Reader for the CreateRobotV1 structure.

func (*CreateRobotV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRobotV1Unauthorized

type CreateRobotV1Unauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateRobotV1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateRobotV1Unauthorized

func NewCreateRobotV1Unauthorized() *CreateRobotV1Unauthorized

NewCreateRobotV1Unauthorized creates a CreateRobotV1Unauthorized with default headers values

func (*CreateRobotV1Unauthorized) Code

func (o *CreateRobotV1Unauthorized) Code() int

Code gets the status code for the create robot v1 unauthorized response

func (*CreateRobotV1Unauthorized) Error

func (o *CreateRobotV1Unauthorized) Error() string

func (*CreateRobotV1Unauthorized) GetPayload

func (o *CreateRobotV1Unauthorized) GetPayload() *models.Errors

func (*CreateRobotV1Unauthorized) IsClientError

func (o *CreateRobotV1Unauthorized) IsClientError() bool

IsClientError returns true when this create robot v1 unauthorized response has a 4xx status code

func (*CreateRobotV1Unauthorized) IsCode

func (o *CreateRobotV1Unauthorized) IsCode(code int) bool

IsCode returns true when this create robot v1 unauthorized response a status code equal to that given

func (*CreateRobotV1Unauthorized) IsRedirect

func (o *CreateRobotV1Unauthorized) IsRedirect() bool

IsRedirect returns true when this create robot v1 unauthorized response has a 3xx status code

func (*CreateRobotV1Unauthorized) IsServerError

func (o *CreateRobotV1Unauthorized) IsServerError() bool

IsServerError returns true when this create robot v1 unauthorized response has a 5xx status code

func (*CreateRobotV1Unauthorized) IsSuccess

func (o *CreateRobotV1Unauthorized) IsSuccess() bool

IsSuccess returns true when this create robot v1 unauthorized response has a 2xx status code

func (*CreateRobotV1Unauthorized) String

func (o *CreateRobotV1Unauthorized) String() string

type DeleteRobotV1BadRequest

type DeleteRobotV1BadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteRobotV1BadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteRobotV1BadRequest

func NewDeleteRobotV1BadRequest() *DeleteRobotV1BadRequest

NewDeleteRobotV1BadRequest creates a DeleteRobotV1BadRequest with default headers values

func (*DeleteRobotV1BadRequest) Code

func (o *DeleteRobotV1BadRequest) Code() int

Code gets the status code for the delete robot v1 bad request response

func (*DeleteRobotV1BadRequest) Error

func (o *DeleteRobotV1BadRequest) Error() string

func (*DeleteRobotV1BadRequest) GetPayload

func (o *DeleteRobotV1BadRequest) GetPayload() *models.Errors

func (*DeleteRobotV1BadRequest) IsClientError

func (o *DeleteRobotV1BadRequest) IsClientError() bool

IsClientError returns true when this delete robot v1 bad request response has a 4xx status code

func (*DeleteRobotV1BadRequest) IsCode

func (o *DeleteRobotV1BadRequest) IsCode(code int) bool

IsCode returns true when this delete robot v1 bad request response a status code equal to that given

func (*DeleteRobotV1BadRequest) IsRedirect

func (o *DeleteRobotV1BadRequest) IsRedirect() bool

IsRedirect returns true when this delete robot v1 bad request response has a 3xx status code

func (*DeleteRobotV1BadRequest) IsServerError

func (o *DeleteRobotV1BadRequest) IsServerError() bool

IsServerError returns true when this delete robot v1 bad request response has a 5xx status code

func (*DeleteRobotV1BadRequest) IsSuccess

func (o *DeleteRobotV1BadRequest) IsSuccess() bool

IsSuccess returns true when this delete robot v1 bad request response has a 2xx status code

func (*DeleteRobotV1BadRequest) String

func (o *DeleteRobotV1BadRequest) String() string

type DeleteRobotV1Forbidden

type DeleteRobotV1Forbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteRobotV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteRobotV1Forbidden

func NewDeleteRobotV1Forbidden() *DeleteRobotV1Forbidden

NewDeleteRobotV1Forbidden creates a DeleteRobotV1Forbidden with default headers values

func (*DeleteRobotV1Forbidden) Code

func (o *DeleteRobotV1Forbidden) Code() int

Code gets the status code for the delete robot v1 forbidden response

func (*DeleteRobotV1Forbidden) Error

func (o *DeleteRobotV1Forbidden) Error() string

func (*DeleteRobotV1Forbidden) GetPayload

func (o *DeleteRobotV1Forbidden) GetPayload() *models.Errors

func (*DeleteRobotV1Forbidden) IsClientError

func (o *DeleteRobotV1Forbidden) IsClientError() bool

IsClientError returns true when this delete robot v1 forbidden response has a 4xx status code

func (*DeleteRobotV1Forbidden) IsCode

func (o *DeleteRobotV1Forbidden) IsCode(code int) bool

IsCode returns true when this delete robot v1 forbidden response a status code equal to that given

func (*DeleteRobotV1Forbidden) IsRedirect

func (o *DeleteRobotV1Forbidden) IsRedirect() bool

IsRedirect returns true when this delete robot v1 forbidden response has a 3xx status code

func (*DeleteRobotV1Forbidden) IsServerError

func (o *DeleteRobotV1Forbidden) IsServerError() bool

IsServerError returns true when this delete robot v1 forbidden response has a 5xx status code

func (*DeleteRobotV1Forbidden) IsSuccess

func (o *DeleteRobotV1Forbidden) IsSuccess() bool

IsSuccess returns true when this delete robot v1 forbidden response has a 2xx status code

func (*DeleteRobotV1Forbidden) String

func (o *DeleteRobotV1Forbidden) String() string

type DeleteRobotV1InternalServerError

type DeleteRobotV1InternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteRobotV1InternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteRobotV1InternalServerError

func NewDeleteRobotV1InternalServerError() *DeleteRobotV1InternalServerError

NewDeleteRobotV1InternalServerError creates a DeleteRobotV1InternalServerError with default headers values

func (*DeleteRobotV1InternalServerError) Code

Code gets the status code for the delete robot v1 internal server error response

func (*DeleteRobotV1InternalServerError) Error

func (*DeleteRobotV1InternalServerError) GetPayload

func (*DeleteRobotV1InternalServerError) IsClientError

func (o *DeleteRobotV1InternalServerError) IsClientError() bool

IsClientError returns true when this delete robot v1 internal server error response has a 4xx status code

func (*DeleteRobotV1InternalServerError) IsCode

func (o *DeleteRobotV1InternalServerError) IsCode(code int) bool

IsCode returns true when this delete robot v1 internal server error response a status code equal to that given

func (*DeleteRobotV1InternalServerError) IsRedirect

func (o *DeleteRobotV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this delete robot v1 internal server error response has a 3xx status code

func (*DeleteRobotV1InternalServerError) IsServerError

func (o *DeleteRobotV1InternalServerError) IsServerError() bool

IsServerError returns true when this delete robot v1 internal server error response has a 5xx status code

func (*DeleteRobotV1InternalServerError) IsSuccess

func (o *DeleteRobotV1InternalServerError) IsSuccess() bool

IsSuccess returns true when this delete robot v1 internal server error response has a 2xx status code

func (*DeleteRobotV1InternalServerError) String

type DeleteRobotV1NotFound

type DeleteRobotV1NotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteRobotV1NotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteRobotV1NotFound

func NewDeleteRobotV1NotFound() *DeleteRobotV1NotFound

NewDeleteRobotV1NotFound creates a DeleteRobotV1NotFound with default headers values

func (*DeleteRobotV1NotFound) Code

func (o *DeleteRobotV1NotFound) Code() int

Code gets the status code for the delete robot v1 not found response

func (*DeleteRobotV1NotFound) Error

func (o *DeleteRobotV1NotFound) Error() string

func (*DeleteRobotV1NotFound) GetPayload

func (o *DeleteRobotV1NotFound) GetPayload() *models.Errors

func (*DeleteRobotV1NotFound) IsClientError

func (o *DeleteRobotV1NotFound) IsClientError() bool

IsClientError returns true when this delete robot v1 not found response has a 4xx status code

func (*DeleteRobotV1NotFound) IsCode

func (o *DeleteRobotV1NotFound) IsCode(code int) bool

IsCode returns true when this delete robot v1 not found response a status code equal to that given

func (*DeleteRobotV1NotFound) IsRedirect

func (o *DeleteRobotV1NotFound) IsRedirect() bool

IsRedirect returns true when this delete robot v1 not found response has a 3xx status code

func (*DeleteRobotV1NotFound) IsServerError

func (o *DeleteRobotV1NotFound) IsServerError() bool

IsServerError returns true when this delete robot v1 not found response has a 5xx status code

func (*DeleteRobotV1NotFound) IsSuccess

func (o *DeleteRobotV1NotFound) IsSuccess() bool

IsSuccess returns true when this delete robot v1 not found response has a 2xx status code

func (*DeleteRobotV1NotFound) String

func (o *DeleteRobotV1NotFound) String() string

type DeleteRobotV1OK

type DeleteRobotV1OK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteRobotV1OK describes a response with status code 200, with default header values.

Success

func NewDeleteRobotV1OK

func NewDeleteRobotV1OK() *DeleteRobotV1OK

NewDeleteRobotV1OK creates a DeleteRobotV1OK with default headers values

func (*DeleteRobotV1OK) Code

func (o *DeleteRobotV1OK) Code() int

Code gets the status code for the delete robot v1 o k response

func (*DeleteRobotV1OK) Error

func (o *DeleteRobotV1OK) Error() string

func (*DeleteRobotV1OK) IsClientError

func (o *DeleteRobotV1OK) IsClientError() bool

IsClientError returns true when this delete robot v1 o k response has a 4xx status code

func (*DeleteRobotV1OK) IsCode

func (o *DeleteRobotV1OK) IsCode(code int) bool

IsCode returns true when this delete robot v1 o k response a status code equal to that given

func (*DeleteRobotV1OK) IsRedirect

func (o *DeleteRobotV1OK) IsRedirect() bool

IsRedirect returns true when this delete robot v1 o k response has a 3xx status code

func (*DeleteRobotV1OK) IsServerError

func (o *DeleteRobotV1OK) IsServerError() bool

IsServerError returns true when this delete robot v1 o k response has a 5xx status code

func (*DeleteRobotV1OK) IsSuccess

func (o *DeleteRobotV1OK) IsSuccess() bool

IsSuccess returns true when this delete robot v1 o k response has a 2xx status code

func (*DeleteRobotV1OK) String

func (o *DeleteRobotV1OK) String() string

type DeleteRobotV1Params

type DeleteRobotV1Params struct {

	/* XIsResourceName.

	   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.
	*/
	XIsResourceName *bool `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* RobotID.

	   Robot ID
	*/
	RobotID int64 `js:"robotID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

DeleteRobotV1Params contains all the parameters to send to the API endpoint

for the delete robot v1 operation.

Typically these are written to a http.Request.

func NewDeleteRobotV1Params

func NewDeleteRobotV1Params() *DeleteRobotV1Params

NewDeleteRobotV1Params creates a new DeleteRobotV1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteRobotV1ParamsWithContext

func NewDeleteRobotV1ParamsWithContext(ctx context.Context) *DeleteRobotV1Params

NewDeleteRobotV1ParamsWithContext creates a new DeleteRobotV1Params object with the ability to set a context for a request.

func NewDeleteRobotV1ParamsWithHTTPClient

func NewDeleteRobotV1ParamsWithHTTPClient(client *http.Client) *DeleteRobotV1Params

NewDeleteRobotV1ParamsWithHTTPClient creates a new DeleteRobotV1Params object with the ability to set a custom HTTPClient for a request.

func NewDeleteRobotV1ParamsWithTimeout

func NewDeleteRobotV1ParamsWithTimeout(timeout time.Duration) *DeleteRobotV1Params

NewDeleteRobotV1ParamsWithTimeout creates a new DeleteRobotV1Params object with the ability to set a timeout on a request.

func (*DeleteRobotV1Params) SetContext

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

SetContext adds the context to the delete robot v1 params

func (*DeleteRobotV1Params) SetDefaults

func (o *DeleteRobotV1Params) SetDefaults()

SetDefaults hydrates default values in the delete robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRobotV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete robot v1 params

func (*DeleteRobotV1Params) SetProjectNameOrID

func (o *DeleteRobotV1Params) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the delete robot v1 params

func (*DeleteRobotV1Params) SetRobotID

func (o *DeleteRobotV1Params) SetRobotID(robotID int64)

SetRobotID adds the robotId to the delete robot v1 params

func (*DeleteRobotV1Params) SetTimeout

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

SetTimeout adds the timeout to the delete robot v1 params

func (*DeleteRobotV1Params) SetXIsResourceName

func (o *DeleteRobotV1Params) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the delete robot v1 params

func (*DeleteRobotV1Params) SetXRequestID

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

SetXRequestID adds the xRequestId to the delete robot v1 params

func (*DeleteRobotV1Params) WithContext

WithContext adds the context to the delete robot v1 params

func (*DeleteRobotV1Params) WithDefaults

func (o *DeleteRobotV1Params) WithDefaults() *DeleteRobotV1Params

WithDefaults hydrates default values in the delete robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRobotV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete robot v1 params

func (*DeleteRobotV1Params) WithProjectNameOrID

func (o *DeleteRobotV1Params) WithProjectNameOrID(projectNameOrID string) *DeleteRobotV1Params

WithProjectNameOrID adds the projectNameOrID to the delete robot v1 params

func (*DeleteRobotV1Params) WithRobotID

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

WithRobotID adds the robotID to the delete robot v1 params

func (*DeleteRobotV1Params) WithTimeout

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

WithTimeout adds the timeout to the delete robot v1 params

func (*DeleteRobotV1Params) WithXIsResourceName

func (o *DeleteRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *DeleteRobotV1Params

WithXIsResourceName adds the xIsResourceName to the delete robot v1 params

func (*DeleteRobotV1Params) WithXRequestID

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

WithXRequestID adds the xRequestID to the delete robot v1 params

func (*DeleteRobotV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRobotV1Reader

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

DeleteRobotV1Reader is a Reader for the DeleteRobotV1 structure.

func (*DeleteRobotV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRobotV1Unauthorized

type DeleteRobotV1Unauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteRobotV1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteRobotV1Unauthorized

func NewDeleteRobotV1Unauthorized() *DeleteRobotV1Unauthorized

NewDeleteRobotV1Unauthorized creates a DeleteRobotV1Unauthorized with default headers values

func (*DeleteRobotV1Unauthorized) Code

func (o *DeleteRobotV1Unauthorized) Code() int

Code gets the status code for the delete robot v1 unauthorized response

func (*DeleteRobotV1Unauthorized) Error

func (o *DeleteRobotV1Unauthorized) Error() string

func (*DeleteRobotV1Unauthorized) GetPayload

func (o *DeleteRobotV1Unauthorized) GetPayload() *models.Errors

func (*DeleteRobotV1Unauthorized) IsClientError

func (o *DeleteRobotV1Unauthorized) IsClientError() bool

IsClientError returns true when this delete robot v1 unauthorized response has a 4xx status code

func (*DeleteRobotV1Unauthorized) IsCode

func (o *DeleteRobotV1Unauthorized) IsCode(code int) bool

IsCode returns true when this delete robot v1 unauthorized response a status code equal to that given

func (*DeleteRobotV1Unauthorized) IsRedirect

func (o *DeleteRobotV1Unauthorized) IsRedirect() bool

IsRedirect returns true when this delete robot v1 unauthorized response has a 3xx status code

func (*DeleteRobotV1Unauthorized) IsServerError

func (o *DeleteRobotV1Unauthorized) IsServerError() bool

IsServerError returns true when this delete robot v1 unauthorized response has a 5xx status code

func (*DeleteRobotV1Unauthorized) IsSuccess

func (o *DeleteRobotV1Unauthorized) IsSuccess() bool

IsSuccess returns true when this delete robot v1 unauthorized response has a 2xx status code

func (*DeleteRobotV1Unauthorized) String

func (o *DeleteRobotV1Unauthorized) String() string

type GetRobotByIDV1Forbidden

type GetRobotByIDV1Forbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetRobotByIDV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRobotByIDV1Forbidden

func NewGetRobotByIDV1Forbidden() *GetRobotByIDV1Forbidden

NewGetRobotByIDV1Forbidden creates a GetRobotByIDV1Forbidden with default headers values

func (*GetRobotByIDV1Forbidden) Code

func (o *GetRobotByIDV1Forbidden) Code() int

Code gets the status code for the get robot by Id v1 forbidden response

func (*GetRobotByIDV1Forbidden) Error

func (o *GetRobotByIDV1Forbidden) Error() string

func (*GetRobotByIDV1Forbidden) GetPayload

func (o *GetRobotByIDV1Forbidden) GetPayload() *models.Errors

func (*GetRobotByIDV1Forbidden) IsClientError

func (o *GetRobotByIDV1Forbidden) IsClientError() bool

IsClientError returns true when this get robot by Id v1 forbidden response has a 4xx status code

func (*GetRobotByIDV1Forbidden) IsCode

func (o *GetRobotByIDV1Forbidden) IsCode(code int) bool

IsCode returns true when this get robot by Id v1 forbidden response a status code equal to that given

func (*GetRobotByIDV1Forbidden) IsRedirect

func (o *GetRobotByIDV1Forbidden) IsRedirect() bool

IsRedirect returns true when this get robot by Id v1 forbidden response has a 3xx status code

func (*GetRobotByIDV1Forbidden) IsServerError

func (o *GetRobotByIDV1Forbidden) IsServerError() bool

IsServerError returns true when this get robot by Id v1 forbidden response has a 5xx status code

func (*GetRobotByIDV1Forbidden) IsSuccess

func (o *GetRobotByIDV1Forbidden) IsSuccess() bool

IsSuccess returns true when this get robot by Id v1 forbidden response has a 2xx status code

func (*GetRobotByIDV1Forbidden) String

func (o *GetRobotByIDV1Forbidden) String() string

type GetRobotByIDV1InternalServerError

type GetRobotByIDV1InternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetRobotByIDV1InternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetRobotByIDV1InternalServerError

func NewGetRobotByIDV1InternalServerError() *GetRobotByIDV1InternalServerError

NewGetRobotByIDV1InternalServerError creates a GetRobotByIDV1InternalServerError with default headers values

func (*GetRobotByIDV1InternalServerError) Code

Code gets the status code for the get robot by Id v1 internal server error response

func (*GetRobotByIDV1InternalServerError) Error

func (*GetRobotByIDV1InternalServerError) GetPayload

func (*GetRobotByIDV1InternalServerError) IsClientError

func (o *GetRobotByIDV1InternalServerError) IsClientError() bool

IsClientError returns true when this get robot by Id v1 internal server error response has a 4xx status code

func (*GetRobotByIDV1InternalServerError) IsCode

func (o *GetRobotByIDV1InternalServerError) IsCode(code int) bool

IsCode returns true when this get robot by Id v1 internal server error response a status code equal to that given

func (*GetRobotByIDV1InternalServerError) IsRedirect

func (o *GetRobotByIDV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this get robot by Id v1 internal server error response has a 3xx status code

func (*GetRobotByIDV1InternalServerError) IsServerError

func (o *GetRobotByIDV1InternalServerError) IsServerError() bool

IsServerError returns true when this get robot by Id v1 internal server error response has a 5xx status code

func (*GetRobotByIDV1InternalServerError) IsSuccess

func (o *GetRobotByIDV1InternalServerError) IsSuccess() bool

IsSuccess returns true when this get robot by Id v1 internal server error response has a 2xx status code

func (*GetRobotByIDV1InternalServerError) String

type GetRobotByIDV1NotFound

type GetRobotByIDV1NotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetRobotByIDV1NotFound describes a response with status code 404, with default header values.

Not found

func NewGetRobotByIDV1NotFound

func NewGetRobotByIDV1NotFound() *GetRobotByIDV1NotFound

NewGetRobotByIDV1NotFound creates a GetRobotByIDV1NotFound with default headers values

func (*GetRobotByIDV1NotFound) Code

func (o *GetRobotByIDV1NotFound) Code() int

Code gets the status code for the get robot by Id v1 not found response

func (*GetRobotByIDV1NotFound) Error

func (o *GetRobotByIDV1NotFound) Error() string

func (*GetRobotByIDV1NotFound) GetPayload

func (o *GetRobotByIDV1NotFound) GetPayload() *models.Errors

func (*GetRobotByIDV1NotFound) IsClientError

func (o *GetRobotByIDV1NotFound) IsClientError() bool

IsClientError returns true when this get robot by Id v1 not found response has a 4xx status code

func (*GetRobotByIDV1NotFound) IsCode

func (o *GetRobotByIDV1NotFound) IsCode(code int) bool

IsCode returns true when this get robot by Id v1 not found response a status code equal to that given

func (*GetRobotByIDV1NotFound) IsRedirect

func (o *GetRobotByIDV1NotFound) IsRedirect() bool

IsRedirect returns true when this get robot by Id v1 not found response has a 3xx status code

func (*GetRobotByIDV1NotFound) IsServerError

func (o *GetRobotByIDV1NotFound) IsServerError() bool

IsServerError returns true when this get robot by Id v1 not found response has a 5xx status code

func (*GetRobotByIDV1NotFound) IsSuccess

func (o *GetRobotByIDV1NotFound) IsSuccess() bool

IsSuccess returns true when this get robot by Id v1 not found response has a 2xx status code

func (*GetRobotByIDV1NotFound) String

func (o *GetRobotByIDV1NotFound) String() string

type GetRobotByIDV1OK

type GetRobotByIDV1OK struct {
	Payload *models.Robot
}

GetRobotByIDV1OK describes a response with status code 200, with default header values.

Return matched robot information.

func NewGetRobotByIDV1OK

func NewGetRobotByIDV1OK() *GetRobotByIDV1OK

NewGetRobotByIDV1OK creates a GetRobotByIDV1OK with default headers values

func (*GetRobotByIDV1OK) Code

func (o *GetRobotByIDV1OK) Code() int

Code gets the status code for the get robot by Id v1 o k response

func (*GetRobotByIDV1OK) Error

func (o *GetRobotByIDV1OK) Error() string

func (*GetRobotByIDV1OK) GetPayload

func (o *GetRobotByIDV1OK) GetPayload() *models.Robot

func (*GetRobotByIDV1OK) IsClientError

func (o *GetRobotByIDV1OK) IsClientError() bool

IsClientError returns true when this get robot by Id v1 o k response has a 4xx status code

func (*GetRobotByIDV1OK) IsCode

func (o *GetRobotByIDV1OK) IsCode(code int) bool

IsCode returns true when this get robot by Id v1 o k response a status code equal to that given

func (*GetRobotByIDV1OK) IsRedirect

func (o *GetRobotByIDV1OK) IsRedirect() bool

IsRedirect returns true when this get robot by Id v1 o k response has a 3xx status code

func (*GetRobotByIDV1OK) IsServerError

func (o *GetRobotByIDV1OK) IsServerError() bool

IsServerError returns true when this get robot by Id v1 o k response has a 5xx status code

func (*GetRobotByIDV1OK) IsSuccess

func (o *GetRobotByIDV1OK) IsSuccess() bool

IsSuccess returns true when this get robot by Id v1 o k response has a 2xx status code

func (*GetRobotByIDV1OK) String

func (o *GetRobotByIDV1OK) String() string

type GetRobotByIDV1Params

type GetRobotByIDV1Params struct {

	/* XIsResourceName.

	   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.
	*/
	XIsResourceName *bool `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* RobotID.

	   Robot ID
	*/
	RobotID int64 `js:"robotID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

GetRobotByIDV1Params contains all the parameters to send to the API endpoint

for the get robot by ID v1 operation.

Typically these are written to a http.Request.

func NewGetRobotByIDV1Params

func NewGetRobotByIDV1Params() *GetRobotByIDV1Params

NewGetRobotByIDV1Params creates a new GetRobotByIDV1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetRobotByIDV1ParamsWithContext

func NewGetRobotByIDV1ParamsWithContext(ctx context.Context) *GetRobotByIDV1Params

NewGetRobotByIDV1ParamsWithContext creates a new GetRobotByIDV1Params object with the ability to set a context for a request.

func NewGetRobotByIDV1ParamsWithHTTPClient

func NewGetRobotByIDV1ParamsWithHTTPClient(client *http.Client) *GetRobotByIDV1Params

NewGetRobotByIDV1ParamsWithHTTPClient creates a new GetRobotByIDV1Params object with the ability to set a custom HTTPClient for a request.

func NewGetRobotByIDV1ParamsWithTimeout

func NewGetRobotByIDV1ParamsWithTimeout(timeout time.Duration) *GetRobotByIDV1Params

NewGetRobotByIDV1ParamsWithTimeout creates a new GetRobotByIDV1Params object with the ability to set a timeout on a request.

func (*GetRobotByIDV1Params) SetContext

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

SetContext adds the context to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetDefaults

func (o *GetRobotByIDV1Params) SetDefaults()

SetDefaults hydrates default values in the get robot by ID v1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetRobotByIDV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetProjectNameOrID

func (o *GetRobotByIDV1Params) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetRobotID

func (o *GetRobotByIDV1Params) SetRobotID(robotID int64)

SetRobotID adds the robotId to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetTimeout

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

SetTimeout adds the timeout to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetXIsResourceName

func (o *GetRobotByIDV1Params) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the get robot by ID v1 params

func (*GetRobotByIDV1Params) SetXRequestID

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

SetXRequestID adds the xRequestId to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithContext

WithContext adds the context to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithDefaults

func (o *GetRobotByIDV1Params) WithDefaults() *GetRobotByIDV1Params

WithDefaults hydrates default values in the get robot by ID v1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetRobotByIDV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithProjectNameOrID

func (o *GetRobotByIDV1Params) WithProjectNameOrID(projectNameOrID string) *GetRobotByIDV1Params

WithProjectNameOrID adds the projectNameOrID to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithRobotID

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

WithRobotID adds the robotID to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithTimeout

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

WithTimeout adds the timeout to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithXIsResourceName

func (o *GetRobotByIDV1Params) WithXIsResourceName(xIsResourceName *bool) *GetRobotByIDV1Params

WithXIsResourceName adds the xIsResourceName to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WithXRequestID

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

WithXRequestID adds the xRequestID to the get robot by ID v1 params

func (*GetRobotByIDV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRobotByIDV1Reader

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

GetRobotByIDV1Reader is a Reader for the GetRobotByIDV1 structure.

func (*GetRobotByIDV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRobotByIDV1Unauthorized

type GetRobotByIDV1Unauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetRobotByIDV1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetRobotByIDV1Unauthorized

func NewGetRobotByIDV1Unauthorized() *GetRobotByIDV1Unauthorized

NewGetRobotByIDV1Unauthorized creates a GetRobotByIDV1Unauthorized with default headers values

func (*GetRobotByIDV1Unauthorized) Code

func (o *GetRobotByIDV1Unauthorized) Code() int

Code gets the status code for the get robot by Id v1 unauthorized response

func (*GetRobotByIDV1Unauthorized) Error

func (*GetRobotByIDV1Unauthorized) GetPayload

func (o *GetRobotByIDV1Unauthorized) GetPayload() *models.Errors

func (*GetRobotByIDV1Unauthorized) IsClientError

func (o *GetRobotByIDV1Unauthorized) IsClientError() bool

IsClientError returns true when this get robot by Id v1 unauthorized response has a 4xx status code

func (*GetRobotByIDV1Unauthorized) IsCode

func (o *GetRobotByIDV1Unauthorized) IsCode(code int) bool

IsCode returns true when this get robot by Id v1 unauthorized response a status code equal to that given

func (*GetRobotByIDV1Unauthorized) IsRedirect

func (o *GetRobotByIDV1Unauthorized) IsRedirect() bool

IsRedirect returns true when this get robot by Id v1 unauthorized response has a 3xx status code

func (*GetRobotByIDV1Unauthorized) IsServerError

func (o *GetRobotByIDV1Unauthorized) IsServerError() bool

IsServerError returns true when this get robot by Id v1 unauthorized response has a 5xx status code

func (*GetRobotByIDV1Unauthorized) IsSuccess

func (o *GetRobotByIDV1Unauthorized) IsSuccess() bool

IsSuccess returns true when this get robot by Id v1 unauthorized response has a 2xx status code

func (*GetRobotByIDV1Unauthorized) String

func (o *GetRobotByIDV1Unauthorized) String() string

type ListRobotV1BadRequest

type ListRobotV1BadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListRobotV1BadRequest describes a response with status code 400, with default header values.

Bad request

func NewListRobotV1BadRequest

func NewListRobotV1BadRequest() *ListRobotV1BadRequest

NewListRobotV1BadRequest creates a ListRobotV1BadRequest with default headers values

func (*ListRobotV1BadRequest) Code

func (o *ListRobotV1BadRequest) Code() int

Code gets the status code for the list robot v1 bad request response

func (*ListRobotV1BadRequest) Error

func (o *ListRobotV1BadRequest) Error() string

func (*ListRobotV1BadRequest) GetPayload

func (o *ListRobotV1BadRequest) GetPayload() *models.Errors

func (*ListRobotV1BadRequest) IsClientError

func (o *ListRobotV1BadRequest) IsClientError() bool

IsClientError returns true when this list robot v1 bad request response has a 4xx status code

func (*ListRobotV1BadRequest) IsCode

func (o *ListRobotV1BadRequest) IsCode(code int) bool

IsCode returns true when this list robot v1 bad request response a status code equal to that given

func (*ListRobotV1BadRequest) IsRedirect

func (o *ListRobotV1BadRequest) IsRedirect() bool

IsRedirect returns true when this list robot v1 bad request response has a 3xx status code

func (*ListRobotV1BadRequest) IsServerError

func (o *ListRobotV1BadRequest) IsServerError() bool

IsServerError returns true when this list robot v1 bad request response has a 5xx status code

func (*ListRobotV1BadRequest) IsSuccess

func (o *ListRobotV1BadRequest) IsSuccess() bool

IsSuccess returns true when this list robot v1 bad request response has a 2xx status code

func (*ListRobotV1BadRequest) String

func (o *ListRobotV1BadRequest) String() string

type ListRobotV1InternalServerError

type ListRobotV1InternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListRobotV1InternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewListRobotV1InternalServerError

func NewListRobotV1InternalServerError() *ListRobotV1InternalServerError

NewListRobotV1InternalServerError creates a ListRobotV1InternalServerError with default headers values

func (*ListRobotV1InternalServerError) Code

Code gets the status code for the list robot v1 internal server error response

func (*ListRobotV1InternalServerError) Error

func (*ListRobotV1InternalServerError) GetPayload

func (o *ListRobotV1InternalServerError) GetPayload() *models.Errors

func (*ListRobotV1InternalServerError) IsClientError

func (o *ListRobotV1InternalServerError) IsClientError() bool

IsClientError returns true when this list robot v1 internal server error response has a 4xx status code

func (*ListRobotV1InternalServerError) IsCode

func (o *ListRobotV1InternalServerError) IsCode(code int) bool

IsCode returns true when this list robot v1 internal server error response a status code equal to that given

func (*ListRobotV1InternalServerError) IsRedirect

func (o *ListRobotV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this list robot v1 internal server error response has a 3xx status code

func (*ListRobotV1InternalServerError) IsServerError

func (o *ListRobotV1InternalServerError) IsServerError() bool

IsServerError returns true when this list robot v1 internal server error response has a 5xx status code

func (*ListRobotV1InternalServerError) IsSuccess

func (o *ListRobotV1InternalServerError) IsSuccess() bool

IsSuccess returns true when this list robot v1 internal server error response has a 2xx status code

func (*ListRobotV1InternalServerError) String

type ListRobotV1NotFound

type ListRobotV1NotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListRobotV1NotFound describes a response with status code 404, with default header values.

Not found

func NewListRobotV1NotFound

func NewListRobotV1NotFound() *ListRobotV1NotFound

NewListRobotV1NotFound creates a ListRobotV1NotFound with default headers values

func (*ListRobotV1NotFound) Code

func (o *ListRobotV1NotFound) Code() int

Code gets the status code for the list robot v1 not found response

func (*ListRobotV1NotFound) Error

func (o *ListRobotV1NotFound) Error() string

func (*ListRobotV1NotFound) GetPayload

func (o *ListRobotV1NotFound) GetPayload() *models.Errors

func (*ListRobotV1NotFound) IsClientError

func (o *ListRobotV1NotFound) IsClientError() bool

IsClientError returns true when this list robot v1 not found response has a 4xx status code

func (*ListRobotV1NotFound) IsCode

func (o *ListRobotV1NotFound) IsCode(code int) bool

IsCode returns true when this list robot v1 not found response a status code equal to that given

func (*ListRobotV1NotFound) IsRedirect

func (o *ListRobotV1NotFound) IsRedirect() bool

IsRedirect returns true when this list robot v1 not found response has a 3xx status code

func (*ListRobotV1NotFound) IsServerError

func (o *ListRobotV1NotFound) IsServerError() bool

IsServerError returns true when this list robot v1 not found response has a 5xx status code

func (*ListRobotV1NotFound) IsSuccess

func (o *ListRobotV1NotFound) IsSuccess() bool

IsSuccess returns true when this list robot v1 not found response has a 2xx status code

func (*ListRobotV1NotFound) String

func (o *ListRobotV1NotFound) String() string

type ListRobotV1OK

type ListRobotV1OK struct {

	/* Link refers to the previous page and next page
	 */
	Link string

	/* The total count of robot accounts
	 */
	XTotalCount int64

	Payload []*models.Robot
}

ListRobotV1OK describes a response with status code 200, with default header values.

Success

func NewListRobotV1OK

func NewListRobotV1OK() *ListRobotV1OK

NewListRobotV1OK creates a ListRobotV1OK with default headers values

func (*ListRobotV1OK) Code

func (o *ListRobotV1OK) Code() int

Code gets the status code for the list robot v1 o k response

func (*ListRobotV1OK) Error

func (o *ListRobotV1OK) Error() string

func (*ListRobotV1OK) GetPayload

func (o *ListRobotV1OK) GetPayload() []*models.Robot

func (*ListRobotV1OK) IsClientError

func (o *ListRobotV1OK) IsClientError() bool

IsClientError returns true when this list robot v1 o k response has a 4xx status code

func (*ListRobotV1OK) IsCode

func (o *ListRobotV1OK) IsCode(code int) bool

IsCode returns true when this list robot v1 o k response a status code equal to that given

func (*ListRobotV1OK) IsRedirect

func (o *ListRobotV1OK) IsRedirect() bool

IsRedirect returns true when this list robot v1 o k response has a 3xx status code

func (*ListRobotV1OK) IsServerError

func (o *ListRobotV1OK) IsServerError() bool

IsServerError returns true when this list robot v1 o k response has a 5xx status code

func (*ListRobotV1OK) IsSuccess

func (o *ListRobotV1OK) IsSuccess() bool

IsSuccess returns true when this list robot v1 o k response has a 2xx status code

func (*ListRobotV1OK) String

func (o *ListRobotV1OK) String() string

type ListRobotV1Params

type ListRobotV1Params struct {

	/* XIsResourceName.

	   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.
	*/
	XIsResourceName *bool `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* 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 `js:"q"`

	/* 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 `js:"sort"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

ListRobotV1Params contains all the parameters to send to the API endpoint

for the list robot v1 operation.

Typically these are written to a http.Request.

func NewListRobotV1Params

func NewListRobotV1Params() *ListRobotV1Params

NewListRobotV1Params creates a new ListRobotV1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListRobotV1ParamsWithContext

func NewListRobotV1ParamsWithContext(ctx context.Context) *ListRobotV1Params

NewListRobotV1ParamsWithContext creates a new ListRobotV1Params object with the ability to set a context for a request.

func NewListRobotV1ParamsWithHTTPClient

func NewListRobotV1ParamsWithHTTPClient(client *http.Client) *ListRobotV1Params

NewListRobotV1ParamsWithHTTPClient creates a new ListRobotV1Params object with the ability to set a custom HTTPClient for a request.

func NewListRobotV1ParamsWithTimeout

func NewListRobotV1ParamsWithTimeout(timeout time.Duration) *ListRobotV1Params

NewListRobotV1ParamsWithTimeout creates a new ListRobotV1Params object with the ability to set a timeout on a request.

func (*ListRobotV1Params) SetContext

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

SetContext adds the context to the list robot v1 params

func (*ListRobotV1Params) SetDefaults

func (o *ListRobotV1Params) SetDefaults()

SetDefaults hydrates default values in the list robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*ListRobotV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list robot v1 params

func (*ListRobotV1Params) SetPage

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

SetPage adds the page to the list robot v1 params

func (*ListRobotV1Params) SetPageSize

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

SetPageSize adds the pageSize to the list robot v1 params

func (*ListRobotV1Params) SetProjectNameOrID

func (o *ListRobotV1Params) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the list robot v1 params

func (*ListRobotV1Params) SetQ

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

SetQ adds the q to the list robot v1 params

func (*ListRobotV1Params) SetSort

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

SetSort adds the sort to the list robot v1 params

func (*ListRobotV1Params) SetTimeout

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

SetTimeout adds the timeout to the list robot v1 params

func (*ListRobotV1Params) SetXIsResourceName

func (o *ListRobotV1Params) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the list robot v1 params

func (*ListRobotV1Params) SetXRequestID

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

SetXRequestID adds the xRequestId to the list robot v1 params

func (*ListRobotV1Params) WithContext

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

WithContext adds the context to the list robot v1 params

func (*ListRobotV1Params) WithDefaults

func (o *ListRobotV1Params) WithDefaults() *ListRobotV1Params

WithDefaults hydrates default values in the list robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*ListRobotV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list robot v1 params

func (*ListRobotV1Params) WithPage

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

WithPage adds the page to the list robot v1 params

func (*ListRobotV1Params) WithPageSize

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

WithPageSize adds the pageSize to the list robot v1 params

func (*ListRobotV1Params) WithProjectNameOrID

func (o *ListRobotV1Params) WithProjectNameOrID(projectNameOrID string) *ListRobotV1Params

WithProjectNameOrID adds the projectNameOrID to the list robot v1 params

func (*ListRobotV1Params) WithQ

WithQ adds the q to the list robot v1 params

func (*ListRobotV1Params) WithSort

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

WithSort adds the sort to the list robot v1 params

func (*ListRobotV1Params) WithTimeout

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

WithTimeout adds the timeout to the list robot v1 params

func (*ListRobotV1Params) WithXIsResourceName

func (o *ListRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *ListRobotV1Params

WithXIsResourceName adds the xIsResourceName to the list robot v1 params

func (*ListRobotV1Params) WithXRequestID

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

WithXRequestID adds the xRequestID to the list robot v1 params

func (*ListRobotV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRobotV1Reader

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

ListRobotV1Reader is a Reader for the ListRobotV1 structure.

func (*ListRobotV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRobotV1BadRequest

type UpdateRobotV1BadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1BadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateRobotV1BadRequest

func NewUpdateRobotV1BadRequest() *UpdateRobotV1BadRequest

NewUpdateRobotV1BadRequest creates a UpdateRobotV1BadRequest with default headers values

func (*UpdateRobotV1BadRequest) Code

func (o *UpdateRobotV1BadRequest) Code() int

Code gets the status code for the update robot v1 bad request response

func (*UpdateRobotV1BadRequest) Error

func (o *UpdateRobotV1BadRequest) Error() string

func (*UpdateRobotV1BadRequest) GetPayload

func (o *UpdateRobotV1BadRequest) GetPayload() *models.Errors

func (*UpdateRobotV1BadRequest) IsClientError

func (o *UpdateRobotV1BadRequest) IsClientError() bool

IsClientError returns true when this update robot v1 bad request response has a 4xx status code

func (*UpdateRobotV1BadRequest) IsCode

func (o *UpdateRobotV1BadRequest) IsCode(code int) bool

IsCode returns true when this update robot v1 bad request response a status code equal to that given

func (*UpdateRobotV1BadRequest) IsRedirect

func (o *UpdateRobotV1BadRequest) IsRedirect() bool

IsRedirect returns true when this update robot v1 bad request response has a 3xx status code

func (*UpdateRobotV1BadRequest) IsServerError

func (o *UpdateRobotV1BadRequest) IsServerError() bool

IsServerError returns true when this update robot v1 bad request response has a 5xx status code

func (*UpdateRobotV1BadRequest) IsSuccess

func (o *UpdateRobotV1BadRequest) IsSuccess() bool

IsSuccess returns true when this update robot v1 bad request response has a 2xx status code

func (*UpdateRobotV1BadRequest) String

func (o *UpdateRobotV1BadRequest) String() string

type UpdateRobotV1Conflict

type UpdateRobotV1Conflict struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1Conflict describes a response with status code 409, with default header values.

Conflict

func NewUpdateRobotV1Conflict

func NewUpdateRobotV1Conflict() *UpdateRobotV1Conflict

NewUpdateRobotV1Conflict creates a UpdateRobotV1Conflict with default headers values

func (*UpdateRobotV1Conflict) Code

func (o *UpdateRobotV1Conflict) Code() int

Code gets the status code for the update robot v1 conflict response

func (*UpdateRobotV1Conflict) Error

func (o *UpdateRobotV1Conflict) Error() string

func (*UpdateRobotV1Conflict) GetPayload

func (o *UpdateRobotV1Conflict) GetPayload() *models.Errors

func (*UpdateRobotV1Conflict) IsClientError

func (o *UpdateRobotV1Conflict) IsClientError() bool

IsClientError returns true when this update robot v1 conflict response has a 4xx status code

func (*UpdateRobotV1Conflict) IsCode

func (o *UpdateRobotV1Conflict) IsCode(code int) bool

IsCode returns true when this update robot v1 conflict response a status code equal to that given

func (*UpdateRobotV1Conflict) IsRedirect

func (o *UpdateRobotV1Conflict) IsRedirect() bool

IsRedirect returns true when this update robot v1 conflict response has a 3xx status code

func (*UpdateRobotV1Conflict) IsServerError

func (o *UpdateRobotV1Conflict) IsServerError() bool

IsServerError returns true when this update robot v1 conflict response has a 5xx status code

func (*UpdateRobotV1Conflict) IsSuccess

func (o *UpdateRobotV1Conflict) IsSuccess() bool

IsSuccess returns true when this update robot v1 conflict response has a 2xx status code

func (*UpdateRobotV1Conflict) String

func (o *UpdateRobotV1Conflict) String() string

type UpdateRobotV1Forbidden

type UpdateRobotV1Forbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateRobotV1Forbidden

func NewUpdateRobotV1Forbidden() *UpdateRobotV1Forbidden

NewUpdateRobotV1Forbidden creates a UpdateRobotV1Forbidden with default headers values

func (*UpdateRobotV1Forbidden) Code

func (o *UpdateRobotV1Forbidden) Code() int

Code gets the status code for the update robot v1 forbidden response

func (*UpdateRobotV1Forbidden) Error

func (o *UpdateRobotV1Forbidden) Error() string

func (*UpdateRobotV1Forbidden) GetPayload

func (o *UpdateRobotV1Forbidden) GetPayload() *models.Errors

func (*UpdateRobotV1Forbidden) IsClientError

func (o *UpdateRobotV1Forbidden) IsClientError() bool

IsClientError returns true when this update robot v1 forbidden response has a 4xx status code

func (*UpdateRobotV1Forbidden) IsCode

func (o *UpdateRobotV1Forbidden) IsCode(code int) bool

IsCode returns true when this update robot v1 forbidden response a status code equal to that given

func (*UpdateRobotV1Forbidden) IsRedirect

func (o *UpdateRobotV1Forbidden) IsRedirect() bool

IsRedirect returns true when this update robot v1 forbidden response has a 3xx status code

func (*UpdateRobotV1Forbidden) IsServerError

func (o *UpdateRobotV1Forbidden) IsServerError() bool

IsServerError returns true when this update robot v1 forbidden response has a 5xx status code

func (*UpdateRobotV1Forbidden) IsSuccess

func (o *UpdateRobotV1Forbidden) IsSuccess() bool

IsSuccess returns true when this update robot v1 forbidden response has a 2xx status code

func (*UpdateRobotV1Forbidden) String

func (o *UpdateRobotV1Forbidden) String() string

type UpdateRobotV1InternalServerError

type UpdateRobotV1InternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1InternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewUpdateRobotV1InternalServerError

func NewUpdateRobotV1InternalServerError() *UpdateRobotV1InternalServerError

NewUpdateRobotV1InternalServerError creates a UpdateRobotV1InternalServerError with default headers values

func (*UpdateRobotV1InternalServerError) Code

Code gets the status code for the update robot v1 internal server error response

func (*UpdateRobotV1InternalServerError) Error

func (*UpdateRobotV1InternalServerError) GetPayload

func (*UpdateRobotV1InternalServerError) IsClientError

func (o *UpdateRobotV1InternalServerError) IsClientError() bool

IsClientError returns true when this update robot v1 internal server error response has a 4xx status code

func (*UpdateRobotV1InternalServerError) IsCode

func (o *UpdateRobotV1InternalServerError) IsCode(code int) bool

IsCode returns true when this update robot v1 internal server error response a status code equal to that given

func (*UpdateRobotV1InternalServerError) IsRedirect

func (o *UpdateRobotV1InternalServerError) IsRedirect() bool

IsRedirect returns true when this update robot v1 internal server error response has a 3xx status code

func (*UpdateRobotV1InternalServerError) IsServerError

func (o *UpdateRobotV1InternalServerError) IsServerError() bool

IsServerError returns true when this update robot v1 internal server error response has a 5xx status code

func (*UpdateRobotV1InternalServerError) IsSuccess

func (o *UpdateRobotV1InternalServerError) IsSuccess() bool

IsSuccess returns true when this update robot v1 internal server error response has a 2xx status code

func (*UpdateRobotV1InternalServerError) String

type UpdateRobotV1NotFound

type UpdateRobotV1NotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1NotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateRobotV1NotFound

func NewUpdateRobotV1NotFound() *UpdateRobotV1NotFound

NewUpdateRobotV1NotFound creates a UpdateRobotV1NotFound with default headers values

func (*UpdateRobotV1NotFound) Code

func (o *UpdateRobotV1NotFound) Code() int

Code gets the status code for the update robot v1 not found response

func (*UpdateRobotV1NotFound) Error

func (o *UpdateRobotV1NotFound) Error() string

func (*UpdateRobotV1NotFound) GetPayload

func (o *UpdateRobotV1NotFound) GetPayload() *models.Errors

func (*UpdateRobotV1NotFound) IsClientError

func (o *UpdateRobotV1NotFound) IsClientError() bool

IsClientError returns true when this update robot v1 not found response has a 4xx status code

func (*UpdateRobotV1NotFound) IsCode

func (o *UpdateRobotV1NotFound) IsCode(code int) bool

IsCode returns true when this update robot v1 not found response a status code equal to that given

func (*UpdateRobotV1NotFound) IsRedirect

func (o *UpdateRobotV1NotFound) IsRedirect() bool

IsRedirect returns true when this update robot v1 not found response has a 3xx status code

func (*UpdateRobotV1NotFound) IsServerError

func (o *UpdateRobotV1NotFound) IsServerError() bool

IsServerError returns true when this update robot v1 not found response has a 5xx status code

func (*UpdateRobotV1NotFound) IsSuccess

func (o *UpdateRobotV1NotFound) IsSuccess() bool

IsSuccess returns true when this update robot v1 not found response has a 2xx status code

func (*UpdateRobotV1NotFound) String

func (o *UpdateRobotV1NotFound) String() string

type UpdateRobotV1OK

type UpdateRobotV1OK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateRobotV1OK describes a response with status code 200, with default header values.

Success

func NewUpdateRobotV1OK

func NewUpdateRobotV1OK() *UpdateRobotV1OK

NewUpdateRobotV1OK creates a UpdateRobotV1OK with default headers values

func (*UpdateRobotV1OK) Code

func (o *UpdateRobotV1OK) Code() int

Code gets the status code for the update robot v1 o k response

func (*UpdateRobotV1OK) Error

func (o *UpdateRobotV1OK) Error() string

func (*UpdateRobotV1OK) IsClientError

func (o *UpdateRobotV1OK) IsClientError() bool

IsClientError returns true when this update robot v1 o k response has a 4xx status code

func (*UpdateRobotV1OK) IsCode

func (o *UpdateRobotV1OK) IsCode(code int) bool

IsCode returns true when this update robot v1 o k response a status code equal to that given

func (*UpdateRobotV1OK) IsRedirect

func (o *UpdateRobotV1OK) IsRedirect() bool

IsRedirect returns true when this update robot v1 o k response has a 3xx status code

func (*UpdateRobotV1OK) IsServerError

func (o *UpdateRobotV1OK) IsServerError() bool

IsServerError returns true when this update robot v1 o k response has a 5xx status code

func (*UpdateRobotV1OK) IsSuccess

func (o *UpdateRobotV1OK) IsSuccess() bool

IsSuccess returns true when this update robot v1 o k response has a 2xx status code

func (*UpdateRobotV1OK) String

func (o *UpdateRobotV1OK) String() string

type UpdateRobotV1Params

type UpdateRobotV1Params struct {

	/* XIsResourceName.

	   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.
	*/
	XIsResourceName *bool `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* Robot.

	   The JSON object of a robot account.
	*/
	Robot *models.Robot `js:"robot"`

	/* RobotID.

	   Robot ID
	*/
	RobotID int64 `js:"robotID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

UpdateRobotV1Params contains all the parameters to send to the API endpoint

for the update robot v1 operation.

Typically these are written to a http.Request.

func NewUpdateRobotV1Params

func NewUpdateRobotV1Params() *UpdateRobotV1Params

NewUpdateRobotV1Params creates a new UpdateRobotV1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateRobotV1ParamsWithContext

func NewUpdateRobotV1ParamsWithContext(ctx context.Context) *UpdateRobotV1Params

NewUpdateRobotV1ParamsWithContext creates a new UpdateRobotV1Params object with the ability to set a context for a request.

func NewUpdateRobotV1ParamsWithHTTPClient

func NewUpdateRobotV1ParamsWithHTTPClient(client *http.Client) *UpdateRobotV1Params

NewUpdateRobotV1ParamsWithHTTPClient creates a new UpdateRobotV1Params object with the ability to set a custom HTTPClient for a request.

func NewUpdateRobotV1ParamsWithTimeout

func NewUpdateRobotV1ParamsWithTimeout(timeout time.Duration) *UpdateRobotV1Params

NewUpdateRobotV1ParamsWithTimeout creates a new UpdateRobotV1Params object with the ability to set a timeout on a request.

func (*UpdateRobotV1Params) SetContext

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

SetContext adds the context to the update robot v1 params

func (*UpdateRobotV1Params) SetDefaults

func (o *UpdateRobotV1Params) SetDefaults()

SetDefaults hydrates default values in the update robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRobotV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update robot v1 params

func (*UpdateRobotV1Params) SetProjectNameOrID

func (o *UpdateRobotV1Params) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the update robot v1 params

func (*UpdateRobotV1Params) SetRobot

func (o *UpdateRobotV1Params) SetRobot(robot *models.Robot)

SetRobot adds the robot to the update robot v1 params

func (*UpdateRobotV1Params) SetRobotID

func (o *UpdateRobotV1Params) SetRobotID(robotID int64)

SetRobotID adds the robotId to the update robot v1 params

func (*UpdateRobotV1Params) SetTimeout

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

SetTimeout adds the timeout to the update robot v1 params

func (*UpdateRobotV1Params) SetXIsResourceName

func (o *UpdateRobotV1Params) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the update robot v1 params

func (*UpdateRobotV1Params) SetXRequestID

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

SetXRequestID adds the xRequestId to the update robot v1 params

func (*UpdateRobotV1Params) WithContext

WithContext adds the context to the update robot v1 params

func (*UpdateRobotV1Params) WithDefaults

func (o *UpdateRobotV1Params) WithDefaults() *UpdateRobotV1Params

WithDefaults hydrates default values in the update robot v1 params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRobotV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update robot v1 params

func (*UpdateRobotV1Params) WithProjectNameOrID

func (o *UpdateRobotV1Params) WithProjectNameOrID(projectNameOrID string) *UpdateRobotV1Params

WithProjectNameOrID adds the projectNameOrID to the update robot v1 params

func (*UpdateRobotV1Params) WithRobot

func (o *UpdateRobotV1Params) WithRobot(robot *models.Robot) *UpdateRobotV1Params

WithRobot adds the robot to the update robot v1 params

func (*UpdateRobotV1Params) WithRobotID

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

WithRobotID adds the robotID to the update robot v1 params

func (*UpdateRobotV1Params) WithTimeout

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

WithTimeout adds the timeout to the update robot v1 params

func (*UpdateRobotV1Params) WithXIsResourceName

func (o *UpdateRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *UpdateRobotV1Params

WithXIsResourceName adds the xIsResourceName to the update robot v1 params

func (*UpdateRobotV1Params) WithXRequestID

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

WithXRequestID adds the xRequestID to the update robot v1 params

func (*UpdateRobotV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRobotV1Reader

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

UpdateRobotV1Reader is a Reader for the UpdateRobotV1 structure.

func (*UpdateRobotV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRobotV1Unauthorized

type UpdateRobotV1Unauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateRobotV1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateRobotV1Unauthorized

func NewUpdateRobotV1Unauthorized() *UpdateRobotV1Unauthorized

NewUpdateRobotV1Unauthorized creates a UpdateRobotV1Unauthorized with default headers values

func (*UpdateRobotV1Unauthorized) Code

func (o *UpdateRobotV1Unauthorized) Code() int

Code gets the status code for the update robot v1 unauthorized response

func (*UpdateRobotV1Unauthorized) Error

func (o *UpdateRobotV1Unauthorized) Error() string

func (*UpdateRobotV1Unauthorized) GetPayload

func (o *UpdateRobotV1Unauthorized) GetPayload() *models.Errors

func (*UpdateRobotV1Unauthorized) IsClientError

func (o *UpdateRobotV1Unauthorized) IsClientError() bool

IsClientError returns true when this update robot v1 unauthorized response has a 4xx status code

func (*UpdateRobotV1Unauthorized) IsCode

func (o *UpdateRobotV1Unauthorized) IsCode(code int) bool

IsCode returns true when this update robot v1 unauthorized response a status code equal to that given

func (*UpdateRobotV1Unauthorized) IsRedirect

func (o *UpdateRobotV1Unauthorized) IsRedirect() bool

IsRedirect returns true when this update robot v1 unauthorized response has a 3xx status code

func (*UpdateRobotV1Unauthorized) IsServerError

func (o *UpdateRobotV1Unauthorized) IsServerError() bool

IsServerError returns true when this update robot v1 unauthorized response has a 5xx status code

func (*UpdateRobotV1Unauthorized) IsSuccess

func (o *UpdateRobotV1Unauthorized) IsSuccess() bool

IsSuccess returns true when this update robot v1 unauthorized response has a 2xx status code

func (*UpdateRobotV1Unauthorized) String

func (o *UpdateRobotV1Unauthorized) String() string

Jump to

Keyboard shortcuts

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