items

package
v0.0.0-...-fda5bac Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for items API

func New

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

New creates a new items API client.

func (*Client) CreateItem

func (a *Client) CreateItem(params *CreateItemParams) (*CreateItemCreated, error)

CreateItem creates an item

func (*Client) DeleteItem

func (a *Client) DeleteItem(params *DeleteItemParams) (*DeleteItemOK, error)

DeleteItem deletes an item

func (*Client) DeleteItems

func (a *Client) DeleteItems(params *DeleteItemsParams) (*DeleteItemsOK, error)

DeleteItems deletes all items

func (*Client) GetItem

func (a *Client) GetItem(params *GetItemParams) (*GetItemOK, error)

GetItem gets specific item

func (*Client) GetItems

func (a *Client) GetItems(params *GetItemsParams) (*GetItemsOK, error)

GetItems gets all items

func (*Client) GetItemsByOwner

func (a *Client) GetItemsByOwner(params *GetItemsByOwnerParams) (*GetItemsByOwnerOK, error)

GetItemsByOwner gets all items by owner

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateItem

func (a *Client) UpdateItem(params *UpdateItemParams) (*UpdateItemCreated, error)

UpdateItem updates an item

type CreateItemBadRequest

type CreateItemBadRequest struct {
}

CreateItemBadRequest handles this case with default header values.

Invalid input

func NewCreateItemBadRequest

func NewCreateItemBadRequest() *CreateItemBadRequest

NewCreateItemBadRequest creates a CreateItemBadRequest with default headers values

func (*CreateItemBadRequest) Error

func (o *CreateItemBadRequest) Error() string

type CreateItemCreated

type CreateItemCreated struct {
	Payload *models.Item
}

CreateItemCreated handles this case with default header values.

Category Created

func NewCreateItemCreated

func NewCreateItemCreated() *CreateItemCreated

NewCreateItemCreated creates a CreateItemCreated with default headers values

func (*CreateItemCreated) Error

func (o *CreateItemCreated) Error() string

type CreateItemParams

type CreateItemParams struct {

	/*Body*/
	Body *models.Item

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

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

func NewCreateItemParams

func NewCreateItemParams() *CreateItemParams

NewCreateItemParams creates a new CreateItemParams object with the default values initialized.

func NewCreateItemParamsWithContext

func NewCreateItemParamsWithContext(ctx context.Context) *CreateItemParams

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

func NewCreateItemParamsWithHTTPClient

func NewCreateItemParamsWithHTTPClient(client *http.Client) *CreateItemParams

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

func NewCreateItemParamsWithTimeout

func NewCreateItemParamsWithTimeout(timeout time.Duration) *CreateItemParams

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

func (*CreateItemParams) SetBody

func (o *CreateItemParams) SetBody(body *models.Item)

SetBody adds the body to the create item params

func (*CreateItemParams) SetContext

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

SetContext adds the context to the create item params

func (*CreateItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create item params

func (*CreateItemParams) SetTimeout

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

SetTimeout adds the timeout to the create item params

func (*CreateItemParams) WithBody

func (o *CreateItemParams) WithBody(body *models.Item) *CreateItemParams

WithBody adds the body to the create item params

func (*CreateItemParams) WithContext

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

WithContext adds the context to the create item params

func (*CreateItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create item params

func (*CreateItemParams) WithTimeout

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

WithTimeout adds the timeout to the create item params

func (*CreateItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateItemReader

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

CreateItemReader is a Reader for the CreateItem structure.

func (*CreateItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteItemNotFound

type DeleteItemNotFound struct {
}

DeleteItemNotFound handles this case with default header values.

No items found

func NewDeleteItemNotFound

func NewDeleteItemNotFound() *DeleteItemNotFound

NewDeleteItemNotFound creates a DeleteItemNotFound with default headers values

func (*DeleteItemNotFound) Error

func (o *DeleteItemNotFound) Error() string

type DeleteItemOK

type DeleteItemOK struct {
}

DeleteItemOK handles this case with default header values.

Status Ok

func NewDeleteItemOK

func NewDeleteItemOK() *DeleteItemOK

NewDeleteItemOK creates a DeleteItemOK with default headers values

func (*DeleteItemOK) Error

func (o *DeleteItemOK) Error() string

type DeleteItemParams

type DeleteItemParams struct {

	/*ID
	  Item ID

	*/
	ID int64

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

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

func NewDeleteItemParams

func NewDeleteItemParams() *DeleteItemParams

NewDeleteItemParams creates a new DeleteItemParams object with the default values initialized.

func NewDeleteItemParamsWithContext

func NewDeleteItemParamsWithContext(ctx context.Context) *DeleteItemParams

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

func NewDeleteItemParamsWithHTTPClient

func NewDeleteItemParamsWithHTTPClient(client *http.Client) *DeleteItemParams

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

func NewDeleteItemParamsWithTimeout

func NewDeleteItemParamsWithTimeout(timeout time.Duration) *DeleteItemParams

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

func (*DeleteItemParams) SetContext

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

SetContext adds the context to the delete item params

func (*DeleteItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete item params

func (*DeleteItemParams) SetID

func (o *DeleteItemParams) SetID(id int64)

SetID adds the id to the delete item params

func (*DeleteItemParams) SetTimeout

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

SetTimeout adds the timeout to the delete item params

func (*DeleteItemParams) WithContext

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

WithContext adds the context to the delete item params

func (*DeleteItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete item params

func (*DeleteItemParams) WithID

func (o *DeleteItemParams) WithID(id int64) *DeleteItemParams

WithID adds the id to the delete item params

func (*DeleteItemParams) WithTimeout

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

WithTimeout adds the timeout to the delete item params

func (*DeleteItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteItemReader

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

DeleteItemReader is a Reader for the DeleteItem structure.

func (*DeleteItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteItemsNotFound

type DeleteItemsNotFound struct {
}

DeleteItemsNotFound handles this case with default header values.

No items found

func NewDeleteItemsNotFound

func NewDeleteItemsNotFound() *DeleteItemsNotFound

NewDeleteItemsNotFound creates a DeleteItemsNotFound with default headers values

func (*DeleteItemsNotFound) Error

func (o *DeleteItemsNotFound) Error() string

type DeleteItemsOK

type DeleteItemsOK struct {
}

DeleteItemsOK handles this case with default header values.

Status Ok

func NewDeleteItemsOK

func NewDeleteItemsOK() *DeleteItemsOK

NewDeleteItemsOK creates a DeleteItemsOK with default headers values

func (*DeleteItemsOK) Error

func (o *DeleteItemsOK) Error() string

type DeleteItemsParams

type DeleteItemsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewDeleteItemsParams

func NewDeleteItemsParams() *DeleteItemsParams

NewDeleteItemsParams creates a new DeleteItemsParams object with the default values initialized.

func NewDeleteItemsParamsWithContext

func NewDeleteItemsParamsWithContext(ctx context.Context) *DeleteItemsParams

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

func NewDeleteItemsParamsWithHTTPClient

func NewDeleteItemsParamsWithHTTPClient(client *http.Client) *DeleteItemsParams

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

func NewDeleteItemsParamsWithTimeout

func NewDeleteItemsParamsWithTimeout(timeout time.Duration) *DeleteItemsParams

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

func (*DeleteItemsParams) SetContext

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

SetContext adds the context to the delete items params

func (*DeleteItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete items params

func (*DeleteItemsParams) SetTimeout

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

SetTimeout adds the timeout to the delete items params

func (*DeleteItemsParams) WithContext

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

WithContext adds the context to the delete items params

func (*DeleteItemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete items params

func (*DeleteItemsParams) WithTimeout

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

WithTimeout adds the timeout to the delete items params

func (*DeleteItemsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteItemsReader

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

DeleteItemsReader is a Reader for the DeleteItems structure.

func (*DeleteItemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetItemNotFound

type GetItemNotFound struct {
}

GetItemNotFound handles this case with default header values.

No items found

func NewGetItemNotFound

func NewGetItemNotFound() *GetItemNotFound

NewGetItemNotFound creates a GetItemNotFound with default headers values

func (*GetItemNotFound) Error

func (o *GetItemNotFound) Error() string

type GetItemOK

type GetItemOK struct {
	Payload models.Item
}

GetItemOK handles this case with default header values.

Status Ok

func NewGetItemOK

func NewGetItemOK() *GetItemOK

NewGetItemOK creates a GetItemOK with default headers values

func (*GetItemOK) Error

func (o *GetItemOK) Error() string

type GetItemParams

type GetItemParams struct {

	/*ID
	  Item ID

	*/
	ID int64

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

GetItemParams contains all the parameters to send to the API endpoint for the get item operation typically these are written to a http.Request

func NewGetItemParams

func NewGetItemParams() *GetItemParams

NewGetItemParams creates a new GetItemParams object with the default values initialized.

func NewGetItemParamsWithContext

func NewGetItemParamsWithContext(ctx context.Context) *GetItemParams

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

func NewGetItemParamsWithHTTPClient

func NewGetItemParamsWithHTTPClient(client *http.Client) *GetItemParams

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

func NewGetItemParamsWithTimeout

func NewGetItemParamsWithTimeout(timeout time.Duration) *GetItemParams

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

func (*GetItemParams) SetContext

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

SetContext adds the context to the get item params

func (*GetItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get item params

func (*GetItemParams) SetID

func (o *GetItemParams) SetID(id int64)

SetID adds the id to the get item params

func (*GetItemParams) SetTimeout

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

SetTimeout adds the timeout to the get item params

func (*GetItemParams) WithContext

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

WithContext adds the context to the get item params

func (*GetItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get item params

func (*GetItemParams) WithID

func (o *GetItemParams) WithID(id int64) *GetItemParams

WithID adds the id to the get item params

func (*GetItemParams) WithTimeout

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

WithTimeout adds the timeout to the get item params

func (*GetItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetItemReader

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

GetItemReader is a Reader for the GetItem structure.

func (*GetItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetItemsByOwnerBadRequest

type GetItemsByOwnerBadRequest struct {
}

GetItemsByOwnerBadRequest handles this case with default header values.

Invalid input

func NewGetItemsByOwnerBadRequest

func NewGetItemsByOwnerBadRequest() *GetItemsByOwnerBadRequest

NewGetItemsByOwnerBadRequest creates a GetItemsByOwnerBadRequest with default headers values

func (*GetItemsByOwnerBadRequest) Error

func (o *GetItemsByOwnerBadRequest) Error() string

type GetItemsByOwnerNotFound

type GetItemsByOwnerNotFound struct {
}

GetItemsByOwnerNotFound handles this case with default header values.

No items found

func NewGetItemsByOwnerNotFound

func NewGetItemsByOwnerNotFound() *GetItemsByOwnerNotFound

NewGetItemsByOwnerNotFound creates a GetItemsByOwnerNotFound with default headers values

func (*GetItemsByOwnerNotFound) Error

func (o *GetItemsByOwnerNotFound) Error() string

type GetItemsByOwnerOK

type GetItemsByOwnerOK struct {
	Payload models.Items
}

GetItemsByOwnerOK handles this case with default header values.

Status Ok

func NewGetItemsByOwnerOK

func NewGetItemsByOwnerOK() *GetItemsByOwnerOK

NewGetItemsByOwnerOK creates a GetItemsByOwnerOK with default headers values

func (*GetItemsByOwnerOK) Error

func (o *GetItemsByOwnerOK) Error() string

type GetItemsByOwnerParams

type GetItemsByOwnerParams struct {

	/*ID
	  Owner's ID

	*/
	ID int64

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

GetItemsByOwnerParams contains all the parameters to send to the API endpoint for the get items by owner operation typically these are written to a http.Request

func NewGetItemsByOwnerParams

func NewGetItemsByOwnerParams() *GetItemsByOwnerParams

NewGetItemsByOwnerParams creates a new GetItemsByOwnerParams object with the default values initialized.

func NewGetItemsByOwnerParamsWithContext

func NewGetItemsByOwnerParamsWithContext(ctx context.Context) *GetItemsByOwnerParams

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

func NewGetItemsByOwnerParamsWithHTTPClient

func NewGetItemsByOwnerParamsWithHTTPClient(client *http.Client) *GetItemsByOwnerParams

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

func NewGetItemsByOwnerParamsWithTimeout

func NewGetItemsByOwnerParamsWithTimeout(timeout time.Duration) *GetItemsByOwnerParams

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

func (*GetItemsByOwnerParams) SetContext

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

SetContext adds the context to the get items by owner params

func (*GetItemsByOwnerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get items by owner params

func (*GetItemsByOwnerParams) SetID

func (o *GetItemsByOwnerParams) SetID(id int64)

SetID adds the id to the get items by owner params

func (*GetItemsByOwnerParams) SetTimeout

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

SetTimeout adds the timeout to the get items by owner params

func (*GetItemsByOwnerParams) WithContext

WithContext adds the context to the get items by owner params

func (*GetItemsByOwnerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get items by owner params

func (*GetItemsByOwnerParams) WithID

WithID adds the id to the get items by owner params

func (*GetItemsByOwnerParams) WithTimeout

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

WithTimeout adds the timeout to the get items by owner params

func (*GetItemsByOwnerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetItemsByOwnerReader

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

GetItemsByOwnerReader is a Reader for the GetItemsByOwner structure.

func (*GetItemsByOwnerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetItemsNotFound

type GetItemsNotFound struct {
}

GetItemsNotFound handles this case with default header values.

No items found

func NewGetItemsNotFound

func NewGetItemsNotFound() *GetItemsNotFound

NewGetItemsNotFound creates a GetItemsNotFound with default headers values

func (*GetItemsNotFound) Error

func (o *GetItemsNotFound) Error() string

type GetItemsOK

type GetItemsOK struct {
	Payload models.Items
}

GetItemsOK handles this case with default header values.

Status Ok

func NewGetItemsOK

func NewGetItemsOK() *GetItemsOK

NewGetItemsOK creates a GetItemsOK with default headers values

func (*GetItemsOK) Error

func (o *GetItemsOK) Error() string

type GetItemsParams

type GetItemsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetItemsParams contains all the parameters to send to the API endpoint for the get items operation typically these are written to a http.Request

func NewGetItemsParams

func NewGetItemsParams() *GetItemsParams

NewGetItemsParams creates a new GetItemsParams object with the default values initialized.

func NewGetItemsParamsWithContext

func NewGetItemsParamsWithContext(ctx context.Context) *GetItemsParams

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

func NewGetItemsParamsWithHTTPClient

func NewGetItemsParamsWithHTTPClient(client *http.Client) *GetItemsParams

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

func NewGetItemsParamsWithTimeout

func NewGetItemsParamsWithTimeout(timeout time.Duration) *GetItemsParams

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

func (*GetItemsParams) SetContext

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

SetContext adds the context to the get items params

func (*GetItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get items params

func (*GetItemsParams) SetTimeout

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

SetTimeout adds the timeout to the get items params

func (*GetItemsParams) WithContext

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

WithContext adds the context to the get items params

func (*GetItemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get items params

func (*GetItemsParams) WithTimeout

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

WithTimeout adds the timeout to the get items params

func (*GetItemsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetItemsReader

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

GetItemsReader is a Reader for the GetItems structure.

func (*GetItemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateItemBadRequest

type UpdateItemBadRequest struct {
}

UpdateItemBadRequest handles this case with default header values.

Invalid input

func NewUpdateItemBadRequest

func NewUpdateItemBadRequest() *UpdateItemBadRequest

NewUpdateItemBadRequest creates a UpdateItemBadRequest with default headers values

func (*UpdateItemBadRequest) Error

func (o *UpdateItemBadRequest) Error() string

type UpdateItemCreated

type UpdateItemCreated struct {
	Payload *models.Item
}

UpdateItemCreated handles this case with default header values.

Category Created

func NewUpdateItemCreated

func NewUpdateItemCreated() *UpdateItemCreated

NewUpdateItemCreated creates a UpdateItemCreated with default headers values

func (*UpdateItemCreated) Error

func (o *UpdateItemCreated) Error() string

type UpdateItemParams

type UpdateItemParams struct {

	/*Body*/
	Body *models.Item
	/*ID
	  Item ID

	*/
	ID int64

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

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

func NewUpdateItemParams

func NewUpdateItemParams() *UpdateItemParams

NewUpdateItemParams creates a new UpdateItemParams object with the default values initialized.

func NewUpdateItemParamsWithContext

func NewUpdateItemParamsWithContext(ctx context.Context) *UpdateItemParams

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

func NewUpdateItemParamsWithHTTPClient

func NewUpdateItemParamsWithHTTPClient(client *http.Client) *UpdateItemParams

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

func NewUpdateItemParamsWithTimeout

func NewUpdateItemParamsWithTimeout(timeout time.Duration) *UpdateItemParams

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

func (*UpdateItemParams) SetBody

func (o *UpdateItemParams) SetBody(body *models.Item)

SetBody adds the body to the update item params

func (*UpdateItemParams) SetContext

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

SetContext adds the context to the update item params

func (*UpdateItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update item params

func (*UpdateItemParams) SetID

func (o *UpdateItemParams) SetID(id int64)

SetID adds the id to the update item params

func (*UpdateItemParams) SetTimeout

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

SetTimeout adds the timeout to the update item params

func (*UpdateItemParams) WithBody

func (o *UpdateItemParams) WithBody(body *models.Item) *UpdateItemParams

WithBody adds the body to the update item params

func (*UpdateItemParams) WithContext

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

WithContext adds the context to the update item params

func (*UpdateItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update item params

func (*UpdateItemParams) WithID

func (o *UpdateItemParams) WithID(id int64) *UpdateItemParams

WithID adds the id to the update item params

func (*UpdateItemParams) WithTimeout

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

WithTimeout adds the timeout to the update item params

func (*UpdateItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateItemReader

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

UpdateItemReader is a Reader for the UpdateItem structure.

func (*UpdateItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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