inventory

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.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 Client

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

Client for inventory API

func (*Client) InventoryDelete

func (a *Client) InventoryDelete(params *InventoryDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

InventoryDelete bs e t a delete inventory

func (*Client) InventoryGet

func (a *Client) InventoryGet(params *InventoryGetParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryGetOK, error)

InventoryGet gets inventory by ID

func (*Client) InventoryPost

func (a *Client) InventoryPost(params *InventoryPostParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryPostCreated, error)

InventoryPost bs e t a create new inventory

func (*Client) InventoryPut

func (a *Client) InventoryPut(params *InventoryPutParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryPutOK, error)

InventoryPut bs e t a update inventory

func (*Client) InventorySearch

func (a *Client) InventorySearch(params *InventorySearchParams, authInfo runtime.ClientAuthInfoWriter) (*InventorySearchOK, error)

InventorySearch finds inventory corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	InventoryDelete(params *InventoryDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	InventoryGet(params *InventoryGetParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryGetOK, error)

	InventoryPost(params *InventoryPostParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryPostCreated, error)

	InventoryPut(params *InventoryPutParams, authInfo runtime.ClientAuthInfoWriter) (*InventoryPutOK, error)

	InventorySearch(params *InventorySearchParams, authInfo runtime.ClientAuthInfoWriter) (*InventorySearchOK, 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 inventory API client.

type InventoryDeleteDefault

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

InventoryDeleteDefault handles this case with default header values.

successful operation

func NewInventoryDeleteDefault

func NewInventoryDeleteDefault(code int) *InventoryDeleteDefault

NewInventoryDeleteDefault creates a InventoryDeleteDefault with default headers values

func (*InventoryDeleteDefault) Code

func (o *InventoryDeleteDefault) Code() int

Code gets the status code for the inventory delete default response

func (*InventoryDeleteDefault) Error

func (o *InventoryDeleteDefault) Error() string

type InventoryDeleteParams

type InventoryDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewInventoryDeleteParams

func NewInventoryDeleteParams() *InventoryDeleteParams

NewInventoryDeleteParams creates a new InventoryDeleteParams object with the default values initialized.

func NewInventoryDeleteParamsWithContext

func NewInventoryDeleteParamsWithContext(ctx context.Context) *InventoryDeleteParams

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

func NewInventoryDeleteParamsWithHTTPClient

func NewInventoryDeleteParamsWithHTTPClient(client *http.Client) *InventoryDeleteParams

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

func NewInventoryDeleteParamsWithTimeout

func NewInventoryDeleteParamsWithTimeout(timeout time.Duration) *InventoryDeleteParams

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

func (*InventoryDeleteParams) SetContext

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

SetContext adds the context to the inventory delete params

func (*InventoryDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the inventory delete params

func (*InventoryDeleteParams) SetID

func (o *InventoryDeleteParams) SetID(id int32)

SetID adds the id to the inventory delete params

func (*InventoryDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the inventory delete params

func (*InventoryDeleteParams) WithContext

WithContext adds the context to the inventory delete params

func (*InventoryDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the inventory delete params

func (*InventoryDeleteParams) WithID

WithID adds the id to the inventory delete params

func (*InventoryDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the inventory delete params

func (*InventoryDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InventoryDeleteReader

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

InventoryDeleteReader is a Reader for the InventoryDelete structure.

func (*InventoryDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InventoryGetOK

type InventoryGetOK struct {
	Payload *models.ResponseWrapperInventory
}

InventoryGetOK handles this case with default header values.

successful operation

func NewInventoryGetOK

func NewInventoryGetOK() *InventoryGetOK

NewInventoryGetOK creates a InventoryGetOK with default headers values

func (*InventoryGetOK) Error

func (o *InventoryGetOK) Error() string

func (*InventoryGetOK) GetPayload

type InventoryGetParams

type InventoryGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewInventoryGetParams

func NewInventoryGetParams() *InventoryGetParams

NewInventoryGetParams creates a new InventoryGetParams object with the default values initialized.

func NewInventoryGetParamsWithContext

func NewInventoryGetParamsWithContext(ctx context.Context) *InventoryGetParams

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

func NewInventoryGetParamsWithHTTPClient

func NewInventoryGetParamsWithHTTPClient(client *http.Client) *InventoryGetParams

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

func NewInventoryGetParamsWithTimeout

func NewInventoryGetParamsWithTimeout(timeout time.Duration) *InventoryGetParams

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

func (*InventoryGetParams) SetContext

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

SetContext adds the context to the inventory get params

func (*InventoryGetParams) SetFields

func (o *InventoryGetParams) SetFields(fields *string)

SetFields adds the fields to the inventory get params

func (*InventoryGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the inventory get params

func (*InventoryGetParams) SetID

func (o *InventoryGetParams) SetID(id int32)

SetID adds the id to the inventory get params

func (*InventoryGetParams) SetTimeout

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

SetTimeout adds the timeout to the inventory get params

func (*InventoryGetParams) WithContext

WithContext adds the context to the inventory get params

func (*InventoryGetParams) WithFields

func (o *InventoryGetParams) WithFields(fields *string) *InventoryGetParams

WithFields adds the fields to the inventory get params

func (*InventoryGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the inventory get params

func (*InventoryGetParams) WithID

WithID adds the id to the inventory get params

func (*InventoryGetParams) WithTimeout

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

WithTimeout adds the timeout to the inventory get params

func (*InventoryGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InventoryGetReader

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

InventoryGetReader is a Reader for the InventoryGet structure.

func (*InventoryGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InventoryPostCreated

type InventoryPostCreated struct {
	Payload *models.ResponseWrapperInventory
}

InventoryPostCreated handles this case with default header values.

successfully created

func NewInventoryPostCreated

func NewInventoryPostCreated() *InventoryPostCreated

NewInventoryPostCreated creates a InventoryPostCreated with default headers values

func (*InventoryPostCreated) Error

func (o *InventoryPostCreated) Error() string

func (*InventoryPostCreated) GetPayload

type InventoryPostParams

type InventoryPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.Inventory

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

InventoryPostParams contains all the parameters to send to the API endpoint for the inventory post operation typically these are written to a http.Request

func NewInventoryPostParams

func NewInventoryPostParams() *InventoryPostParams

NewInventoryPostParams creates a new InventoryPostParams object with the default values initialized.

func NewInventoryPostParamsWithContext

func NewInventoryPostParamsWithContext(ctx context.Context) *InventoryPostParams

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

func NewInventoryPostParamsWithHTTPClient

func NewInventoryPostParamsWithHTTPClient(client *http.Client) *InventoryPostParams

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

func NewInventoryPostParamsWithTimeout

func NewInventoryPostParamsWithTimeout(timeout time.Duration) *InventoryPostParams

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

func (*InventoryPostParams) SetBody

func (o *InventoryPostParams) SetBody(body *models.Inventory)

SetBody adds the body to the inventory post params

func (*InventoryPostParams) SetContext

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

SetContext adds the context to the inventory post params

func (*InventoryPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the inventory post params

func (*InventoryPostParams) SetTimeout

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

SetTimeout adds the timeout to the inventory post params

func (*InventoryPostParams) WithBody

WithBody adds the body to the inventory post params

func (*InventoryPostParams) WithContext

WithContext adds the context to the inventory post params

func (*InventoryPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the inventory post params

func (*InventoryPostParams) WithTimeout

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

WithTimeout adds the timeout to the inventory post params

func (*InventoryPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InventoryPostReader

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

InventoryPostReader is a Reader for the InventoryPost structure.

func (*InventoryPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InventoryPutOK

type InventoryPutOK struct {
	Payload *models.ResponseWrapperInventory
}

InventoryPutOK handles this case with default header values.

successful operation

func NewInventoryPutOK

func NewInventoryPutOK() *InventoryPutOK

NewInventoryPutOK creates a InventoryPutOK with default headers values

func (*InventoryPutOK) Error

func (o *InventoryPutOK) Error() string

func (*InventoryPutOK) GetPayload

type InventoryPutParams

type InventoryPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Inventory
	/*ID
	  Element ID

	*/
	ID int32

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

InventoryPutParams contains all the parameters to send to the API endpoint for the inventory put operation typically these are written to a http.Request

func NewInventoryPutParams

func NewInventoryPutParams() *InventoryPutParams

NewInventoryPutParams creates a new InventoryPutParams object with the default values initialized.

func NewInventoryPutParamsWithContext

func NewInventoryPutParamsWithContext(ctx context.Context) *InventoryPutParams

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

func NewInventoryPutParamsWithHTTPClient

func NewInventoryPutParamsWithHTTPClient(client *http.Client) *InventoryPutParams

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

func NewInventoryPutParamsWithTimeout

func NewInventoryPutParamsWithTimeout(timeout time.Duration) *InventoryPutParams

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

func (*InventoryPutParams) SetBody

func (o *InventoryPutParams) SetBody(body *models.Inventory)

SetBody adds the body to the inventory put params

func (*InventoryPutParams) SetContext

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

SetContext adds the context to the inventory put params

func (*InventoryPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the inventory put params

func (*InventoryPutParams) SetID

func (o *InventoryPutParams) SetID(id int32)

SetID adds the id to the inventory put params

func (*InventoryPutParams) SetTimeout

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

SetTimeout adds the timeout to the inventory put params

func (*InventoryPutParams) WithBody

WithBody adds the body to the inventory put params

func (*InventoryPutParams) WithContext

WithContext adds the context to the inventory put params

func (*InventoryPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the inventory put params

func (*InventoryPutParams) WithID

WithID adds the id to the inventory put params

func (*InventoryPutParams) WithTimeout

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

WithTimeout adds the timeout to the inventory put params

func (*InventoryPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InventoryPutReader

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

InventoryPutReader is a Reader for the InventoryPut structure.

func (*InventoryPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InventorySearchOK

type InventorySearchOK struct {
	Payload *models.ListResponseInventory
}

InventorySearchOK handles this case with default header values.

successful operation

func NewInventorySearchOK

func NewInventorySearchOK() *InventorySearchOK

NewInventorySearchOK creates a InventorySearchOK with default headers values

func (*InventorySearchOK) Error

func (o *InventorySearchOK) Error() string

func (*InventorySearchOK) GetPayload

type InventorySearchParams

type InventorySearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*IsInactive
	  Equals

	*/
	IsInactive *bool
	/*IsMainInventory
	  Equals

	*/
	IsMainInventory *bool
	/*Name
	  Containing

	*/
	Name *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

InventorySearchParams contains all the parameters to send to the API endpoint for the inventory search operation typically these are written to a http.Request

func NewInventorySearchParams

func NewInventorySearchParams() *InventorySearchParams

NewInventorySearchParams creates a new InventorySearchParams object with the default values initialized.

func NewInventorySearchParamsWithContext

func NewInventorySearchParamsWithContext(ctx context.Context) *InventorySearchParams

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

func NewInventorySearchParamsWithHTTPClient

func NewInventorySearchParamsWithHTTPClient(client *http.Client) *InventorySearchParams

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

func NewInventorySearchParamsWithTimeout

func NewInventorySearchParamsWithTimeout(timeout time.Duration) *InventorySearchParams

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

func (*InventorySearchParams) SetContext

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

SetContext adds the context to the inventory search params

func (*InventorySearchParams) SetCount

func (o *InventorySearchParams) SetCount(count *int64)

SetCount adds the count to the inventory search params

func (*InventorySearchParams) SetFields

func (o *InventorySearchParams) SetFields(fields *string)

SetFields adds the fields to the inventory search params

func (*InventorySearchParams) SetFrom

func (o *InventorySearchParams) SetFrom(from *int64)

SetFrom adds the from to the inventory search params

func (*InventorySearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the inventory search params

func (*InventorySearchParams) SetID

func (o *InventorySearchParams) SetID(id *string)

SetID adds the id to the inventory search params

func (*InventorySearchParams) SetIsInactive

func (o *InventorySearchParams) SetIsInactive(isInactive *bool)

SetIsInactive adds the isInactive to the inventory search params

func (*InventorySearchParams) SetIsMainInventory

func (o *InventorySearchParams) SetIsMainInventory(isMainInventory *bool)

SetIsMainInventory adds the isMainInventory to the inventory search params

func (*InventorySearchParams) SetName

func (o *InventorySearchParams) SetName(name *string)

SetName adds the name to the inventory search params

func (*InventorySearchParams) SetSorting

func (o *InventorySearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the inventory search params

func (*InventorySearchParams) SetTimeout

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

SetTimeout adds the timeout to the inventory search params

func (*InventorySearchParams) WithContext

WithContext adds the context to the inventory search params

func (*InventorySearchParams) WithCount

func (o *InventorySearchParams) WithCount(count *int64) *InventorySearchParams

WithCount adds the count to the inventory search params

func (*InventorySearchParams) WithFields

func (o *InventorySearchParams) WithFields(fields *string) *InventorySearchParams

WithFields adds the fields to the inventory search params

func (*InventorySearchParams) WithFrom

WithFrom adds the from to the inventory search params

func (*InventorySearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the inventory search params

func (*InventorySearchParams) WithID

WithID adds the id to the inventory search params

func (*InventorySearchParams) WithIsInactive

func (o *InventorySearchParams) WithIsInactive(isInactive *bool) *InventorySearchParams

WithIsInactive adds the isInactive to the inventory search params

func (*InventorySearchParams) WithIsMainInventory

func (o *InventorySearchParams) WithIsMainInventory(isMainInventory *bool) *InventorySearchParams

WithIsMainInventory adds the isMainInventory to the inventory search params

func (*InventorySearchParams) WithName

WithName adds the name to the inventory search params

func (*InventorySearchParams) WithSorting

func (o *InventorySearchParams) WithSorting(sorting *string) *InventorySearchParams

WithSorting adds the sorting to the inventory search params

func (*InventorySearchParams) WithTimeout

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

WithTimeout adds the timeout to the inventory search params

func (*InventorySearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InventorySearchReader

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

InventorySearchReader is a Reader for the InventorySearch structure.

func (*InventorySearchReader) ReadResponse

func (o *InventorySearchReader) 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