Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateRobotV1(params *CreateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateRobotV1Created, error)
- func (a *Client) DeleteRobotV1(params *DeleteRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteRobotV1OK, error)
- func (a *Client) GetRobotByIDV1(params *GetRobotByIDV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetRobotByIDV1OK, error)
- func (a *Client) ListRobotV1(params *ListRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListRobotV1OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateRobotV1(params *UpdateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdateRobotV1OK, error)
- type ClientService
- type CreateRobotV1BadRequest
- type CreateRobotV1Created
- type CreateRobotV1Forbidden
- type CreateRobotV1InternalServerError
- type CreateRobotV1NotFound
- type CreateRobotV1Params
- func (o *CreateRobotV1Params) SetContext(ctx context.Context)
- func (o *CreateRobotV1Params) SetHTTPClient(client *http.Client)
- func (o *CreateRobotV1Params) SetProjectNameOrID(projectNameOrID string)
- func (o *CreateRobotV1Params) SetRobot(robot *model.RobotCreateV1)
- func (o *CreateRobotV1Params) SetTimeout(timeout time.Duration)
- func (o *CreateRobotV1Params) SetXIsResourceName(xIsResourceName *bool)
- func (o *CreateRobotV1Params) SetXRequestID(xRequestID *string)
- func (o *CreateRobotV1Params) WithContext(ctx context.Context) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithHTTPClient(client *http.Client) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithProjectNameOrID(projectNameOrID string) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithRobot(robot *model.RobotCreateV1) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithTimeout(timeout time.Duration) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WithXRequestID(xRequestID *string) *CreateRobotV1Params
- func (o *CreateRobotV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRobotV1Reader
- type CreateRobotV1Unauthorized
- type DeleteRobotV1BadRequest
- type DeleteRobotV1Forbidden
- type DeleteRobotV1InternalServerError
- type DeleteRobotV1NotFound
- type DeleteRobotV1OK
- type DeleteRobotV1Params
- func (o *DeleteRobotV1Params) SetContext(ctx context.Context)
- func (o *DeleteRobotV1Params) SetHTTPClient(client *http.Client)
- func (o *DeleteRobotV1Params) SetProjectNameOrID(projectNameOrID string)
- func (o *DeleteRobotV1Params) SetRobotID(robotID int64)
- func (o *DeleteRobotV1Params) SetTimeout(timeout time.Duration)
- func (o *DeleteRobotV1Params) SetXIsResourceName(xIsResourceName *bool)
- func (o *DeleteRobotV1Params) SetXRequestID(xRequestID *string)
- func (o *DeleteRobotV1Params) WithContext(ctx context.Context) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithHTTPClient(client *http.Client) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithProjectNameOrID(projectNameOrID string) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithRobotID(robotID int64) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithTimeout(timeout time.Duration) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WithXRequestID(xRequestID *string) *DeleteRobotV1Params
- func (o *DeleteRobotV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRobotV1Reader
- type DeleteRobotV1Unauthorized
- type GetRobotByIDV1Forbidden
- type GetRobotByIDV1InternalServerError
- type GetRobotByIDV1NotFound
- type GetRobotByIDV1OK
- type GetRobotByIDV1Params
- func NewGetRobotByIDV1Params() *GetRobotByIDV1Params
- func NewGetRobotByIDV1ParamsWithContext(ctx context.Context) *GetRobotByIDV1Params
- func NewGetRobotByIDV1ParamsWithHTTPClient(client *http.Client) *GetRobotByIDV1Params
- func NewGetRobotByIDV1ParamsWithTimeout(timeout time.Duration) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) SetContext(ctx context.Context)
- func (o *GetRobotByIDV1Params) SetHTTPClient(client *http.Client)
- func (o *GetRobotByIDV1Params) SetProjectNameOrID(projectNameOrID string)
- func (o *GetRobotByIDV1Params) SetRobotID(robotID int64)
- func (o *GetRobotByIDV1Params) SetTimeout(timeout time.Duration)
- func (o *GetRobotByIDV1Params) SetXIsResourceName(xIsResourceName *bool)
- func (o *GetRobotByIDV1Params) SetXRequestID(xRequestID *string)
- func (o *GetRobotByIDV1Params) WithContext(ctx context.Context) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithHTTPClient(client *http.Client) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithProjectNameOrID(projectNameOrID string) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithRobotID(robotID int64) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithTimeout(timeout time.Duration) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithXIsResourceName(xIsResourceName *bool) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WithXRequestID(xRequestID *string) *GetRobotByIDV1Params
- func (o *GetRobotByIDV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRobotByIDV1Reader
- type GetRobotByIDV1Unauthorized
- type ListRobotV1BadRequest
- type ListRobotV1InternalServerError
- type ListRobotV1NotFound
- type ListRobotV1OK
- type ListRobotV1Params
- func (o *ListRobotV1Params) SetContext(ctx context.Context)
- func (o *ListRobotV1Params) SetHTTPClient(client *http.Client)
- func (o *ListRobotV1Params) SetPage(page *int64)
- func (o *ListRobotV1Params) SetPageSize(pageSize *int64)
- func (o *ListRobotV1Params) SetProjectNameOrID(projectNameOrID string)
- func (o *ListRobotV1Params) SetQ(q *string)
- func (o *ListRobotV1Params) SetSort(sort *string)
- func (o *ListRobotV1Params) SetTimeout(timeout time.Duration)
- func (o *ListRobotV1Params) SetXIsResourceName(xIsResourceName *bool)
- func (o *ListRobotV1Params) SetXRequestID(xRequestID *string)
- func (o *ListRobotV1Params) WithContext(ctx context.Context) *ListRobotV1Params
- func (o *ListRobotV1Params) WithHTTPClient(client *http.Client) *ListRobotV1Params
- func (o *ListRobotV1Params) WithPage(page *int64) *ListRobotV1Params
- func (o *ListRobotV1Params) WithPageSize(pageSize *int64) *ListRobotV1Params
- func (o *ListRobotV1Params) WithProjectNameOrID(projectNameOrID string) *ListRobotV1Params
- func (o *ListRobotV1Params) WithQ(q *string) *ListRobotV1Params
- func (o *ListRobotV1Params) WithSort(sort *string) *ListRobotV1Params
- func (o *ListRobotV1Params) WithTimeout(timeout time.Duration) *ListRobotV1Params
- func (o *ListRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *ListRobotV1Params
- func (o *ListRobotV1Params) WithXRequestID(xRequestID *string) *ListRobotV1Params
- func (o *ListRobotV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRobotV1Reader
- type UpdateRobotV1BadRequest
- type UpdateRobotV1Conflict
- type UpdateRobotV1Forbidden
- type UpdateRobotV1InternalServerError
- type UpdateRobotV1NotFound
- type UpdateRobotV1OK
- type UpdateRobotV1Params
- func (o *UpdateRobotV1Params) SetContext(ctx context.Context)
- func (o *UpdateRobotV1Params) SetHTTPClient(client *http.Client)
- func (o *UpdateRobotV1Params) SetProjectNameOrID(projectNameOrID string)
- func (o *UpdateRobotV1Params) SetRobot(robot *model.Robot)
- func (o *UpdateRobotV1Params) SetRobotID(robotID int64)
- func (o *UpdateRobotV1Params) SetTimeout(timeout time.Duration)
- func (o *UpdateRobotV1Params) SetXIsResourceName(xIsResourceName *bool)
- func (o *UpdateRobotV1Params) SetXRequestID(xRequestID *string)
- func (o *UpdateRobotV1Params) WithContext(ctx context.Context) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithHTTPClient(client *http.Client) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithProjectNameOrID(projectNameOrID string) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithRobot(robot *model.Robot) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithRobotID(robotID int64) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithTimeout(timeout time.Duration) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithXIsResourceName(xIsResourceName *bool) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WithXRequestID(xRequestID *string) *UpdateRobotV1Params
- func (o *UpdateRobotV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRobotV1Reader
- type UpdateRobotV1Unauthorized
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 robotv1 API
func (*Client) CreateRobotV1 ¶
func (a *Client) CreateRobotV1(params *CreateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateRobotV1Created, error)
CreateRobotV1 creates a robot account
Create a robot account
func (*Client) DeleteRobotV1 ¶
func (a *Client) DeleteRobotV1(params *DeleteRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteRobotV1OK, error)
DeleteRobotV1 deletes a robot account
This endpoint deletes specific robot account information by robot ID.
func (*Client) GetRobotByIDV1 ¶
func (a *Client) GetRobotByIDV1(params *GetRobotByIDV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetRobotByIDV1OK, error)
GetRobotByIDV1 gets a robot account
This endpoint returns specific robot account information by robot ID.
func (*Client) ListRobotV1 ¶
func (a *Client) ListRobotV1(params *ListRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListRobotV1OK, error)
ListRobotV1 gets all robot accounts of specified project
Get all robot accounts of specified project
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateRobotV1 ¶
func (a *Client) UpdateRobotV1(params *UpdateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdateRobotV1OK, error)
UpdateRobotV1 updates status of robot account
Used to disable/enable a specified robot account.
type ClientService ¶
type ClientService interface { CreateRobotV1(params *CreateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateRobotV1Created, error) DeleteRobotV1(params *DeleteRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteRobotV1OK, error) GetRobotByIDV1(params *GetRobotByIDV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetRobotByIDV1OK, error) ListRobotV1(params *ListRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListRobotV1OK, error) UpdateRobotV1(params *UpdateRobotV1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdateRobotV1OK, 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 robotv1 API client.
type CreateRobotV1BadRequest ¶
type CreateRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateRobotV1BadRequest handles this case with default header values.
Bad request
func NewCreateRobotV1BadRequest ¶
func NewCreateRobotV1BadRequest() *CreateRobotV1BadRequest
NewCreateRobotV1BadRequest creates a CreateRobotV1BadRequest with default headers values
func (*CreateRobotV1BadRequest) Error ¶
func (o *CreateRobotV1BadRequest) Error() string
func (*CreateRobotV1BadRequest) GetPayload ¶
func (o *CreateRobotV1BadRequest) GetPayload() *model.Errors
type CreateRobotV1Created ¶
type CreateRobotV1Created struct { /*The location of the resource */ Location string /*The ID of the corresponding request for the response */ XRequestID string Payload *model.RobotCreated }
CreateRobotV1Created handles this case with default header values.
Created
func NewCreateRobotV1Created ¶
func NewCreateRobotV1Created() *CreateRobotV1Created
NewCreateRobotV1Created creates a CreateRobotV1Created with default headers values
func (*CreateRobotV1Created) Error ¶
func (o *CreateRobotV1Created) Error() string
func (*CreateRobotV1Created) GetPayload ¶
func (o *CreateRobotV1Created) GetPayload() *model.RobotCreated
type CreateRobotV1Forbidden ¶
type CreateRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateRobotV1Forbidden handles this case with default header values.
Forbidden
func NewCreateRobotV1Forbidden ¶
func NewCreateRobotV1Forbidden() *CreateRobotV1Forbidden
NewCreateRobotV1Forbidden creates a CreateRobotV1Forbidden with default headers values
func (*CreateRobotV1Forbidden) Error ¶
func (o *CreateRobotV1Forbidden) Error() string
func (*CreateRobotV1Forbidden) GetPayload ¶
func (o *CreateRobotV1Forbidden) GetPayload() *model.Errors
type CreateRobotV1InternalServerError ¶
type CreateRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateRobotV1InternalServerError handles this case with default header values.
Internal server error
func NewCreateRobotV1InternalServerError ¶
func NewCreateRobotV1InternalServerError() *CreateRobotV1InternalServerError
NewCreateRobotV1InternalServerError creates a CreateRobotV1InternalServerError with default headers values
func (*CreateRobotV1InternalServerError) Error ¶
func (o *CreateRobotV1InternalServerError) Error() string
func (*CreateRobotV1InternalServerError) GetPayload ¶
func (o *CreateRobotV1InternalServerError) GetPayload() *model.Errors
type CreateRobotV1NotFound ¶
type CreateRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateRobotV1NotFound handles this case with default header values.
Not found
func NewCreateRobotV1NotFound ¶
func NewCreateRobotV1NotFound() *CreateRobotV1NotFound
NewCreateRobotV1NotFound creates a CreateRobotV1NotFound with default headers values
func (*CreateRobotV1NotFound) Error ¶
func (o *CreateRobotV1NotFound) Error() string
func (*CreateRobotV1NotFound) GetPayload ¶
func (o *CreateRobotV1NotFound) GetPayload() *model.Errors
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 /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*Robot The JSON object of a robot account. */ Robot *model.RobotCreateV1 Context context.Context HTTPClient *http.Client // 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 values initialized.
func NewCreateRobotV1ParamsWithContext ¶
func NewCreateRobotV1ParamsWithContext(ctx context.Context) *CreateRobotV1Params
NewCreateRobotV1ParamsWithContext creates a new CreateRobotV1Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *model.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 ¶
func (o *CreateRobotV1Params) WithContext(ctx context.Context) *CreateRobotV1Params
WithContext adds the context to the create robot v1 params
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 ¶
func (o *CreateRobotV1Params) WithRobot(robot *model.RobotCreateV1) *CreateRobotV1Params
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 { string }XRequestID
CreateRobotV1Unauthorized handles this case with default header values.
Unauthorized
func NewCreateRobotV1Unauthorized ¶
func NewCreateRobotV1Unauthorized() *CreateRobotV1Unauthorized
NewCreateRobotV1Unauthorized creates a CreateRobotV1Unauthorized with default headers values
func (*CreateRobotV1Unauthorized) Error ¶
func (o *CreateRobotV1Unauthorized) Error() string
func (*CreateRobotV1Unauthorized) GetPayload ¶
func (o *CreateRobotV1Unauthorized) GetPayload() *model.Errors
type DeleteRobotV1BadRequest ¶
type DeleteRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteRobotV1BadRequest handles this case with default header values.
Bad request
func NewDeleteRobotV1BadRequest ¶
func NewDeleteRobotV1BadRequest() *DeleteRobotV1BadRequest
NewDeleteRobotV1BadRequest creates a DeleteRobotV1BadRequest with default headers values
func (*DeleteRobotV1BadRequest) Error ¶
func (o *DeleteRobotV1BadRequest) Error() string
func (*DeleteRobotV1BadRequest) GetPayload ¶
func (o *DeleteRobotV1BadRequest) GetPayload() *model.Errors
type DeleteRobotV1Forbidden ¶
type DeleteRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteRobotV1Forbidden handles this case with default header values.
Forbidden
func NewDeleteRobotV1Forbidden ¶
func NewDeleteRobotV1Forbidden() *DeleteRobotV1Forbidden
NewDeleteRobotV1Forbidden creates a DeleteRobotV1Forbidden with default headers values
func (*DeleteRobotV1Forbidden) Error ¶
func (o *DeleteRobotV1Forbidden) Error() string
func (*DeleteRobotV1Forbidden) GetPayload ¶
func (o *DeleteRobotV1Forbidden) GetPayload() *model.Errors
type DeleteRobotV1InternalServerError ¶
type DeleteRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteRobotV1InternalServerError handles this case with default header values.
Internal server error
func NewDeleteRobotV1InternalServerError ¶
func NewDeleteRobotV1InternalServerError() *DeleteRobotV1InternalServerError
NewDeleteRobotV1InternalServerError creates a DeleteRobotV1InternalServerError with default headers values
func (*DeleteRobotV1InternalServerError) Error ¶
func (o *DeleteRobotV1InternalServerError) Error() string
func (*DeleteRobotV1InternalServerError) GetPayload ¶
func (o *DeleteRobotV1InternalServerError) GetPayload() *model.Errors
type DeleteRobotV1NotFound ¶
type DeleteRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteRobotV1NotFound handles this case with default header values.
Not found
func NewDeleteRobotV1NotFound ¶
func NewDeleteRobotV1NotFound() *DeleteRobotV1NotFound
NewDeleteRobotV1NotFound creates a DeleteRobotV1NotFound with default headers values
func (*DeleteRobotV1NotFound) Error ¶
func (o *DeleteRobotV1NotFound) Error() string
func (*DeleteRobotV1NotFound) GetPayload ¶
func (o *DeleteRobotV1NotFound) GetPayload() *model.Errors
type DeleteRobotV1OK ¶
type DeleteRobotV1OK struct { /*The ID of the corresponding request for the response */ XRequestID string }
DeleteRobotV1OK handles this case with default header values.
Success
func NewDeleteRobotV1OK ¶
func NewDeleteRobotV1OK() *DeleteRobotV1OK
NewDeleteRobotV1OK creates a DeleteRobotV1OK with default headers values
func (*DeleteRobotV1OK) Error ¶
func (o *DeleteRobotV1OK) Error() 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 /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*RobotID Robot ID */ RobotID int64 Context context.Context HTTPClient *http.Client // 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 values initialized.
func NewDeleteRobotV1ParamsWithContext ¶
func NewDeleteRobotV1ParamsWithContext(ctx context.Context) *DeleteRobotV1Params
NewDeleteRobotV1ParamsWithContext creates a new DeleteRobotV1Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *DeleteRobotV1Params) WithContext(ctx context.Context) *DeleteRobotV1Params
WithContext adds the context to the delete robot v1 params
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 { string }XRequestID
DeleteRobotV1Unauthorized handles this case with default header values.
Unauthorized
func NewDeleteRobotV1Unauthorized ¶
func NewDeleteRobotV1Unauthorized() *DeleteRobotV1Unauthorized
NewDeleteRobotV1Unauthorized creates a DeleteRobotV1Unauthorized with default headers values
func (*DeleteRobotV1Unauthorized) Error ¶
func (o *DeleteRobotV1Unauthorized) Error() string
func (*DeleteRobotV1Unauthorized) GetPayload ¶
func (o *DeleteRobotV1Unauthorized) GetPayload() *model.Errors
type GetRobotByIDV1Forbidden ¶
type GetRobotByIDV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetRobotByIDV1Forbidden handles this case with default header values.
Forbidden
func NewGetRobotByIDV1Forbidden ¶
func NewGetRobotByIDV1Forbidden() *GetRobotByIDV1Forbidden
NewGetRobotByIDV1Forbidden creates a GetRobotByIDV1Forbidden with default headers values
func (*GetRobotByIDV1Forbidden) Error ¶
func (o *GetRobotByIDV1Forbidden) Error() string
func (*GetRobotByIDV1Forbidden) GetPayload ¶
func (o *GetRobotByIDV1Forbidden) GetPayload() *model.Errors
type GetRobotByIDV1InternalServerError ¶
type GetRobotByIDV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetRobotByIDV1InternalServerError handles this case with default header values.
Internal server error
func NewGetRobotByIDV1InternalServerError ¶
func NewGetRobotByIDV1InternalServerError() *GetRobotByIDV1InternalServerError
NewGetRobotByIDV1InternalServerError creates a GetRobotByIDV1InternalServerError with default headers values
func (*GetRobotByIDV1InternalServerError) Error ¶
func (o *GetRobotByIDV1InternalServerError) Error() string
func (*GetRobotByIDV1InternalServerError) GetPayload ¶
func (o *GetRobotByIDV1InternalServerError) GetPayload() *model.Errors
type GetRobotByIDV1NotFound ¶
type GetRobotByIDV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetRobotByIDV1NotFound handles this case with default header values.
Not found
func NewGetRobotByIDV1NotFound ¶
func NewGetRobotByIDV1NotFound() *GetRobotByIDV1NotFound
NewGetRobotByIDV1NotFound creates a GetRobotByIDV1NotFound with default headers values
func (*GetRobotByIDV1NotFound) Error ¶
func (o *GetRobotByIDV1NotFound) Error() string
func (*GetRobotByIDV1NotFound) GetPayload ¶
func (o *GetRobotByIDV1NotFound) GetPayload() *model.Errors
type GetRobotByIDV1OK ¶
GetRobotByIDV1OK handles this case with default header values.
Return matched robot information.
func NewGetRobotByIDV1OK ¶
func NewGetRobotByIDV1OK() *GetRobotByIDV1OK
NewGetRobotByIDV1OK creates a GetRobotByIDV1OK with default headers values
func (*GetRobotByIDV1OK) Error ¶
func (o *GetRobotByIDV1OK) Error() string
func (*GetRobotByIDV1OK) GetPayload ¶
func (o *GetRobotByIDV1OK) GetPayload() *model.Robot
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 /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*RobotID Robot ID */ RobotID int64 Context context.Context HTTPClient *http.Client // 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 values initialized.
func NewGetRobotByIDV1ParamsWithContext ¶
func NewGetRobotByIDV1ParamsWithContext(ctx context.Context) *GetRobotByIDV1Params
NewGetRobotByIDV1ParamsWithContext creates a new GetRobotByIDV1Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *GetRobotByIDV1Params) WithContext(ctx context.Context) *GetRobotByIDV1Params
WithContext adds the context to the get robot by ID v1 params
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 { string }XRequestID
GetRobotByIDV1Unauthorized handles this case with default header values.
Unauthorized
func NewGetRobotByIDV1Unauthorized ¶
func NewGetRobotByIDV1Unauthorized() *GetRobotByIDV1Unauthorized
NewGetRobotByIDV1Unauthorized creates a GetRobotByIDV1Unauthorized with default headers values
func (*GetRobotByIDV1Unauthorized) Error ¶
func (o *GetRobotByIDV1Unauthorized) Error() string
func (*GetRobotByIDV1Unauthorized) GetPayload ¶
func (o *GetRobotByIDV1Unauthorized) GetPayload() *model.Errors
type ListRobotV1BadRequest ¶
type ListRobotV1BadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListRobotV1BadRequest handles this case with default header values.
Bad request
func NewListRobotV1BadRequest ¶
func NewListRobotV1BadRequest() *ListRobotV1BadRequest
NewListRobotV1BadRequest creates a ListRobotV1BadRequest with default headers values
func (*ListRobotV1BadRequest) Error ¶
func (o *ListRobotV1BadRequest) Error() string
func (*ListRobotV1BadRequest) GetPayload ¶
func (o *ListRobotV1BadRequest) GetPayload() *model.Errors
type ListRobotV1InternalServerError ¶
type ListRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListRobotV1InternalServerError handles this case with default header values.
Internal server error
func NewListRobotV1InternalServerError ¶
func NewListRobotV1InternalServerError() *ListRobotV1InternalServerError
NewListRobotV1InternalServerError creates a ListRobotV1InternalServerError with default headers values
func (*ListRobotV1InternalServerError) Error ¶
func (o *ListRobotV1InternalServerError) Error() string
func (*ListRobotV1InternalServerError) GetPayload ¶
func (o *ListRobotV1InternalServerError) GetPayload() *model.Errors
type ListRobotV1NotFound ¶
type ListRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListRobotV1NotFound handles this case with default header values.
Not found
func NewListRobotV1NotFound ¶
func NewListRobotV1NotFound() *ListRobotV1NotFound
NewListRobotV1NotFound creates a ListRobotV1NotFound with default headers values
func (*ListRobotV1NotFound) Error ¶
func (o *ListRobotV1NotFound) Error() string
func (*ListRobotV1NotFound) GetPayload ¶
func (o *ListRobotV1NotFound) GetPayload() *model.Errors
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 []*model.Robot }
ListRobotV1OK handles this case with default header values.
Success
func NewListRobotV1OK ¶
func NewListRobotV1OK() *ListRobotV1OK
NewListRobotV1OK creates a ListRobotV1OK with default headers values
func (*ListRobotV1OK) Error ¶
func (o *ListRobotV1OK) Error() string
func (*ListRobotV1OK) GetPayload ¶
func (o *ListRobotV1OK) GetPayload() []*model.Robot
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 /*XRequestID An unique ID for the request */ XRequestID *string /*Page The page number */ Page *int64 /*PageSize The size of per page */ PageSize *int64 /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*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 }
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 values initialized.
func NewListRobotV1ParamsWithContext ¶
func NewListRobotV1ParamsWithContext(ctx context.Context) *ListRobotV1Params
NewListRobotV1ParamsWithContext creates a new ListRobotV1Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ¶
func (o *ListRobotV1Params) WithQ(q *string) *ListRobotV1Params
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 *model.Errors }
UpdateRobotV1BadRequest handles this case with default header values.
Bad request
func NewUpdateRobotV1BadRequest ¶
func NewUpdateRobotV1BadRequest() *UpdateRobotV1BadRequest
NewUpdateRobotV1BadRequest creates a UpdateRobotV1BadRequest with default headers values
func (*UpdateRobotV1BadRequest) Error ¶
func (o *UpdateRobotV1BadRequest) Error() string
func (*UpdateRobotV1BadRequest) GetPayload ¶
func (o *UpdateRobotV1BadRequest) GetPayload() *model.Errors
type UpdateRobotV1Conflict ¶
type UpdateRobotV1Conflict struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateRobotV1Conflict handles this case with default header values.
Conflict
func NewUpdateRobotV1Conflict ¶
func NewUpdateRobotV1Conflict() *UpdateRobotV1Conflict
NewUpdateRobotV1Conflict creates a UpdateRobotV1Conflict with default headers values
func (*UpdateRobotV1Conflict) Error ¶
func (o *UpdateRobotV1Conflict) Error() string
func (*UpdateRobotV1Conflict) GetPayload ¶
func (o *UpdateRobotV1Conflict) GetPayload() *model.Errors
type UpdateRobotV1Forbidden ¶
type UpdateRobotV1Forbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateRobotV1Forbidden handles this case with default header values.
Forbidden
func NewUpdateRobotV1Forbidden ¶
func NewUpdateRobotV1Forbidden() *UpdateRobotV1Forbidden
NewUpdateRobotV1Forbidden creates a UpdateRobotV1Forbidden with default headers values
func (*UpdateRobotV1Forbidden) Error ¶
func (o *UpdateRobotV1Forbidden) Error() string
func (*UpdateRobotV1Forbidden) GetPayload ¶
func (o *UpdateRobotV1Forbidden) GetPayload() *model.Errors
type UpdateRobotV1InternalServerError ¶
type UpdateRobotV1InternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateRobotV1InternalServerError handles this case with default header values.
Internal server error
func NewUpdateRobotV1InternalServerError ¶
func NewUpdateRobotV1InternalServerError() *UpdateRobotV1InternalServerError
NewUpdateRobotV1InternalServerError creates a UpdateRobotV1InternalServerError with default headers values
func (*UpdateRobotV1InternalServerError) Error ¶
func (o *UpdateRobotV1InternalServerError) Error() string
func (*UpdateRobotV1InternalServerError) GetPayload ¶
func (o *UpdateRobotV1InternalServerError) GetPayload() *model.Errors
type UpdateRobotV1NotFound ¶
type UpdateRobotV1NotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateRobotV1NotFound handles this case with default header values.
Not found
func NewUpdateRobotV1NotFound ¶
func NewUpdateRobotV1NotFound() *UpdateRobotV1NotFound
NewUpdateRobotV1NotFound creates a UpdateRobotV1NotFound with default headers values
func (*UpdateRobotV1NotFound) Error ¶
func (o *UpdateRobotV1NotFound) Error() string
func (*UpdateRobotV1NotFound) GetPayload ¶
func (o *UpdateRobotV1NotFound) GetPayload() *model.Errors
type UpdateRobotV1OK ¶
type UpdateRobotV1OK struct { /*The ID of the corresponding request for the response */ XRequestID string }
UpdateRobotV1OK handles this case with default header values.
Success
func NewUpdateRobotV1OK ¶
func NewUpdateRobotV1OK() *UpdateRobotV1OK
NewUpdateRobotV1OK creates a UpdateRobotV1OK with default headers values
func (*UpdateRobotV1OK) Error ¶
func (o *UpdateRobotV1OK) Error() 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 /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID 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 }
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 values initialized.
func NewUpdateRobotV1ParamsWithContext ¶
func NewUpdateRobotV1ParamsWithContext(ctx context.Context) *UpdateRobotV1Params
NewUpdateRobotV1ParamsWithContext creates a new UpdateRobotV1Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *model.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 ¶
func (o *UpdateRobotV1Params) WithContext(ctx context.Context) *UpdateRobotV1Params
WithContext adds the context to the update robot v1 params
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 *model.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 { string }XRequestID
UpdateRobotV1Unauthorized handles this case with default header values.
Unauthorized
func NewUpdateRobotV1Unauthorized ¶
func NewUpdateRobotV1Unauthorized() *UpdateRobotV1Unauthorized
NewUpdateRobotV1Unauthorized creates a UpdateRobotV1Unauthorized with default headers values
func (*UpdateRobotV1Unauthorized) Error ¶
func (o *UpdateRobotV1Unauthorized) Error() string
func (*UpdateRobotV1Unauthorized) GetPayload ¶
func (o *UpdateRobotV1Unauthorized) GetPayload() *model.Errors
Source Files ¶
- create_robot_v1_parameters.go
- create_robot_v1_responses.go
- delete_robot_v1_parameters.go
- delete_robot_v1_responses.go
- get_robot_by_id_v1_parameters.go
- get_robot_by_id_v1_responses.go
- list_robot_v1_parameters.go
- list_robot_v1_responses.go
- robotv1_client.go
- update_robot_v1_parameters.go
- update_robot_v1_responses.go